1fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// Generated by the protocol buffer compiler.  DO NOT EDIT!
2fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
4fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include "google/protobuf/descriptor.pb.h"
5fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include <google/protobuf/stubs/once.h>
6fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include <google/protobuf/io/coded_stream.h>
7fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include <google/protobuf/wire_format_lite_inl.h>
8fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include <google/protobuf/descriptor.h>
9fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include <google/protobuf/reflection_ops.h>
10fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#include <google/protobuf/wire_format.h>
11d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville// @@protoc_insertion_point(includes)
12fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
13fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillenamespace google {
14fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillenamespace protobuf {
15fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
16fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillenamespace {
17fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
18fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FileDescriptorSet_descriptor_ = NULL;
19fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
20fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorSet_reflection_ = NULL;
21fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FileDescriptorProto_descriptor_ = NULL;
22fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
23fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorProto_reflection_ = NULL;
24fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* DescriptorProto_descriptor_ = NULL;
25fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
26fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_reflection_ = NULL;
27fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange_descriptor_ = NULL;
28fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
29fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_ExtensionRange_reflection_ = NULL;
30fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FieldDescriptorProto_descriptor_ = NULL;
31fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
32fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto_reflection_ = NULL;
33fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor_ = NULL;
34fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor_ = NULL;
35fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumDescriptorProto_descriptor_ = NULL;
36fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
37fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumDescriptorProto_reflection_ = NULL;
38fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumValueDescriptorProto_descriptor_ = NULL;
39fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
40fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueDescriptorProto_reflection_ = NULL;
41fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* ServiceDescriptorProto_descriptor_ = NULL;
42fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
43fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceDescriptorProto_reflection_ = NULL;
44fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* MethodDescriptorProto_descriptor_ = NULL;
45fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
46fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodDescriptorProto_reflection_ = NULL;
47fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FileOptions_descriptor_ = NULL;
48fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
49fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileOptions_reflection_ = NULL;
50fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor_ = NULL;
51fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* MessageOptions_descriptor_ = NULL;
52fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
53fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MessageOptions_reflection_ = NULL;
54fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FieldOptions_descriptor_ = NULL;
55fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
56fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldOptions_reflection_ = NULL;
57fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor_ = NULL;
58fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumOptions_descriptor_ = NULL;
59fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
60fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumOptions_reflection_ = NULL;
61fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumValueOptions_descriptor_ = NULL;
62fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
63fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueOptions_reflection_ = NULL;
64fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* ServiceOptions_descriptor_ = NULL;
65fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
66fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceOptions_reflection_ = NULL;
67fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* MethodOptions_descriptor_ = NULL;
68fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
69fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodOptions_reflection_ = NULL;
70fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* UninterpretedOption_descriptor_ = NULL;
71fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
72fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_reflection_ = NULL;
73fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* UninterpretedOption_NamePart_descriptor_ = NULL;
74fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::internal::GeneratedMessageReflection*
75fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_NamePart_reflection_ = NULL;
76fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
77fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}  // namespace
78fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
79fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
80fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto() {
81fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
82fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const ::google::protobuf::FileDescriptor* file =
83fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
84fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      "google/protobuf/descriptor.proto");
85fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK(file != NULL);
86fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorSet_descriptor_ = file->message_type(0);
87fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int FileDescriptorSet_offsets_[1] = {
88fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, file_),
89fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
90fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorSet_reflection_ =
91fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
92fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileDescriptorSet_descriptor_,
93fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileDescriptorSet::default_instance_,
94fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileDescriptorSet_offsets_,
95fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _has_bits_[0]),
96fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorSet, _unknown_fields_),
97fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
98fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
99fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(FileDescriptorSet));
101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorProto_descriptor_ = file->message_type(1);
102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int FileDescriptorProto_offsets_[8] = {
103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, name_),
104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, package_),
105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, dependency_),
106fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, message_type_),
107fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, enum_type_),
108fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, service_),
109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, extension_),
110fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, options_),
111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
112fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorProto_reflection_ =
113fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
114fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileDescriptorProto_descriptor_,
115fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileDescriptorProto::default_instance_,
116fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileDescriptorProto_offsets_,
117fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _has_bits_[0]),
118fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileDescriptorProto, _unknown_fields_),
119fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
120fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
122fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(FileDescriptorProto));
123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_descriptor_ = file->message_type(2);
124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int DescriptorProto_offsets_[7] = {
125fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, name_),
126fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, field_),
127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_),
128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, nested_type_),
129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, enum_type_),
130fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, extension_range_),
131fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, options_),
132fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
133fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_reflection_ =
134fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
135fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      DescriptorProto_descriptor_,
136fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      DescriptorProto::default_instance_,
137fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      DescriptorProto_offsets_,
138fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _has_bits_[0]),
139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto, _unknown_fields_),
140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
143fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(DescriptorProto));
144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_ExtensionRange_descriptor_ = DescriptorProto_descriptor_->nested_type(0);
145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int DescriptorProto_ExtensionRange_offsets_[2] = {
146fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, start_),
147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, end_),
148fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
149fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_ExtensionRange_reflection_ =
150fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
151fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      DescriptorProto_ExtensionRange_descriptor_,
152fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      DescriptorProto_ExtensionRange::default_instance_,
153fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      DescriptorProto_ExtensionRange_offsets_,
154fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _has_bits_[0]),
155fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DescriptorProto_ExtensionRange, _unknown_fields_),
156fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
157fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
158fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
159fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(DescriptorProto_ExtensionRange));
160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto_descriptor_ = file->message_type(3);
161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int FieldDescriptorProto_offsets_[8] = {
162fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, name_),
163fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, number_),
164fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, label_),
165fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_),
166fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, type_name_),
167fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, extendee_),
168fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, default_value_),
169fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, options_),
170fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
171fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto_reflection_ =
172fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
173fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FieldDescriptorProto_descriptor_,
174fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FieldDescriptorProto::default_instance_,
175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FieldDescriptorProto_offsets_,
176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _has_bits_[0]),
177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldDescriptorProto, _unknown_fields_),
178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
179fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
181fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(FieldDescriptorProto));
182fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto_Type_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(0);
183fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto_Label_descriptor_ = FieldDescriptorProto_descriptor_->enum_type(1);
184fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumDescriptorProto_descriptor_ = file->message_type(4);
185fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int EnumDescriptorProto_offsets_[3] = {
186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, name_),
187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, value_),
188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, options_),
189fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumDescriptorProto_reflection_ =
191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumDescriptorProto_descriptor_,
193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumDescriptorProto::default_instance_,
194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumDescriptorProto_offsets_,
195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _has_bits_[0]),
196fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumDescriptorProto, _unknown_fields_),
197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
198fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
199fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
200fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(EnumDescriptorProto));
201fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueDescriptorProto_descriptor_ = file->message_type(5);
202fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int EnumValueDescriptorProto_offsets_[3] = {
203fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, name_),
204fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, number_),
205fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, options_),
206fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
207fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueDescriptorProto_reflection_ =
208fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumValueDescriptorProto_descriptor_,
210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumValueDescriptorProto::default_instance_,
211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumValueDescriptorProto_offsets_,
212fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _has_bits_[0]),
213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueDescriptorProto, _unknown_fields_),
214fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
215fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
216fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
217fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(EnumValueDescriptorProto));
218fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceDescriptorProto_descriptor_ = file->message_type(6);
219fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int ServiceDescriptorProto_offsets_[3] = {
220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, name_),
221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, method_),
222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, options_),
223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceDescriptorProto_reflection_ =
225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ServiceDescriptorProto_descriptor_,
227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ServiceDescriptorProto::default_instance_,
228fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ServiceDescriptorProto_offsets_,
229fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _has_bits_[0]),
230fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceDescriptorProto, _unknown_fields_),
231fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
232fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
233fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(ServiceDescriptorProto));
235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodDescriptorProto_descriptor_ = file->message_type(7);
236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int MethodDescriptorProto_offsets_[4] = {
237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, name_),
238fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, input_type_),
239fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, output_type_),
240fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, options_),
241fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
242fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodDescriptorProto_reflection_ =
243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MethodDescriptorProto_descriptor_,
245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MethodDescriptorProto::default_instance_,
246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MethodDescriptorProto_offsets_,
247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _has_bits_[0]),
248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodDescriptorProto, _unknown_fields_),
249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(MethodDescriptorProto));
253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileOptions_descriptor_ = file->message_type(8);
254d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  static const int FileOptions_offsets_[8] = {
255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_package_),
256fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_outer_classname_),
257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_multiple_files_),
258fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, optimize_for_),
259d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, cc_generic_services_),
260d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, java_generic_services_),
261d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, py_generic_services_),
262fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, uninterpreted_option_),
263fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileOptions_reflection_ =
265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileOptions_descriptor_,
267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileOptions::default_instance_,
268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FileOptions_offsets_,
269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _has_bits_[0]),
270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _unknown_fields_),
271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FileOptions, _extensions_),
272fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
274fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(FileOptions));
275fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileOptions_OptimizeMode_descriptor_ = FileOptions_descriptor_->enum_type(0);
276fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MessageOptions_descriptor_ = file->message_type(9);
277fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int MessageOptions_offsets_[3] = {
278fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, message_set_wire_format_),
279fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, no_standard_descriptor_accessor_),
280fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, uninterpreted_option_),
281fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
282fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MessageOptions_reflection_ =
283fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MessageOptions_descriptor_,
285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MessageOptions::default_instance_,
286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MessageOptions_offsets_,
287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _has_bits_[0]),
288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _unknown_fields_),
289fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MessageOptions, _extensions_),
290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
291fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
292fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(MessageOptions));
293fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldOptions_descriptor_ = file->message_type(10);
294fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int FieldOptions_offsets_[5] = {
295fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, ctype_),
296fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, packed_),
297fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, deprecated_),
298fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, experimental_map_key_),
299fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, uninterpreted_option_),
300fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldOptions_reflection_ =
302fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FieldOptions_descriptor_,
304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FieldOptions::default_instance_,
305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      FieldOptions_offsets_,
306fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _has_bits_[0]),
307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _unknown_fields_),
308fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FieldOptions, _extensions_),
309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
310fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
311fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(FieldOptions));
312fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldOptions_CType_descriptor_ = FieldOptions_descriptor_->enum_type(0);
313fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumOptions_descriptor_ = file->message_type(11);
314fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int EnumOptions_offsets_[1] = {
315fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, uninterpreted_option_),
316fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
317fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumOptions_reflection_ =
318fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
319fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumOptions_descriptor_,
320fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumOptions::default_instance_,
321fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumOptions_offsets_,
322fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _has_bits_[0]),
323fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _unknown_fields_),
324fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumOptions, _extensions_),
325fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
326fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
327fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(EnumOptions));
328fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueOptions_descriptor_ = file->message_type(12);
329fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int EnumValueOptions_offsets_[1] = {
330fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, uninterpreted_option_),
331fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
332fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueOptions_reflection_ =
333fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
334fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumValueOptions_descriptor_,
335fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumValueOptions::default_instance_,
336fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      EnumValueOptions_offsets_,
337fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _has_bits_[0]),
338fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _unknown_fields_),
339fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(EnumValueOptions, _extensions_),
340fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
341fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
342fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(EnumValueOptions));
343fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceOptions_descriptor_ = file->message_type(13);
344fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int ServiceOptions_offsets_[1] = {
345fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, uninterpreted_option_),
346fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
347fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceOptions_reflection_ =
348fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
349fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ServiceOptions_descriptor_,
350fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ServiceOptions::default_instance_,
351fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ServiceOptions_offsets_,
352fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _has_bits_[0]),
353fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _unknown_fields_),
354fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServiceOptions, _extensions_),
355fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
356fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
357fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(ServiceOptions));
358fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodOptions_descriptor_ = file->message_type(14);
359fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int MethodOptions_offsets_[1] = {
360fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, uninterpreted_option_),
361fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
362fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodOptions_reflection_ =
363fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
364fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MethodOptions_descriptor_,
365fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MethodOptions::default_instance_,
366fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      MethodOptions_offsets_,
367fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _has_bits_[0]),
368fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _unknown_fields_),
369fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MethodOptions, _extensions_),
370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(MethodOptions));
373fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_descriptor_ = file->message_type(15);
374fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int UninterpretedOption_offsets_[6] = {
375fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, name_),
376fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, identifier_value_),
377fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, positive_int_value_),
378fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, negative_int_value_),
379fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, double_value_),
380fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, string_value_),
381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_reflection_ =
383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      UninterpretedOption_descriptor_,
385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      UninterpretedOption::default_instance_,
386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      UninterpretedOption_offsets_,
387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _has_bits_[0]),
388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption, _unknown_fields_),
389fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
391fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
392fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(UninterpretedOption));
393fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_NamePart_descriptor_ = UninterpretedOption_descriptor_->nested_type(0);
394fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static const int UninterpretedOption_NamePart_offsets_[2] = {
395fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, name_part_),
396fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, is_extension_),
397fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  };
398fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_NamePart_reflection_ =
399fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    new ::google::protobuf::internal::GeneratedMessageReflection(
400fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      UninterpretedOption_NamePart_descriptor_,
401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      UninterpretedOption_NamePart::default_instance_,
402fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      UninterpretedOption_NamePart_offsets_,
403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _has_bits_[0]),
404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UninterpretedOption_NamePart, _unknown_fields_),
405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      -1,
406fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::DescriptorPool::generated_pool(),
407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::MessageFactory::generated_factory(),
408fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      sizeof(UninterpretedOption_NamePart));
409fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
410fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
411fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillenamespace {
412fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
413fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleGOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
414fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleinline void protobuf_AssignDescriptorsOnce() {
415fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
416fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                 &protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto);
417fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
418fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
419fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid protobuf_RegisterTypes(const ::std::string&) {
420fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
421fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
422fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    FileDescriptorSet_descriptor_, &FileDescriptorSet::default_instance());
423fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
424fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    FileDescriptorProto_descriptor_, &FileDescriptorProto::default_instance());
425fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
426fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    DescriptorProto_descriptor_, &DescriptorProto::default_instance());
427fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
428fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    DescriptorProto_ExtensionRange_descriptor_, &DescriptorProto_ExtensionRange::default_instance());
429fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
430fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    FieldDescriptorProto_descriptor_, &FieldDescriptorProto::default_instance());
431fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    EnumDescriptorProto_descriptor_, &EnumDescriptorProto::default_instance());
433fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
434fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    EnumValueDescriptorProto_descriptor_, &EnumValueDescriptorProto::default_instance());
435fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
436fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ServiceDescriptorProto_descriptor_, &ServiceDescriptorProto::default_instance());
437fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
438fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MethodDescriptorProto_descriptor_, &MethodDescriptorProto::default_instance());
439fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
440fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    FileOptions_descriptor_, &FileOptions::default_instance());
441fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
442fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MessageOptions_descriptor_, &MessageOptions::default_instance());
443fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
444fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    FieldOptions_descriptor_, &FieldOptions::default_instance());
445fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
446fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    EnumOptions_descriptor_, &EnumOptions::default_instance());
447fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
448fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    EnumValueOptions_descriptor_, &EnumValueOptions::default_instance());
449fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
450fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ServiceOptions_descriptor_, &ServiceOptions::default_instance());
451fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
452fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MethodOptions_descriptor_, &MethodOptions::default_instance());
453fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
454fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    UninterpretedOption_descriptor_, &UninterpretedOption::default_instance());
455fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
456fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    UninterpretedOption_NamePart_descriptor_, &UninterpretedOption_NamePart::default_instance());
457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}  // namespace
460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto() {
462fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FileDescriptorSet::default_instance_;
463fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FileDescriptorSet_reflection_;
464fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FileDescriptorProto::default_instance_;
465fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FileDescriptorProto_reflection_;
466fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete DescriptorProto::default_instance_;
467fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete DescriptorProto_reflection_;
468fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete DescriptorProto_ExtensionRange::default_instance_;
469fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete DescriptorProto_ExtensionRange_reflection_;
470fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FieldDescriptorProto::default_instance_;
471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FieldDescriptorProto_reflection_;
472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumDescriptorProto::default_instance_;
473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumDescriptorProto_reflection_;
474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumValueDescriptorProto::default_instance_;
475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumValueDescriptorProto_reflection_;
476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete ServiceDescriptorProto::default_instance_;
477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete ServiceDescriptorProto_reflection_;
478fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete MethodDescriptorProto::default_instance_;
479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete MethodDescriptorProto_reflection_;
480fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FileOptions::default_instance_;
481fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FileOptions_reflection_;
482fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete MessageOptions::default_instance_;
483fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete MessageOptions_reflection_;
484fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FieldOptions::default_instance_;
485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete FieldOptions_reflection_;
486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumOptions::default_instance_;
487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumOptions_reflection_;
488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumValueOptions::default_instance_;
489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete EnumValueOptions_reflection_;
490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete ServiceOptions::default_instance_;
491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete ServiceOptions_reflection_;
492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete MethodOptions::default_instance_;
493fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete MethodOptions_reflection_;
494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete UninterpretedOption::default_instance_;
495fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete UninterpretedOption_reflection_;
496fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete UninterpretedOption_NamePart::default_instance_;
497fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  delete UninterpretedOption_NamePart_reflection_;
498fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
499fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
500fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto() {
501fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  static bool already_here = false;
502fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (already_here) return;
503fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  already_here = true;
504fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_PROTOBUF_VERIFY_VERSION;
505fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
506fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
507fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\n google/protobuf/descriptor.proto\022\017goog"
508fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file"
509fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\030\001 \003(\0132$.google.protobuf.FileDescriptorP"
510fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "roto\"\334\002\n\023FileDescriptorProto\022\014\n\004name\030\001 \001"
511fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022"
512fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "6\n\014message_type\030\004 \003(\0132 .google.protobuf."
513fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "DescriptorProto\0227\n\tenum_type\030\005 \003(\0132$.goo"
514fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "gle.protobuf.EnumDescriptorProto\0228\n\007serv"
515fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "ice\030\006 \003(\0132\'.google.protobuf.ServiceDescr"
516fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "iptorProto\0228\n\textension\030\007 \003(\0132%.google.p"
517fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "rotobuf.FieldDescriptorProto\022-\n\007options\030"
518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\010 \001(\0132\034.google.protobuf.FileOptions\"\251\003\n\017"
519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "DescriptorProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002"
520fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    " \003(\0132%.google.protobuf.FieldDescriptorPr"
521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "oto\0228\n\textension\030\006 \003(\0132%.google.protobuf"
522fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ".FieldDescriptorProto\0225\n\013nested_type\030\003 \003"
523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "(\0132 .google.protobuf.DescriptorProto\0227\n\t"
524fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "enum_type\030\004 \003(\0132$.google.protobuf.EnumDe"
525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "scriptorProto\022H\n\017extension_range\030\005 \003(\0132/"
526fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ".google.protobuf.DescriptorProto.Extensi"
527fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "onRange\0220\n\007options\030\007 \001(\0132\037.google.protob"
528fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "uf.MessageOptions\032,\n\016ExtensionRange\022\r\n\005s"
529fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "tart\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescrip"
530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:"
531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\n\005label\030\004 \001(\0162+.google.protobuf.FieldDes"
532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "criptorProto.Label\0228\n\004type\030\005 \001(\0162*.googl"
533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "e.protobuf.FieldDescriptorProto.Type\022\021\n\t"
534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "type_name\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdef"
535fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "ault_value\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.goog"
536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "le.protobuf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYP"
537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "E_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64"
538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014T"
539fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "YPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_"
540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022"
541fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYP"
542fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "E_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED"
543fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021"
544fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\022\017\n\013TYPE_SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTI"
545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "ONAL\020\001\022\022\n\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPE"
546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "ATED\020\003\"\214\001\n\023EnumDescriptorProto\022\014\n\004name\030\001"
547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    " \001(\t\0228\n\005value\030\002 \003(\0132).google.protobuf.En"
548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "umValueDescriptorProto\022-\n\007options\030\003 \001(\0132"
549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\034.google.protobuf.EnumOptions\"l\n\030EnumVal"
550fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "ueDescriptorProto\022\014\n\004name\030\001 \001(\t\022\016\n\006numbe"
551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "r\030\002 \001(\005\0222\n\007options\030\003 \001(\0132!.google.protob"
552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "uf.EnumValueOptions\"\220\001\n\026ServiceDescripto"
553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "rProto\022\014\n\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.g"
554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "oogle.protobuf.MethodDescriptorProto\0220\n\007"
555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "options\030\003 \001(\0132\037.google.protobuf.ServiceO"
556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "ptions\"\177\n\025MethodDescriptorProto\022\014\n\004name\030"
557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\001 \001(\t\022\022\n\ninput_type\030\002 \001(\t\022\023\n\013output_type"
558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\030\003 \001(\t\022/\n\007options\030\004 \001(\0132\036.google.protobu"
559d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "f.MethodOptions\"\244\003\n\013FileOptions\022\024\n\014java_"
560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "package\030\001 \001(\t\022\034\n\024java_outer_classname\030\010 "
561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "\001(\t\022\"\n\023java_multiple_files\030\n \001(\010:\005false\022"
562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "F\n\014optimize_for\030\t \001(\0162).google.protobuf."
563d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "FileOptions.OptimizeMode:\005SPEED\022!\n\023cc_ge"
564d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "neric_services\030\020 \001(\010:\004true\022#\n\025java_gener"
565d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "ic_services\030\021 \001(\010:\004true\022!\n\023py_generic_se"
566d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "rvices\030\022 \001(\010:\004true\022C\n\024uninterpreted_opti"
567d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "on\030\347\007 \003(\0132$.google.protobuf.Uninterprete"
568d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "dOption\":\n\014OptimizeMode\022\t\n\005SPEED\020\001\022\r\n\tCO"
569d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "DE_SIZE\020\002\022\020\n\014LITE_RUNTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270"
570d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\001\n\016MessageOptions\022&\n\027message_set_wire_fo"
571d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "rmat\030\001 \001(\010:\005false\022.\n\037no_standard_descrip"
572d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "tor_accessor\030\002 \001(\010:\005false\022C\n\024uninterpret"
573d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "ed_option\030\347\007 \003(\0132$.google.protobuf.Unint"
574d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "erpretedOption*\t\010\350\007\020\200\200\200\200\002\"\224\002\n\014FieldOptio"
575d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "ns\022:\n\005ctype\030\001 \001(\0162#.google.protobuf.Fiel"
576d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "dOptions.CType:\006STRING\022\016\n\006packed\030\002 \001(\010\022\031"
577d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\n\ndeprecated\030\003 \001(\010:\005false\022\034\n\024experimenta"
578d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "l_map_key\030\t \001(\t\022C\n\024uninterpreted_option\030"
579d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\347\007 \003(\0132$.google.protobuf.UninterpretedOp"
580d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "tion\"/\n\005CType\022\n\n\006STRING\020\000\022\010\n\004CORD\020\001\022\020\n\014S"
581d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "TRING_PIECE\020\002*\t\010\350\007\020\200\200\200\200\002\"]\n\013EnumOptions\022"
582d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "C\n\024uninterpreted_option\030\347\007 \003(\0132$.google."
583d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "protobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\""
584d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "b\n\020EnumValueOptions\022C\n\024uninterpreted_opt"
585d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "ion\030\347\007 \003(\0132$.google.protobuf.Uninterpret"
586d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "edOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceOptions\022C\n"
587d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\024uninterpreted_option\030\347\007 \003(\0132$.google.pr"
588d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "otobuf.UninterpretedOption*\t\010\350\007\020\200\200\200\200\002\"_\n"
589d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\rMethodOptions\022C\n\024uninterpreted_option\030\347"
590d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\007 \003(\0132$.google.protobuf.UninterpretedOpt"
591d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "ion*\t\010\350\007\020\200\200\200\200\002\"\205\002\n\023UninterpretedOption\022;"
592d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\n\004name\030\002 \003(\0132-.google.protobuf.Uninterpr"
593d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "etedOption.NamePart\022\030\n\020identifier_value\030"
594d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\003 \001(\t\022\032\n\022positive_int_value\030\004 \001(\004\022\032\n\022neg"
595d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "ative_int_value\030\005 \001(\003\022\024\n\014double_value\030\006 "
596d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\001(\001\022\024\n\014string_value\030\007 \001(\014\0323\n\010NamePart\022\021\n"
597d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\tname_part\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010B)"
598d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\n\023com.google.protobufB\020DescriptorProtosH"
599d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    "\001", 3681);
600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
601fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    "google/protobuf/descriptor.proto", &protobuf_RegisterTypes);
602fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorSet::default_instance_ = new FileDescriptorSet();
603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorProto::default_instance_ = new FileDescriptorProto();
604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto::default_instance_ = new DescriptorProto();
605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_ExtensionRange::default_instance_ = new DescriptorProto_ExtensionRange();
606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto::default_instance_ = new FieldDescriptorProto();
607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumDescriptorProto::default_instance_ = new EnumDescriptorProto();
608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueDescriptorProto::default_instance_ = new EnumValueDescriptorProto();
609fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceDescriptorProto::default_instance_ = new ServiceDescriptorProto();
610fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodDescriptorProto::default_instance_ = new MethodDescriptorProto();
611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileOptions::default_instance_ = new FileOptions();
612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MessageOptions::default_instance_ = new MessageOptions();
613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldOptions::default_instance_ = new FieldOptions();
614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumOptions::default_instance_ = new EnumOptions();
615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueOptions::default_instance_ = new EnumValueOptions();
616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceOptions::default_instance_ = new ServiceOptions();
617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodOptions::default_instance_ = new MethodOptions();
618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption::default_instance_ = new UninterpretedOption();
619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_NamePart::default_instance_ = new UninterpretedOption_NamePart();
620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorSet::default_instance_->InitAsDefaultInstance();
621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileDescriptorProto::default_instance_->InitAsDefaultInstance();
622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto::default_instance_->InitAsDefaultInstance();
623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  DescriptorProto_ExtensionRange::default_instance_->InitAsDefaultInstance();
624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldDescriptorProto::default_instance_->InitAsDefaultInstance();
625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumDescriptorProto::default_instance_->InitAsDefaultInstance();
626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueDescriptorProto::default_instance_->InitAsDefaultInstance();
627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceDescriptorProto::default_instance_->InitAsDefaultInstance();
628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodDescriptorProto::default_instance_->InitAsDefaultInstance();
629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FileOptions::default_instance_->InitAsDefaultInstance();
630fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MessageOptions::default_instance_->InitAsDefaultInstance();
631fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  FieldOptions::default_instance_->InitAsDefaultInstance();
632fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumOptions::default_instance_->InitAsDefaultInstance();
633fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  EnumValueOptions::default_instance_->InitAsDefaultInstance();
634fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ServiceOptions::default_instance_->InitAsDefaultInstance();
635fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MethodOptions::default_instance_->InitAsDefaultInstance();
636fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption::default_instance_->InitAsDefaultInstance();
637fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  UninterpretedOption_NamePart::default_instance_->InitAsDefaultInstance();
638fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto);
639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
640fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
641fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// Force AddDescriptors() to be called at static initialization time.
642fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillestruct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
643fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto() {
644fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville} static_descriptor_initializer_google_2fprotobuf_2fdescriptor_2eproto_;
647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorSet::kFileFieldNumber;
653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
655d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFileDescriptorSet::FileDescriptorSet()
656d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
658fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
659fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::InitAsDefaultInstance() {
661fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
663d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from)
664d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
665fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
666fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
667fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::SharedCtor() {
670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
671fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
672fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
673fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
674fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileDescriptorSet::~FileDescriptorSet() {
675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::SharedDtor() {
679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
683d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid FileDescriptorSet::SetCachedSize(int size) const {
684d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
685d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
686d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
687d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
688fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FileDescriptorSet::descriptor() {
689fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
690fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FileDescriptorSet_descriptor_;
691fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
692fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
693fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileDescriptorSet& FileDescriptorSet::default_instance() {
694fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
697fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileDescriptorSet* FileDescriptorSet::default_instance_ = NULL;
698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
699fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileDescriptorSet* FileDescriptorSet::New() const {
700fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new FileDescriptorSet;
701fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
702fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
703fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::Clear() {
704fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  file_.Clear();
705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
706fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
707fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
708fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
709fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileDescriptorSet::MergePartialFromCodedStream(
710fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
711fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
712fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.FileDescriptorProto file = 1;
716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
717d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
719d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_file:
720d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
721d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_file()));
722d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
723fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
724fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
725fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(10)) goto parse_file;
726fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
727fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
728fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
729fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
730fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
731fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
732fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
733fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
737fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
739fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
740fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
741fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
742fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
743fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
744fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::SerializeWithCachedSizes(
747fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
748fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FileDescriptorProto file = 1;
749fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->file_size(); i++) {
750d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
751fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->file(i), output);
752fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
753fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
754fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
755fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
756fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
757fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
758fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
759fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
760fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* FileDescriptorSet::SerializeWithCachedSizesToArray(
761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FileDescriptorProto file = 1;
763fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->file_size(); i++) {
764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
765fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
766fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->file(i), target);
767fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
768fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
769fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
770fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
771fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
772fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
773fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
774fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint FileDescriptorSet::ByteSize() const {
777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
778fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FileDescriptorProto file = 1;
780fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->file_size();
781fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->file_size(); i++) {
782fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
783fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->file(i));
785fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
786fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
787fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
788fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
789fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
790fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
791fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
792d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
793fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
794d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
795fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
796fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
797fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
798fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::MergeFrom(const ::google::protobuf::Message& from) {
799fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
800fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const FileDescriptorSet* source =
801fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorSet*>(
802fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
803fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
804fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
808fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
809fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
810fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::MergeFrom(const FileDescriptorSet& from) {
811fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
812fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  file_.MergeFrom(from.file_);
813fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::CopyFrom(const ::google::protobuf::Message& from) {
817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::CopyFrom(const FileDescriptorSet& from) {
823fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
825fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
826fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
827fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
828fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileDescriptorSet::IsInitialized() const {
829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < file_size(); i++) {
831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->file(i).IsInitialized()) return false;
832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
835fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
836fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorSet::Swap(FileDescriptorSet* other) {
837fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
838fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    file_.Swap(&other->file_);
839fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
840fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
841fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
842fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
843fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
844fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata FileDescriptorSet::GetMetadata() const {
846fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
847fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
848fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = FileDescriptorSet_descriptor_;
849fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = FileDescriptorSet_reflection_;
850fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
851fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FileDescriptorProto::_default_name_;
857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FileDescriptorProto::_default_package_;
858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kNameFieldNumber;
860fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kPackageFieldNumber;
861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kDependencyFieldNumber;
862fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kMessageTypeFieldNumber;
863fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kEnumTypeFieldNumber;
864fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kServiceFieldNumber;
865fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kExtensionFieldNumber;
866fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileDescriptorProto::kOptionsFieldNumber;
867fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
868fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
869d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFileDescriptorProto::FileDescriptorProto()
870d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::InitAsDefaultInstance() {
875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::FileOptions*>(&::google::protobuf::FileOptions::default_instance());
876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
877fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
878d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from)
879d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
880fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
881fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
882fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
883fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
884fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::SharedCtor() {
885fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
886fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  package_ = const_cast< ::std::string*>(&_default_package_);
888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
890fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
891fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileDescriptorProto::~FileDescriptorProto() {
893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
894fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
895fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
896fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::SharedDtor() {
897fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
898fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
899fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
900fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (package_ != &_default_package_) {
901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete package_;
902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
903fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
908d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid FileDescriptorProto::SetCachedSize(int size) const {
909d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
910d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
911d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
912d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
913fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FileDescriptorProto::descriptor() {
914fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
915fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FileDescriptorProto_descriptor_;
916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileDescriptorProto& FileDescriptorProto::default_instance() {
919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
921fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileDescriptorProto* FileDescriptorProto::default_instance_ = NULL;
923fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileDescriptorProto* FileDescriptorProto::New() const {
925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new FileDescriptorProto;
926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::Clear() {
929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(1)) {
936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (package_ != &_default_package_) {
937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        package_->clear();
938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
940fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(7)) {
941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
942fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  dependency_.Clear();
945fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  message_type_.Clear();
946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  enum_type_.Clear();
947fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  service_.Clear();
948fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extension_.Clear();
949fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
950fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
951fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
953fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileDescriptorProto::MergePartialFromCodedStream(
954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
957fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
961d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
963d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
964d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
965d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
966d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
967d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
968d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_package;
972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string package = 2;
976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
977d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
979d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_package:
980d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
981d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_package()));
982d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
983d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->package().data(), this->package().length(),
984d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
985d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_dependency;
989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated string dependency = 3;
993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
994d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
996d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_dependency:
997d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
998d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->add_dependency()));
999d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1000d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->dependency(0).data(), this->dependency(0).length(),
1001d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
1002d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1004fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_dependency;
1006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(34)) goto parse_message_type;
1007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.DescriptorProto message_type = 4;
1011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 4: {
1012d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1014d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_message_type:
1015d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1016d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_message_type()));
1017d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1019fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(34)) goto parse_message_type;
1021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(42)) goto parse_enum_type;
1022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1024fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1025fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 5: {
1027d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1028fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1029d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_enum_type:
1030d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1031d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_enum_type()));
1032d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1033fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1034fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1035fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(42)) goto parse_enum_type;
1036fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(50)) goto parse_service;
1037fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1038fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1039fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1040fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1041fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 6: {
1042d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1043fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1044d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_service:
1045d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1046d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_service()));
1047d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1048fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1049fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1050fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(50)) goto parse_service;
1051fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(58)) goto parse_extension;
1052fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1053fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1054fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1055fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1056fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 7: {
1057d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1058fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1059d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_extension:
1060d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1061d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_extension()));
1062d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1063fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1064fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1065fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(58)) goto parse_extension;
1066fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(66)) goto parse_options;
1067fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1068fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1069fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1070fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.FileOptions options = 8;
1071fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 8: {
1072d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1073fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1074d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
1075d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1076d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
1077d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1078fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1079fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1080fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
1081fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1082fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1083fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1084fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
1085fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
1086fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1087fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1088fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
1089fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1090fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
1091fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
1092fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1093fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1094fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1095fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1096fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
1097fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
1098fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1099fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::SerializeWithCachedSizes(
1101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
1102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
1103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
1104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
1106fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1107fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
1108fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
1109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1110fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string package = 2;
1112fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
1113fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1114fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->package().data(), this->package().length(),
1115fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1116fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
1117fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->package(), output);
1118fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1119fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1120fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated string dependency = 3;
1121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->dependency_size(); i++) {
1122fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    this->dependency(i).data(), this->dependency(i).length(),
1124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SERIALIZE);
1125fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
1126fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->dependency(i), output);
1127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto message_type = 4;
1130fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->message_type_size(); i++) {
1131d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1132fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      4, this->message_type(i), output);
1133fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1134fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1135fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1136fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->enum_type_size(); i++) {
1137d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1138fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      5, this->enum_type(i), output);
1139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->service_size(); i++) {
1143d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      6, this->service(i), output);
1145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1146fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1148fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_size(); i++) {
1149d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1150fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      7, this->extension(i), output);
1151fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1152fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1153fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FileOptions options = 8;
1154fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(7)) {
1155d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1156fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      8, this->options(), output);
1157fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1158fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1159fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
1162fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1163fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1164fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1165fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* FileDescriptorProto::SerializeWithCachedSizesToArray(
1166fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
1167fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
1168fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
1169fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1170fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
1171fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1172fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
1173fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1174fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
1175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string package = 2;
1178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
1179fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->package().data(), this->package().length(),
1181fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1182fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
1183fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1184fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->package(), target);
1185fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated string dependency = 3;
1188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->dependency_size(); i++) {
1189fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->dependency(i).data(), this->dependency(i).length(),
1191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteStringToArray(3, this->dependency(i), target);
1194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1196fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto message_type = 4;
1197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->message_type_size(); i++) {
1198fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1199fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1200fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        4, this->message_type(i), target);
1201fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1202fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1203fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1204fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->enum_type_size(); i++) {
1205fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1206fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1207fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        5, this->enum_type(i), target);
1208fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->service_size(); i++) {
1212fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1214fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        6, this->service(i), target);
1215fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1216fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1217fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1218fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_size(); i++) {
1219fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        7, this->extension(i), target);
1222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FileOptions options = 8;
1225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(7)) {
1226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1228fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        8, this->options(), target);
1229fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1230fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1231fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1232fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1233fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
1234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
1236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1238fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint FileDescriptorProto::ByteSize() const {
1239fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
1240fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1241fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1242fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
1243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
1244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
1246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
1247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string package = 2;
1250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_package()) {
1251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
1253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->package());
1254fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1256fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.FileOptions options = 8;
1257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
1258fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1259fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1260fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
1261fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1262fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1263fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated string dependency = 3;
1265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->dependency_size();
1266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->dependency_size(); i++) {
1267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
1268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->dependency(i));
1269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto message_type = 4;
1272fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->message_type_size();
1273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->message_type_size(); i++) {
1274fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
1275fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1276fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->message_type(i));
1277fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1278fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1279fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
1280fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->enum_type_size();
1281fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->enum_type_size(); i++) {
1282fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
1283fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->enum_type(i));
1285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.ServiceDescriptorProto service = 6;
1288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->service_size();
1289fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->service_size(); i++) {
1290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
1291fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1292fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->service(i));
1293fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1294fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1295fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto extension = 7;
1296fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->extension_size();
1297fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_size(); i++) {
1298fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
1299fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1300fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->extension(i));
1301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1302fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
1305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1306fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
1307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1308d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
1310d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1311fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
1312fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1313fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1314fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
1315fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
1316fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const FileDescriptorProto* source =
1317fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const FileDescriptorProto*>(
1318fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
1319fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
1320fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1321fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
1322fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
1323fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1324fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1325fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1326fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::MergeFrom(const FileDescriptorProto& from) {
1327fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
1328fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  dependency_.MergeFrom(from.dependency_);
1329fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  message_type_.MergeFrom(from.message_type_);
1330fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  enum_type_.MergeFrom(from.enum_type_);
1331fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  service_.MergeFrom(from.service_);
1332fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extension_.MergeFrom(from.extension_);
1333fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1334fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
1335fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
1336fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1337fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
1338fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_package(from.package());
1339fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1340fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(7)) {
1341fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::FileOptions::MergeFrom(from.options());
1342fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1343fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1344fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1345fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1346fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1347fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
1348fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
1349fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
1350fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
1351fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1352fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1353fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::CopyFrom(const FileDescriptorProto& from) {
1354fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
1355fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
1356fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
1357fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1358fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1359fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileDescriptorProto::IsInitialized() const {
1360fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1361fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < message_type_size(); i++) {
1362fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->message_type(i).IsInitialized()) return false;
1363fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1364fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < enum_type_size(); i++) {
1365fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->enum_type(i).IsInitialized()) return false;
1366fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1367fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < service_size(); i++) {
1368fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->service(i).IsInitialized()) return false;
1369fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < extension_size(); i++) {
1371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->extension(i).IsInitialized()) return false;
1372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1373fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
1374fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
1375fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1376fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
1377fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1378fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1379fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileDescriptorProto::Swap(FileDescriptorProto* other) {
1380fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
1381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
1382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(package_, other->package_);
1383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    dependency_.Swap(&other->dependency_);
1384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    message_type_.Swap(&other->message_type_);
1385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    enum_type_.Swap(&other->enum_type_);
1386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    service_.Swap(&other->service_);
1387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    extension_.Swap(&other->extension_);
1388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
1389fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
1390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
1391fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
1392fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1393fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1394fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1395fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata FileDescriptorProto::GetMetadata() const {
1396fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
1397fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
1398fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = FileDescriptorProto_descriptor_;
1399fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = FileDescriptorProto_reflection_;
1400fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
1401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1402fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
1405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1406fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
1407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto_ExtensionRange::kStartFieldNumber;
1408fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto_ExtensionRange::kEndFieldNumber;
1409fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
1410fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1411d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleDescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange()
1412d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
1413fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
1414fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1415fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1416fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::InitAsDefaultInstance() {
1417fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1418fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1419d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleDescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from)
1420d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
1421fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
1422fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
1423fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1424fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1425fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::SharedCtor() {
1426fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
1427fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  start_ = 0;
1428fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  end_ = 0;
1429fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1430fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1431fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleDescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() {
1433fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
1434fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1435fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1436fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::SharedDtor() {
1437fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
1438fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1439fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1440fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1441d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid DescriptorProto_ExtensionRange::SetCachedSize(int size) const {
1442d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1443d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
1444d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1445d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
1446fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* DescriptorProto_ExtensionRange::descriptor() {
1447fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
1448fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return DescriptorProto_ExtensionRange_descriptor_;
1449fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1450fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1451fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst DescriptorProto_ExtensionRange& DescriptorProto_ExtensionRange::default_instance() {
1452fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
1453fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1454fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1455fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleDescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::default_instance_ = NULL;
1456fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleDescriptorProto_ExtensionRange* DescriptorProto_ExtensionRange::New() const {
1458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new DescriptorProto_ExtensionRange;
1459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::Clear() {
1462fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1463fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    start_ = 0;
1464fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    end_ = 0;
1465fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1466fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1467fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
1468fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1469fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1470fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool DescriptorProto_ExtensionRange::MergePartialFromCodedStream(
1471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
1472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
1474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
1475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional int32 start = 1;
1477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
1478d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1480d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1481d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1482d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &start_)));
1483d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(0);
1484d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(16)) goto parse_end;
1488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional int32 end = 2;
1492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
1493d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1495d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_end:
1496d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1497d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
1498d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &end_)));
1499d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(1);
1500d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1501fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1502fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1503fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
1504fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1505fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1506fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1507fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
1508fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
1509fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1510fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1511fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
1512fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1513fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
1514fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
1515fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1516fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1517fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
1520fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
1521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1522fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::SerializeWithCachedSizes(
1524fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
1525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 start = 1;
1526fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
1527fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->start(), output);
1528fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1529fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 end = 2;
1531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
1532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->end(), output);
1533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1535fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
1538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1539fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1541fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* DescriptorProto_ExtensionRange::SerializeWithCachedSizesToArray(
1542fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
1543fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 start = 1;
1544fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
1545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->start(), target);
1546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 end = 2;
1549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
1550fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->end(), target);
1551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
1556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
1558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1559fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint DescriptorProto_ExtensionRange::ByteSize() const {
1561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
1562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1563fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1564fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional int32 start = 1;
1565fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_start()) {
1566fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1567fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::Int32Size(
1568fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->start());
1569fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1570fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1571fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional int32 end = 2;
1572fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_end()) {
1573fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1574fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::Int32Size(
1575fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->end());
1576fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1577fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1578fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1579fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1580fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
1581fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1582fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
1583fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1584d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1585fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
1586d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1587fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
1588fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1589fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1590fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::MergeFrom(const ::google::protobuf::Message& from) {
1591fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
1592fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const DescriptorProto_ExtensionRange* source =
1593fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto_ExtensionRange*>(
1594fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
1595fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
1596fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1597fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
1598fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
1599fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1601fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1602fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::MergeFrom(const DescriptorProto_ExtensionRange& from) {
1603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
1604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
1606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_start(from.start());
1607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
1609fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_end(from.end());
1610fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::CopyFrom(const ::google::protobuf::Message& from) {
1616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
1617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
1618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
1619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::CopyFrom(const DescriptorProto_ExtensionRange& from) {
1622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
1623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
1624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
1625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool DescriptorProto_ExtensionRange::IsInitialized() const {
1628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
1630fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1631fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1632fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto_ExtensionRange::Swap(DescriptorProto_ExtensionRange* other) {
1633fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
1634fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(start_, other->start_);
1635fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(end_, other->end_);
1636fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
1637fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
1638fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
1639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1640fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1641fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1642fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata DescriptorProto_ExtensionRange::GetMetadata() const {
1643fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
1644fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
1645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = DescriptorProto_ExtensionRange_descriptor_;
1646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = DescriptorProto_ExtensionRange_reflection_;
1647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
1648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// -------------------------------------------------------------------
1652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string DescriptorProto::_default_name_;
1654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
1655fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kNameFieldNumber;
1656fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kFieldFieldNumber;
1657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kExtensionFieldNumber;
1658fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kNestedTypeFieldNumber;
1659fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kEnumTypeFieldNumber;
1660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kExtensionRangeFieldNumber;
1661fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int DescriptorProto::kOptionsFieldNumber;
1662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
1663fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1664d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleDescriptorProto::DescriptorProto()
1665d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
1666fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
1667fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::InitAsDefaultInstance() {
1670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::MessageOptions*>(&::google::protobuf::MessageOptions::default_instance());
1671fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1672fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1673d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleDescriptorProto::DescriptorProto(const DescriptorProto& from)
1674d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
1675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
1676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
1677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::SharedCtor() {
1680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
1681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
1682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
1683fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1684fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1685fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1686fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleDescriptorProto::~DescriptorProto() {
1687fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
1688fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1689fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1690fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::SharedDtor() {
1691fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
1692fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
1693fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1694fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
1695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
1696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1697fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1699d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid DescriptorProto::SetCachedSize(int size) const {
1700d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1701d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
1702d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1703d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
1704fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* DescriptorProto::descriptor() {
1705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
1706fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return DescriptorProto_descriptor_;
1707fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1708fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1709fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst DescriptorProto& DescriptorProto::default_instance() {
1710fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
1711fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1712fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleDescriptorProto* DescriptorProto::default_instance_ = NULL;
1714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleDescriptorProto* DescriptorProto::New() const {
1716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new DescriptorProto;
1717fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1719fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::Clear() {
1720fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1721fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
1722fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
1723fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
1724fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1725fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1726fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(6)) {
1727fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
1728fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1729fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1730fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  field_.Clear();
1731fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extension_.Clear();
1732fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  nested_type_.Clear();
1733fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  enum_type_.Clear();
1734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extension_range_.Clear();
1735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
1736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
1737fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1739fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool DescriptorProto::MergePartialFromCodedStream(
1740fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
1741fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1742fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
1743fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
1744fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
1746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
1747d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1748fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1749d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1750d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
1751d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1752d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
1753d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
1754d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1755fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1756fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1757fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_field;
1758fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1759fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1760fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.FieldDescriptorProto field = 2;
1762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
1763d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1765d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_field:
1766d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1767d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_field()));
1768d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1769fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1770fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1771fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_field;
1772fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_nested_type;
1773fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1774fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.DescriptorProto nested_type = 3;
1777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
1778d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1780d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_nested_type:
1781d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1782d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_nested_type()));
1783d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1785fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1786fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_nested_type;
1787fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(34)) goto parse_enum_type;
1788fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1789fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1790fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1791fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
1792fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 4: {
1793d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1794fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1795d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_enum_type:
1796d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1797d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_enum_type()));
1798d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1799fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1800fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1801fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(34)) goto parse_enum_type;
1802fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(42)) goto parse_extension_range;
1803fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1804fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
1807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 5: {
1808d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1809fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1810d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_extension_range:
1811d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1812d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_extension_range()));
1813d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(42)) goto parse_extension_range;
1817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(50)) goto parse_extension;
1818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.FieldDescriptorProto extension = 6;
1822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 6: {
1823d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1825d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_extension:
1826d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1827d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_extension()));
1828d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(50)) goto parse_extension;
1832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(58)) goto parse_options;
1833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1835fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1836fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.MessageOptions options = 7;
1837fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 7: {
1838d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1839fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1840d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
1841d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1842d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
1843d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
1844fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
1845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1846fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
1847fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1848fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1849fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1850fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
1851fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
1852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
1855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
1856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
1857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
1858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
1859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
1860fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1862fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
1863fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
1864fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1865fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1866fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::SerializeWithCachedSizes(
1867fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
1868fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
1869fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
1870fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
1872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
1874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
1875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1877fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto field = 2;
1878fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->field_size(); i++) {
1879d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1880fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->field(i), output);
1881fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1882fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1883fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto nested_type = 3;
1884fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->nested_type_size(); i++) {
1885d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1886fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->nested_type(i), output);
1887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
1890fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->enum_type_size(); i++) {
1891d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      4, this->enum_type(i), output);
1893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1894fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1895fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
1896fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_range_size(); i++) {
1897d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1898fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      5, this->extension_range(i), output);
1899fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1900fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto extension = 6;
1902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_size(); i++) {
1903d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      6, this->extension(i), output);
1905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.MessageOptions options = 7;
1908fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(6)) {
1909d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1910fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      7, this->options(), output);
1911fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1912fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1913fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1914fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1915fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
1916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* DescriptorProto::SerializeWithCachedSizesToArray(
1920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
1921fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
1922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
1923fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
1925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
1926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
1927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
1929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto field = 2;
1932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->field_size(); i++) {
1933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->field(i), target);
1936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto nested_type = 3;
1939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->nested_type_size(); i++) {
1940fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1942fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        3, this->nested_type(i), target);
1943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1945fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
1946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->enum_type_size(); i++) {
1947fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1948fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1949fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        4, this->enum_type(i), target);
1950fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1951fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
1953fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_range_size(); i++) {
1954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        5, this->extension_range(i), target);
1957fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto extension = 6;
1960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_size(); i++) {
1961fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1963fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        6, this->extension(i), target);
1964fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1965fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1966fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.MessageOptions options = 7;
1967fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(6)) {
1968fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
1969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
1970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        7, this->options(), target);
1971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
1974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
1976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1977fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
1978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
1979fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1980fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint DescriptorProto::ByteSize() const {
1981fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
1982fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1983fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1984fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
1985fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
1986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
1988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
1989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.MessageOptions options = 7;
1992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
1993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
1994fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
1996fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
1997fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
1998fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
1999fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto field = 2;
2000fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->field_size();
2001fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->field_size(); i++) {
2002fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2004fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->field(i));
2005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.FieldDescriptorProto extension = 6;
2008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->extension_size();
2009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_size(); i++) {
2010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2012fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->extension(i));
2013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2014fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2015fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto nested_type = 3;
2016fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->nested_type_size();
2017fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->nested_type_size(); i++) {
2018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2019fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->nested_type(i));
2021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
2024fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->enum_type_size();
2025fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->enum_type_size(); i++) {
2026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2027fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2028fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->enum_type(i));
2029fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2030fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2031fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
2032fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->extension_range_size();
2033fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->extension_range_size(); i++) {
2034fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2035fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2036fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->extension_range(i));
2037fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2038fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2039fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
2040fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2041fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2042fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
2043fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2044d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2045fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
2046d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2047fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
2048fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2049fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2050fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
2051fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
2052fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const DescriptorProto* source =
2053fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const DescriptorProto*>(
2054fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
2055fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
2056fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2057fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
2058fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
2059fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2060fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2061fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2062fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::MergeFrom(const DescriptorProto& from) {
2063fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
2064fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  field_.MergeFrom(from.field_);
2065fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extension_.MergeFrom(from.extension_);
2066fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  nested_type_.MergeFrom(from.nested_type_);
2067fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  enum_type_.MergeFrom(from.enum_type_);
2068fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extension_range_.MergeFrom(from.extension_range_);
2069fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2070fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
2071fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
2072fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2073fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(6)) {
2074fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::MessageOptions::MergeFrom(from.options());
2075fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2076fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2077fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2078fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2079fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2080fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
2081fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
2082fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
2083fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
2084fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2085fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2086fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::CopyFrom(const DescriptorProto& from) {
2087fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
2088fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
2089fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
2090fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2091fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2092fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool DescriptorProto::IsInitialized() const {
2093fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2094fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < field_size(); i++) {
2095fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->field(i).IsInitialized()) return false;
2096fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2097fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < extension_size(); i++) {
2098fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->extension(i).IsInitialized()) return false;
2099fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < nested_type_size(); i++) {
2101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->nested_type(i).IsInitialized()) return false;
2102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < enum_type_size(); i++) {
2104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->enum_type(i).IsInitialized()) return false;
2105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2106fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
2107fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
2108fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
2110fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2112fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid DescriptorProto::Swap(DescriptorProto* other) {
2113fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
2114fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
2115fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    field_.Swap(&other->field_);
2116fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    extension_.Swap(&other->extension_);
2117fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    nested_type_.Swap(&other->nested_type_);
2118fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    enum_type_.Swap(&other->enum_type_);
2119fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    extension_range_.Swap(&other->extension_range_);
2120fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
2121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
2122fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
2123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
2124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2125fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2126fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata DescriptorProto::GetMetadata() const {
2128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
2129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
2130fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = DescriptorProto_descriptor_;
2131fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = DescriptorProto_reflection_;
2132fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
2133fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2134fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2135fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2136fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
2137fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2138fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor() {
2139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
2140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FieldDescriptorProto_Type_descriptor_;
2141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldDescriptorProto_Type_IsValid(int value) {
2143fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  switch(value) {
2144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 1:
2145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 2:
2146fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 3:
2147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 4:
2148fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 5:
2149fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 6:
2150fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 7:
2151fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 8:
2152fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 9:
2153fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 10:
2154fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 11:
2155fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 12:
2156fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 13:
2157fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 14:
2158fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 15:
2159fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 16:
2160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 17:
2161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 18:
2162fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return true;
2163fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    default:
2164fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return false;
2165fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2166fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2167fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2168fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
2169fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_DOUBLE;
2170fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FLOAT;
2171fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT64;
2172fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT64;
2173fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_INT32;
2174fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED64;
2175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_FIXED32;
2176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BOOL;
2177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_STRING;
2178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_GROUP;
2179fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_MESSAGE;
2180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_BYTES;
2181fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_UINT32;
2182fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_ENUM;
2183fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED32;
2184fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SFIXED64;
2185fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT32;
2186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::TYPE_SINT64;
2187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::Type_MIN;
2188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Type FieldDescriptorProto::Type_MAX;
2189d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FieldDescriptorProto::Type_ARRAYSIZE;
2190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // _MSC_VER
2191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor() {
2192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
2193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FieldDescriptorProto_Label_descriptor_;
2194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldDescriptorProto_Label_IsValid(int value) {
2196fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  switch(value) {
2197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 1:
2198fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 2:
2199fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 3:
2200fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return true;
2201fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    default:
2202fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return false;
2203fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2204fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2205fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2206fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
2207fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Label FieldDescriptorProto::LABEL_OPTIONAL;
2208fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REQUIRED;
2209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Label FieldDescriptorProto::LABEL_REPEATED;
2210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Label FieldDescriptorProto::Label_MIN;
2211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto_Label FieldDescriptorProto::Label_MAX;
2212d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FieldDescriptorProto::Label_ARRAYSIZE;
2213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // _MSC_VER
2214fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FieldDescriptorProto::_default_name_;
2215fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FieldDescriptorProto::_default_type_name_;
2216fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FieldDescriptorProto::_default_extendee_;
2217fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FieldDescriptorProto::_default_default_value_;
2218fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
2219fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kNameFieldNumber;
2220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kNumberFieldNumber;
2221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kLabelFieldNumber;
2222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kTypeFieldNumber;
2223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kTypeNameFieldNumber;
2224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kExtendeeFieldNumber;
2225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kDefaultValueFieldNumber;
2226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldDescriptorProto::kOptionsFieldNumber;
2227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
2228fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2229d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFieldDescriptorProto::FieldDescriptorProto()
2230d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
2231fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
2232fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2233fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::InitAsDefaultInstance() {
2235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::FieldOptions*>(&::google::protobuf::FieldOptions::default_instance());
2236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2238d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from)
2239d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
2240fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
2241fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
2242fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::SharedCtor() {
2245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
2246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
2247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  number_ = 0;
2248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  label_ = 1;
2249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  type_ = 1;
2250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  type_name_ = const_cast< ::std::string*>(&_default_type_name_);
2251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  extendee_ = const_cast< ::std::string*>(&_default_extendee_);
2252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  default_value_ = const_cast< ::std::string*>(&_default_default_value_);
2253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
2254fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2256fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFieldDescriptorProto::~FieldDescriptorProto() {
2258fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
2259fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2260fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2261fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::SharedDtor() {
2262fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
2263fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
2264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (type_name_ != &_default_type_name_) {
2266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete type_name_;
2267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (extendee_ != &_default_extendee_) {
2269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete extendee_;
2270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_value_ != &_default_default_value_) {
2272fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete default_value_;
2273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2274fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
2275fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
2276fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2277fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2278fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2279d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid FieldDescriptorProto::SetCachedSize(int size) const {
2280d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2281d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
2282d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2283d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
2284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FieldDescriptorProto::descriptor() {
2285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
2286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FieldDescriptorProto_descriptor_;
2287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2289fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldDescriptorProto& FieldDescriptorProto::default_instance() {
2290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
2291fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2292fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2293fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFieldDescriptorProto* FieldDescriptorProto::default_instance_ = NULL;
2294fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2295fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFieldDescriptorProto* FieldDescriptorProto::New() const {
2296fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new FieldDescriptorProto;
2297fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2298fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2299fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::Clear() {
2300fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
2302fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
2303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
2304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2306fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    number_ = 0;
2307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    label_ = 1;
2308fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    type_ = 1;
2309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(4)) {
2310fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (type_name_ != &_default_type_name_) {
2311fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        type_name_->clear();
2312fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2313fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2314fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(5)) {
2315fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (extendee_ != &_default_extendee_) {
2316fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        extendee_->clear();
2317fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2318fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2319fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(6)) {
2320fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (default_value_ != &_default_default_value_) {
2321fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        default_value_->clear();
2322fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2323fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2324fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(7)) {
2325fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
2326fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2327fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2328fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2329fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
2330fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2331fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2332fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldDescriptorProto::MergePartialFromCodedStream(
2333fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
2334fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2335fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
2336fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
2337fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2338fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
2339fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
2340d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2341fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2342d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2343d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
2344d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2345d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
2346d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
2347d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2348fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2349fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2350fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_extendee;
2351fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2352fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2353fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2354fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string extendee = 2;
2355fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
2356d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2357fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2358d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_extendee:
2359d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2360d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_extendee()));
2361d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2362d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->extendee().data(), this->extendee().length(),
2363d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
2364d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2365fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2366fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2367fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(24)) goto parse_number;
2368fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2369fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional int32 number = 3;
2372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
2373d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2374fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2375d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_number:
2376d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2377d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2378d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &number_)));
2379d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(1);
2380d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(32)) goto parse_label;
2384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 4: {
2389d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2391d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_label:
2392d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          int value;
2393d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2394d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2395d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &value)));
2396d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          if (::google::protobuf::FieldDescriptorProto_Label_IsValid(value)) {
2397d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            set_label(static_cast< ::google::protobuf::FieldDescriptorProto_Label >(value));
2398d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          } else {
2399d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            mutable_unknown_fields()->AddVarint(4, value);
2400d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          }
2401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        } else {
2402d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
2403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(40)) goto parse_type;
2405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2406fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2408fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2409fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 5: {
2410d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2411fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
2412d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_type:
2413d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          int value;
2414d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2415d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2416d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &value)));
2417d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          if (::google::protobuf::FieldDescriptorProto_Type_IsValid(value)) {
2418d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            set_type(static_cast< ::google::protobuf::FieldDescriptorProto_Type >(value));
2419d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          } else {
2420d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            mutable_unknown_fields()->AddVarint(5, value);
2421d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          }
2422fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        } else {
2423d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
2424fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2425fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(50)) goto parse_type_name;
2426fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2427fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2428fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2429fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string type_name = 6;
2430fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 6: {
2431d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2433d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_type_name:
2434d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2435d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_type_name()));
2436d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2437d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->type_name().data(), this->type_name().length(),
2438d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
2439d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2440fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2441fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2442fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(58)) goto parse_default_value;
2443fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2444fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2445fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2446fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string default_value = 7;
2447fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 7: {
2448d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2449fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2450d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_default_value:
2451d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2452d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_default_value()));
2453d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2454d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->default_value().data(), this->default_value().length(),
2455d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
2456d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(66)) goto parse_options;
2460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2462fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2463fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.FieldOptions options = 8;
2464fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 8: {
2465d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2466fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2467d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
2468d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2469d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
2470d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
2474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
2478fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
2479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2480fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2481fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
2482fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2483fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
2484fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
2485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
2490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
2491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2493fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::SerializeWithCachedSizes(
2494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
2495fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
2496fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
2497fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2498fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
2499fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2500fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
2501fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
2502fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2503fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2504fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string extendee = 2;
2505fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(5)) {
2506fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2507fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->extendee().data(), this->extendee().length(),
2508fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2509fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
2510fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->extendee(), output);
2511fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2512fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2513fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 number = 3;
2514fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
2515fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->number(), output);
2516fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2517fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
2520fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      4, this->label(), output);
2522fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2524fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
2526fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2527fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      5, this->type(), output);
2528fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2529fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string type_name = 6;
2531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(4)) {
2532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->type_name().data(), this->type_name().length(),
2534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2535fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
2536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      6, this->type_name(), output);
2537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2539fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string default_value = 7;
2540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(6)) {
2541fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2542fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->default_value().data(), this->default_value().length(),
2543fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2544fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
2545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      7, this->default_value(), output);
2546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FieldOptions options = 8;
2549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(7)) {
2550d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      8, this->options(), output);
2552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
2555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
2557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2559fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* FieldDescriptorProto::SerializeWithCachedSizesToArray(
2561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
2562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
2563fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
2564fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2565fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
2566fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2567fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
2568fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2569fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
2570fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2571fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2572fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string extendee = 2;
2573fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(5)) {
2574fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2575fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->extendee().data(), this->extendee().length(),
2576fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2577fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
2578fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2579fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->extendee(), target);
2580fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2581fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2582fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 number = 3;
2583fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
2584fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->number(), target);
2585fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2586fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2587fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2588fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
2589fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2590fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      4, this->label(), target);
2591fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2592fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2593fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2594fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
2595fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2596fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      5, this->type(), target);
2597fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2598fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2599fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string type_name = 6;
2600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(4)) {
2601fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2602fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->type_name().data(), this->type_name().length(),
2603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
2605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        6, this->type_name(), target);
2607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2609fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string default_value = 7;
2610fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(6)) {
2611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->default_value().data(), this->default_value().length(),
2613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
2615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        7, this->default_value(), target);
2617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FieldOptions options = 8;
2620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(7)) {
2621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
2622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
2623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        8, this->options(), target);
2624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
2627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
2629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2630fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
2631fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2632fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2633fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint FieldDescriptorProto::ByteSize() const {
2634fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
2635fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2636fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2637fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
2638fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
2639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2640fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
2641fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
2642fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2643fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2644fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional int32 number = 3;
2645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_number()) {
2646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::Int32Size(
2648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->number());
2649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
2652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_label()) {
2653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::EnumSize(this->label());
2655fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2656fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
2658fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_type()) {
2659fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
2661fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2663fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string type_name = 6;
2664fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_type_name()) {
2665fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2666fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
2667fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->type_name());
2668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string extendee = 2;
2671fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_extendee()) {
2672fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2673fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
2674fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->extendee());
2675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string default_value = 7;
2678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_default_value()) {
2679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
2681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->default_value());
2682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2683fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2684fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.FieldOptions options = 8;
2685fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
2686fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
2687fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2688fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
2689fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2690fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2691fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2692fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
2693fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
2694fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
2696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2697d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
2699d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2700fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
2701fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2702fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2703fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
2704fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
2705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const FieldDescriptorProto* source =
2706fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const FieldDescriptorProto*>(
2707fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
2708fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
2709fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2710fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
2711fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
2712fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::MergeFrom(const FieldDescriptorProto& from) {
2716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
2717fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
2719fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
2720fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2721fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
2722fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_number(from.number());
2723fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2724fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
2725fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_label(from.label());
2726fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2727fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(3)) {
2728fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_type(from.type());
2729fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2730fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(4)) {
2731fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_type_name(from.type_name());
2732fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2733fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(5)) {
2734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_extendee(from.extendee());
2735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(6)) {
2737fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_default_value(from.default_value());
2738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2739fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(7)) {
2740fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::FieldOptions::MergeFrom(from.options());
2741fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2742fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2743fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2744fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
2747fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
2748fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
2749fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
2750fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2751fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2752fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::CopyFrom(const FieldDescriptorProto& from) {
2753fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
2754fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
2755fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
2756fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2757fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2758fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldDescriptorProto::IsInitialized() const {
2759fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2760fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
2761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
2762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2763fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
2764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2765fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2766fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldDescriptorProto::Swap(FieldDescriptorProto* other) {
2767fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
2768fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
2769fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(number_, other->number_);
2770fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(label_, other->label_);
2771fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(type_, other->type_);
2772fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(type_name_, other->type_name_);
2773fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(extendee_, other->extendee_);
2774fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(default_value_, other->default_value_);
2775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
2776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
2777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
2778fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
2779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2780fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2781fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2782fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata FieldDescriptorProto::GetMetadata() const {
2783fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
2784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
2785fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = FieldDescriptorProto_descriptor_;
2786fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = FieldDescriptorProto_reflection_;
2787fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
2788fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2789fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2790fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2791fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
2792fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2793fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string EnumDescriptorProto::_default_name_;
2794fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
2795fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumDescriptorProto::kNameFieldNumber;
2796fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumDescriptorProto::kValueFieldNumber;
2797fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumDescriptorProto::kOptionsFieldNumber;
2798fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
2799fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2800d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumDescriptorProto::EnumDescriptorProto()
2801d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
2802fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
2803fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2804fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::InitAsDefaultInstance() {
2806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::EnumOptions*>(&::google::protobuf::EnumOptions::default_instance());
2807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2808fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2809d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from)
2810d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
2811fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
2812fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
2813fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::SharedCtor() {
2816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
2817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
2818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
2819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumDescriptorProto::~EnumDescriptorProto() {
2823fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
2824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2825fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2826fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::SharedDtor() {
2827fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
2828fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
2829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
2831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
2832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2835d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid EnumDescriptorProto::SetCachedSize(int size) const {
2836d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2837d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
2838d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2839d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
2840fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumDescriptorProto::descriptor() {
2841fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
2842fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return EnumDescriptorProto_descriptor_;
2843fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2844fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst EnumDescriptorProto& EnumDescriptorProto::default_instance() {
2846fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
2847fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2848fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2849fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumDescriptorProto* EnumDescriptorProto::default_instance_ = NULL;
2850fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2851fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumDescriptorProto* EnumDescriptorProto::New() const {
2852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new EnumDescriptorProto;
2853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::Clear() {
2856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
2858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
2859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
2860fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2862fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(2)) {
2863fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
2864fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2865fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2866fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  value_.Clear();
2867fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
2868fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
2869fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2870fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumDescriptorProto::MergePartialFromCodedStream(
2872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
2873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
2875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
2876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2877fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
2878fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
2879d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2880fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2881d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2882d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
2883d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2884d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
2885d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
2886d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_value;
2890fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2891fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
2894fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
2895d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2896fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2897d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_value:
2898d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2899d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_value()));
2900d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2903fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_value;
2904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_options;
2905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2908fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.EnumOptions options = 3;
2909fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
2910d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2911fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2912d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
2913d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2914d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
2915d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
2916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
2917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
2919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2921fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
2923fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
2924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
2927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
2928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
2929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
2930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
2931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
2932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
2933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
2935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
2936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::SerializeWithCachedSizes(
2939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
2940fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
2941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
2942fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
2944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2945fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
2946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
2947fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2948fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2949fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
2950fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->value_size(); i++) {
2951d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->value(i), output);
2953fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.EnumOptions options = 3;
2956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
2957d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->options(), output);
2959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2961fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
2962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2963fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
2964fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2965fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2966fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2967fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* EnumDescriptorProto::SerializeWithCachedSizesToArray(
2968fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
2969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
2970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
2971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
2973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
2974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
2975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
2977fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2979fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
2980fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->value_size(); i++) {
2981fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
2982fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
2983fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->value(i), target);
2984fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2985fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.EnumOptions options = 3;
2987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
2988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
2989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
2990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        3, this->options(), target);
2991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
2993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
2994fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
2996fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
2997fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
2998fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
2999fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3000fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint EnumDescriptorProto::ByteSize() const {
3001fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
3002fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3004fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
3005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
3006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
3008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
3009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.EnumOptions options = 3;
3012fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
3013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3014fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3015fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
3016fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3017fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3019fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
3020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->value_size();
3021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->value_size(); i++) {
3022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
3023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3024fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->value(i));
3025fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3027fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3028fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
3029fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3030fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
3031fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3032d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3033fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
3034d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3035fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
3036fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3037fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3038fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3039fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
3040fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const EnumDescriptorProto* source =
3041fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const EnumDescriptorProto*>(
3042fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
3043fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
3044fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3045fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
3046fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
3047fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3048fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3049fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3050fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::MergeFrom(const EnumDescriptorProto& from) {
3051fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
3052fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  value_.MergeFrom(from.value_);
3053fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3054fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
3055fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
3056fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3057fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
3058fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::EnumOptions::MergeFrom(from.options());
3059fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3060fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3061fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3062fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3063fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3064fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3065fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
3066fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
3067fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3068fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3069fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3070fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::CopyFrom(const EnumDescriptorProto& from) {
3071fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
3072fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
3073fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3074fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3075fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3076fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumDescriptorProto::IsInitialized() const {
3077fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3078fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < value_size(); i++) {
3079fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->value(i).IsInitialized()) return false;
3080fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3081fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
3082fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
3083fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3084fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
3085fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3086fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3087fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumDescriptorProto::Swap(EnumDescriptorProto* other) {
3088fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
3089fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
3090fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    value_.Swap(&other->value_);
3091fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
3092fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
3093fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
3094fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
3095fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3096fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3097fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3098fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata EnumDescriptorProto::GetMetadata() const {
3099fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
3100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
3101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = EnumDescriptorProto_descriptor_;
3102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = EnumDescriptorProto_reflection_;
3103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
3104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3106fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3107fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
3108fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string EnumValueDescriptorProto::_default_name_;
3110fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
3111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumValueDescriptorProto::kNameFieldNumber;
3112fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumValueDescriptorProto::kNumberFieldNumber;
3113fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumValueDescriptorProto::kOptionsFieldNumber;
3114fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
3115fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3116d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumValueDescriptorProto::EnumValueDescriptorProto()
3117d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
3118fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
3119fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3120fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::InitAsDefaultInstance() {
3122fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::EnumValueOptions*>(&::google::protobuf::EnumValueOptions::default_instance());
3123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3125d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from)
3126d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
3127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
3128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3130fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3131fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::SharedCtor() {
3132fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
3133fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
3134fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  number_ = 0;
3135fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
3136fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3137fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3138fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumValueDescriptorProto::~EnumValueDescriptorProto() {
3140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
3141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3143fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::SharedDtor() {
3144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
3145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
3146fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
3148fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
3149fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3150fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3151fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3152d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid EnumValueDescriptorProto::SetCachedSize(int size) const {
3153d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3154d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
3155d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3156d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
3157fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumValueDescriptorProto::descriptor() {
3158fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
3159fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return EnumValueDescriptorProto_descriptor_;
3160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3162fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst EnumValueDescriptorProto& EnumValueDescriptorProto::default_instance() {
3163fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
3164fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3165fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3166fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumValueDescriptorProto* EnumValueDescriptorProto::default_instance_ = NULL;
3167fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3168fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumValueDescriptorProto* EnumValueDescriptorProto::New() const {
3169fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new EnumValueDescriptorProto;
3170fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3171fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3172fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::Clear() {
3173fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3174fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
3175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
3176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
3177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3179fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    number_ = 0;
3180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(2)) {
3181fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
3182fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3183fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3184fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3185fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
3186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumValueDescriptorProto::MergePartialFromCodedStream(
3189fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
3190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
3192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
3193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
3195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
3196d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3198d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3199d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
3200d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3201d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
3202d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
3203d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3204fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3205fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3206fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(16)) goto parse_number;
3207fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3208fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional int32 number = 2;
3211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
3212d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
3214d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_number:
3215d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3216d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
3217d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &number_)));
3218d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(1);
3219d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_options;
3223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.EnumValueOptions options = 3;
3227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
3228d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3229fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3230d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
3231d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3232d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
3233d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
3237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3238fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3239fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3240fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
3241fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
3242fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
3245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
3247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
3248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
3253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
3254fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3256fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::SerializeWithCachedSizes(
3257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
3258fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
3259fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
3260fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3261fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
3262fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3263fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
3264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
3265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 number = 2;
3268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
3269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->number(), output);
3270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3272fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.EnumValueOptions options = 3;
3273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
3274d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3275fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->options(), output);
3276fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3277fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3278fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3279fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3280fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
3281fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3282fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3283fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* EnumValueDescriptorProto::SerializeWithCachedSizesToArray(
3285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
3286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
3287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
3288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3289fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
3290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3291fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
3292fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3293fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
3294fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3295fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3296fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int32 number = 2;
3297fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
3298fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->number(), target);
3299fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3300fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.EnumValueOptions options = 3;
3302fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
3303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
3304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
3305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        3, this->options(), target);
3306fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3308fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3310fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
3311fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3312fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
3313fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3314fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3315fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint EnumValueDescriptorProto::ByteSize() const {
3316fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
3317fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3318fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3319fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
3320fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
3321fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3322fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
3323fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
3324fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3325fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3326fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional int32 number = 2;
3327fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_number()) {
3328fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3329fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::Int32Size(
3330fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->number());
3331fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3332fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3333fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.EnumValueOptions options = 3;
3334fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
3335fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3336fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3337fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
3338fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3339fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3340fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3341fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3342fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
3343fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3344fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
3345fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3346d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3347fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
3348d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3349fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
3350fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3351fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3352fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3353fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
3354fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const EnumValueDescriptorProto* source =
3355fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueDescriptorProto*>(
3356fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
3357fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
3358fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3359fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
3360fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
3361fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3362fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3363fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3364fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::MergeFrom(const EnumValueDescriptorProto& from) {
3365fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
3366fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3367fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
3368fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
3369fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
3371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_number(from.number());
3372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3373fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
3374fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::EnumValueOptions::MergeFrom(from.options());
3375fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3376fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3377fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3378fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3379fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3380fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
3382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
3383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::CopyFrom(const EnumValueDescriptorProto& from) {
3387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
3388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
3389fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3391fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3392fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumValueDescriptorProto::IsInitialized() const {
3393fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3394fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
3395fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
3396fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3397fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
3398fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3399fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3400fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueDescriptorProto::Swap(EnumValueDescriptorProto* other) {
3401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
3402fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
3403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(number_, other->number_);
3404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
3405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
3406fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
3407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
3408fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3409fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3410fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3411fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata EnumValueDescriptorProto::GetMetadata() const {
3412fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
3413fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
3414fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = EnumValueDescriptorProto_descriptor_;
3415fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = EnumValueDescriptorProto_reflection_;
3416fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
3417fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3418fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3419fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3420fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
3421fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3422fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string ServiceDescriptorProto::_default_name_;
3423fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
3424fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int ServiceDescriptorProto::kNameFieldNumber;
3425fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int ServiceDescriptorProto::kMethodFieldNumber;
3426fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int ServiceDescriptorProto::kOptionsFieldNumber;
3427fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
3428fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3429d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleServiceDescriptorProto::ServiceDescriptorProto()
3430d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
3431fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
3432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3433fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3434fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::InitAsDefaultInstance() {
3435fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::ServiceOptions*>(&::google::protobuf::ServiceOptions::default_instance());
3436fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3437fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3438d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from)
3439d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
3440fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
3441fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3442fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3443fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3444fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::SharedCtor() {
3445fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
3446fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
3447fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
3448fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3449fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3450fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3451fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleServiceDescriptorProto::~ServiceDescriptorProto() {
3452fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
3453fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3454fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3455fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::SharedDtor() {
3456fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
3457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
3458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
3460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
3461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3462fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3463fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3464d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid ServiceDescriptorProto::SetCachedSize(int size) const {
3465d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3466d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
3467d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3468d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
3469fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* ServiceDescriptorProto::descriptor() {
3470fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
3471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return ServiceDescriptorProto_descriptor_;
3472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ServiceDescriptorProto& ServiceDescriptorProto::default_instance() {
3475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
3476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3478fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleServiceDescriptorProto* ServiceDescriptorProto::default_instance_ = NULL;
3479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3480fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleServiceDescriptorProto* ServiceDescriptorProto::New() const {
3481fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new ServiceDescriptorProto;
3482fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3483fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3484fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::Clear() {
3485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
3487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
3488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
3489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(2)) {
3492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
3493fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3495fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  method_.Clear();
3496fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3497fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
3498fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3499fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3500fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool ServiceDescriptorProto::MergePartialFromCodedStream(
3501fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
3502fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3503fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
3504fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
3505fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3506fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
3507fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
3508d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3509fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3510d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3511d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
3512d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3513d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
3514d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
3515d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3516fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3517fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_method;
3519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3520fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3522fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.MethodDescriptorProto method = 2;
3523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
3524d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3526d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_method:
3527d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3528d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_method()));
3529d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_method;
3533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_options;
3534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3535fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.ServiceOptions options = 3;
3538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
3539d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3541d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
3542d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3543d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
3544d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
3548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3550fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
3552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
3553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
3556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
3558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
3559fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3563fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
3564fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
3565fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3566fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3567fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::SerializeWithCachedSizes(
3568fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
3569fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
3570fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
3571fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3572fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
3573fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3574fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
3575fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
3576fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3577fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3578fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.MethodDescriptorProto method = 2;
3579fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->method_size(); i++) {
3580d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3581fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->method(i), output);
3582fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3583fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3584fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.ServiceOptions options = 3;
3585fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
3586d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3587fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->options(), output);
3588fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3589fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3590fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3591fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3592fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
3593fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3594fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3595fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3596fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* ServiceDescriptorProto::SerializeWithCachedSizesToArray(
3597fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
3598fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
3599fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
3600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3601fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
3602fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
3604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
3606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.MethodDescriptorProto method = 2;
3609fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->method_size(); i++) {
3610fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
3611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
3612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->method(i), target);
3613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.ServiceOptions options = 3;
3616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
3617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
3618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
3619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        3, this->options(), target);
3620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
3625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
3627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint ServiceDescriptorProto::ByteSize() const {
3630fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
3631fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3632fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3633fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
3634fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
3635fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3636fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
3637fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
3638fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3640fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.ServiceOptions options = 3;
3641fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
3642fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
3643fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3644fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
3645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.MethodDescriptorProto method = 2;
3649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->method_size();
3650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->method_size(); i++) {
3651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
3652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
3653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->method(i));
3654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3655fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3656fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
3658fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3659fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
3660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3661d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
3663d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3664fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
3665fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3666fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3667fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
3668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
3669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const ServiceDescriptorProto* source =
3670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const ServiceDescriptorProto*>(
3671fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
3672fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
3673fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3674fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
3675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
3676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::MergeFrom(const ServiceDescriptorProto& from) {
3680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
3681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  method_.MergeFrom(from.method_);
3682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3683fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
3684fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
3685fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3686fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
3687fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::ServiceOptions::MergeFrom(from.options());
3688fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3689fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3690fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
3691fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3692fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3693fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
3694fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
3695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
3696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3697fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3699fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::CopyFrom(const ServiceDescriptorProto& from) {
3700fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
3701fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
3702fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3703fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3704fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool ServiceDescriptorProto::IsInitialized() const {
3706fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3707fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < method_size(); i++) {
3708fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->method(i).IsInitialized()) return false;
3709fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3710fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
3711fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
3712fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
3714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceDescriptorProto::Swap(ServiceDescriptorProto* other) {
3717fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
3718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
3719fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    method_.Swap(&other->method_);
3720fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
3721fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
3722fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
3723fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
3724fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3725fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3726fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3727fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata ServiceDescriptorProto::GetMetadata() const {
3728fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
3729fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
3730fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = ServiceDescriptorProto_descriptor_;
3731fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = ServiceDescriptorProto_reflection_;
3732fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
3733fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
3737fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string MethodDescriptorProto::_default_name_;
3739fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string MethodDescriptorProto::_default_input_type_;
3740fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string MethodDescriptorProto::_default_output_type_;
3741fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
3742fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MethodDescriptorProto::kNameFieldNumber;
3743fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MethodDescriptorProto::kInputTypeFieldNumber;
3744fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MethodDescriptorProto::kOutputTypeFieldNumber;
3745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MethodDescriptorProto::kOptionsFieldNumber;
3746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
3747fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3748d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleMethodDescriptorProto::MethodDescriptorProto()
3749d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
3750fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
3751fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3752fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3753fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::InitAsDefaultInstance() {
3754fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = const_cast< ::google::protobuf::MethodOptions*>(&::google::protobuf::MethodOptions::default_instance());
3755fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3756fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3757d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleMethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from)
3758d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
3759fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
3760fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
3761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3763fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::SharedCtor() {
3764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
3765fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_ = const_cast< ::std::string*>(&_default_name_);
3766fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  input_type_ = const_cast< ::std::string*>(&_default_input_type_);
3767fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  output_type_ = const_cast< ::std::string*>(&_default_output_type_);
3768fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  options_ = NULL;
3769fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3770fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3771fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3772fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMethodDescriptorProto::~MethodDescriptorProto() {
3773fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
3774fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::SharedDtor() {
3777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_ != &_default_name_) {
3778fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_;
3779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3780fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (input_type_ != &_default_input_type_) {
3781fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete input_type_;
3782fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3783fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (output_type_ != &_default_output_type_) {
3784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete output_type_;
3785fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3786fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
3787fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete options_;
3788fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3789fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3790fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3791d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid MethodDescriptorProto::SetCachedSize(int size) const {
3792d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3793d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
3794d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3795d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
3796fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* MethodDescriptorProto::descriptor() {
3797fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
3798fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return MethodDescriptorProto_descriptor_;
3799fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3800fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3801fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst MethodDescriptorProto& MethodDescriptorProto::default_instance() {
3802fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
3803fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3804fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMethodDescriptorProto* MethodDescriptorProto::default_instance_ = NULL;
3806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMethodDescriptorProto* MethodDescriptorProto::New() const {
3808fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new MethodDescriptorProto;
3809fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3810fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3811fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::Clear() {
3812fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
3813fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
3814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_ != &_default_name_) {
3815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_->clear();
3816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(1)) {
3819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (input_type_ != &_default_input_type_) {
3820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        input_type_->clear();
3821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3823fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(2)) {
3824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (output_type_ != &_default_output_type_) {
3825fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        output_type_->clear();
3826fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3827fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3828fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(3)) {
3829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
3830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
3833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
3834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3835fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3836fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool MethodDescriptorProto::MergePartialFromCodedStream(
3837fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
3838fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
3839fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
3840fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
3841fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3842fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string name = 1;
3843fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
3844d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3846d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3847d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name()));
3848d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3849d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name().data(), this->name().length(),
3850d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
3851d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_input_type;
3855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string input_type = 2;
3859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
3860d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3862d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_input_type:
3863d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3864d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_input_type()));
3865d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3866d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->input_type().data(), this->input_type().length(),
3867d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
3868d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3869fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3870fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_output_type;
3872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string output_type = 3;
3876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
3877d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3878fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3879d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_output_type:
3880d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3881d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_output_type()));
3882d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3883d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->output_type().data(), this->output_type().length(),
3884d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
3885d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3886fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(34)) goto parse_options;
3889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3890fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3891fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.MethodOptions options = 4;
3893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 4: {
3894d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3895fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
3896d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_options:
3897d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
3898d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville               input, mutable_options()));
3899d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
3900fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
3901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
3903fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
3907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
3908fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
3909fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
3910fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
3911fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
3912fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
3913fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
3914fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
3915fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
3916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
3917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
3919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
3920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3921fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::SerializeWithCachedSizes(
3923fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
3924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
3925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
3926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
3928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
3930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name(), output);
3931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string input_type = 2;
3934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
3935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->input_type().data(), this->input_type().length(),
3937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
3939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->input_type(), output);
3940fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3942fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string output_type = 3;
3943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
3944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3945fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->output_type().data(), this->output_type().length(),
3946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3947fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
3948fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->output_type(), output);
3949fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3950fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3951fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.MethodOptions options = 4;
3952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
3953d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      4, this->options(), output);
3955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3957fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
3958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
3960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3961fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
3962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3963fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* MethodDescriptorProto::SerializeWithCachedSizesToArray(
3964fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
3965fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string name = 1;
3966fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
3967fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3968fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name().data(), this->name().length(),
3969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
3971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name(), target);
3973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string input_type = 2;
3976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
3977fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->input_type().data(), this->input_type().length(),
3979fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3980fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
3981fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3982fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->input_type(), target);
3983fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3984fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3985fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string output_type = 3;
3986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
3987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
3988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->output_type().data(), this->output_type().length(),
3989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
3990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
3991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        3, this->output_type(), target);
3993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
3994fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
3995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.MethodOptions options = 4;
3996fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
3997fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
3998fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
3999fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        4, this->options(), target);
4000fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4001fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4002fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4004fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
4005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
4007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint MethodDescriptorProto::ByteSize() const {
4010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
4011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4012fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string name = 1;
4014fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name()) {
4015fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4016fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
4017fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name());
4018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4019fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string input_type = 2;
4021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_input_type()) {
4022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
4024fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->input_type());
4025fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4027fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string output_type = 3;
4028fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_output_type()) {
4029fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4030fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
4031fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->output_type());
4032fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4033fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4034fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.MethodOptions options = 4;
4035fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_options()) {
4036fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4037fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4038fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->options());
4039fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4040fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4041fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4042fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4043fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
4044fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4045fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
4046fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4047d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4048fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
4049d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4050fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
4051fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4052fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4053fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::MergeFrom(const ::google::protobuf::Message& from) {
4054fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
4055fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const MethodDescriptorProto* source =
4056fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const MethodDescriptorProto*>(
4057fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
4058fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
4059fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4060fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
4061fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
4062fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4063fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4064fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4065fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::MergeFrom(const MethodDescriptorProto& from) {
4066fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
4067fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4068fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
4069fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name(from.name());
4070fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4071fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
4072fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_input_type(from.input_type());
4073fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4074fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
4075fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_output_type(from.output_type());
4076fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4077fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(3)) {
4078fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      mutable_options()->::google::protobuf::MethodOptions::MergeFrom(from.options());
4079fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4080fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4081fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4082fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4083fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4084fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::CopyFrom(const ::google::protobuf::Message& from) {
4085fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
4086fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
4087fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4088fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4089fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4090fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::CopyFrom(const MethodDescriptorProto& from) {
4091fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
4092fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
4093fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4094fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4095fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4096fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool MethodDescriptorProto::IsInitialized() const {
4097fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4098fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (has_options()) {
4099fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->options().IsInitialized()) return false;
4100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
4102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodDescriptorProto::Swap(MethodDescriptorProto* other) {
4105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
4106fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_, other->name_);
4107fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(input_type_, other->input_type_);
4108fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(output_type_, other->output_type_);
4109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(options_, other->options_);
4110fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
4111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
4112fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
4113fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4114fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4115fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4116fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata MethodDescriptorProto::GetMetadata() const {
4117fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
4118fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
4119fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = MethodDescriptorProto_descriptor_;
4120fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = MethodDescriptorProto_reflection_;
4121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
4122fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4125fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
4126fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor() {
4128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
4129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FileOptions_OptimizeMode_descriptor_;
4130fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4131fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileOptions_OptimizeMode_IsValid(int value) {
4132fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  switch(value) {
4133fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 1:
4134fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 2:
4135fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 3:
4136fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return true;
4137fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    default:
4138fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return false;
4139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
4143fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileOptions_OptimizeMode FileOptions::SPEED;
4144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileOptions_OptimizeMode FileOptions::CODE_SIZE;
4145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileOptions_OptimizeMode FileOptions::LITE_RUNTIME;
4146fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileOptions_OptimizeMode FileOptions::OptimizeMode_MIN;
4147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileOptions_OptimizeMode FileOptions::OptimizeMode_MAX;
4148d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FileOptions::OptimizeMode_ARRAYSIZE;
4149fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // _MSC_VER
4150fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FileOptions::_default_java_package_;
4151fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FileOptions::_default_java_outer_classname_;
4152fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
4153fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileOptions::kJavaPackageFieldNumber;
4154fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileOptions::kJavaOuterClassnameFieldNumber;
4155fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileOptions::kJavaMultipleFilesFieldNumber;
4156fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileOptions::kOptimizeForFieldNumber;
4157d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FileOptions::kCcGenericServicesFieldNumber;
4158d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FileOptions::kJavaGenericServicesFieldNumber;
4159d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FileOptions::kPyGenericServicesFieldNumber;
4160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FileOptions::kUninterpretedOptionFieldNumber;
4161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
4162fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4163d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFileOptions::FileOptions()
4164d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
4165fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
4166fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4167fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4168fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::InitAsDefaultInstance() {
4169fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4170fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4171d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFileOptions::FileOptions(const FileOptions& from)
4172d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
4173fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
4174fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::SharedCtor() {
4178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
4179fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  java_package_ = const_cast< ::std::string*>(&_default_java_package_);
4180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  java_outer_classname_ = const_cast< ::std::string*>(&_default_java_outer_classname_);
4181fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  java_multiple_files_ = false;
4182fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  optimize_for_ = 1;
4183d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  cc_generic_services_ = true;
4184d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  java_generic_services_ = true;
4185d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  py_generic_services_ = true;
4186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4189fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileOptions::~FileOptions() {
4190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
4191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::SharedDtor() {
4194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (java_package_ != &_default_java_package_) {
4195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete java_package_;
4196fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (java_outer_classname_ != &_default_java_outer_classname_) {
4198fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete java_outer_classname_;
4199fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4200fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
4201fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4202fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4203fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4204d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid FileOptions::SetCachedSize(int size) const {
4205d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4206d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
4207d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4208d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
4209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FileOptions::descriptor() {
4210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
4211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FileOptions_descriptor_;
4212fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4214fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FileOptions& FileOptions::default_instance() {
4215fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
4216fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4217fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4218fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileOptions* FileOptions::default_instance_ = NULL;
4219fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFileOptions* FileOptions::New() const {
4221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new FileOptions;
4222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::Clear() {
4225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
4226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
4228fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (java_package_ != &_default_java_package_) {
4229fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        java_package_->clear();
4230fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4231fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4232fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(1)) {
4233fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (java_outer_classname_ != &_default_java_outer_classname_) {
4234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        java_outer_classname_->clear();
4235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    java_multiple_files_ = false;
4238fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    optimize_for_ = 1;
4239d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    cc_generic_services_ = true;
4240d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    java_generic_services_ = true;
4241d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    py_generic_services_ = true;
4242fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
4244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
4246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileOptions::MergePartialFromCodedStream(
4249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
4250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
4252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
4253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4254fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string java_package = 1;
4255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
4256d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4258d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4259d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_java_package()));
4260d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4261d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->java_package().data(), this->java_package().length(),
4262d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
4263d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(66)) goto parse_java_outer_classname;
4267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string java_outer_classname = 8;
4271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 8: {
4272d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4274d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_java_outer_classname:
4275d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4276d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_java_outer_classname()));
4277d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4278d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->java_outer_classname().data(), this->java_outer_classname().length(),
4279d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
4280d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4281fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4282fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4283fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(72)) goto parse_optimize_for;
4284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 9: {
4289d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4291d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_optimize_for:
4292d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          int value;
4293d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4294d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4295d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &value)));
4296d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          if (::google::protobuf::FileOptions_OptimizeMode_IsValid(value)) {
4297d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            set_optimize_for(static_cast< ::google::protobuf::FileOptions_OptimizeMode >(value));
4298d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          } else {
4299d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            mutable_unknown_fields()->AddVarint(9, value);
4300d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          }
4301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        } else {
4302d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
4303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(80)) goto parse_java_multiple_files;
4305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4306fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4308fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional bool java_multiple_files = 10 [default = false];
4309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 10: {
4310d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4311d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4312d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_java_multiple_files:
4313d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4314d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4315d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &java_multiple_files_)));
4316d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(2);
4317d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4318d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
4319d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        }
4320d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (input->ExpectTag(128)) goto parse_cc_generic_services;
4321d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        break;
4322d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      }
4323d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4324d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      // optional bool cc_generic_services = 16 [default = true];
4325d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      case 16: {
4326d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4327d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4328d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_cc_generic_services:
4329d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4330d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4331d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &cc_generic_services_)));
4332d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(4);
4333d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4334d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
4335d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        }
4336d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (input->ExpectTag(136)) goto parse_java_generic_services;
4337d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        break;
4338d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      }
4339d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4340d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      // optional bool java_generic_services = 17 [default = true];
4341d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      case 17: {
4342d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4343fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4344d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_java_generic_services:
4345d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4346d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4347d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &java_generic_services_)));
4348d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(5);
4349d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4350d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
4351d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        }
4352d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (input->ExpectTag(144)) goto parse_py_generic_services;
4353d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        break;
4354d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      }
4355d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4356d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      // optional bool py_generic_services = 18 [default = true];
4357d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      case 18: {
4358d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4359d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4360d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_py_generic_services:
4361d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4362d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4363d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &py_generic_services_)));
4364d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(6);
4365d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4366fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4367fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4368fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
4369fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4373fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
4374d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4375fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4376d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
4377d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4378d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
4379d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4380fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
4383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
4384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
4388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
4389fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4391fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
4392fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4393fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
4394fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
4395fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
4396fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
4397fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4398fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
4399fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
4400fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4402fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
4405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
4406fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4408fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::SerializeWithCachedSizes(
4409fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
4410fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string java_package = 1;
4411fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
4412fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4413fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->java_package().data(), this->java_package().length(),
4414fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
4415fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
4416fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->java_package(), output);
4417fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4418fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4419fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string java_outer_classname = 8;
4420fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
4421fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4422fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->java_outer_classname().data(), this->java_outer_classname().length(),
4423fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
4424fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
4425fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      8, this->java_outer_classname(), output);
4426fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4427fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4428fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4429fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
4430fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteEnum(
4431fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      9, this->optimize_for(), output);
4432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4433fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4434fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool java_multiple_files = 10 [default = false];
4435fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
4436fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->java_multiple_files(), output);
4437fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4438fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4439d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional bool cc_generic_services = 16 [default = true];
4440d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  if (_has_bit(4)) {
4441d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(16, this->cc_generic_services(), output);
4442d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  }
4443d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4444d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional bool java_generic_services = 17 [default = true];
4445d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  if (_has_bit(5)) {
4446d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->java_generic_services(), output);
4447d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  }
4448d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4449d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional bool py_generic_services = 18 [default = true];
4450d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  if (_has_bit(6)) {
4451d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->py_generic_services(), output);
4452d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  }
4453d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4454fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4455fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4456d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
4458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
4461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
4462fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
4463fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4464fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4465fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4466fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
4467fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4468fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4469fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4470fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* FileOptions::SerializeWithCachedSizesToArray(
4471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
4472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string java_package = 1;
4473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
4474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->java_package().data(), this->java_package().length(),
4476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
4477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
4478fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->java_package(), target);
4480fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4481fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4482fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string java_outer_classname = 8;
4483fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
4484fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
4485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->java_outer_classname().data(), this->java_outer_classname().length(),
4486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
4487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
4488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        8, this->java_outer_classname(), target);
4490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4493fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
4494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4495fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      9, this->optimize_for(), target);
4496fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4497fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4498fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool java_multiple_files = 10 [default = false];
4499fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
4500fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->java_multiple_files(), target);
4501fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4502fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4503d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional bool cc_generic_services = 16 [default = true];
4504d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  if (_has_bit(4)) {
4505d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(16, this->cc_generic_services(), target);
4506d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  }
4507d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4508d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional bool java_generic_services = 17 [default = true];
4509d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  if (_has_bit(5)) {
4510d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->java_generic_services(), target);
4511d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  }
4512d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4513d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional bool py_generic_services = 18 [default = true];
4514d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  if (_has_bit(6)) {
4515d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->py_generic_services(), target);
4516d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  }
4517d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4520fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
4521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
4522fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
4523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4524fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
4526fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
4527fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
4528fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4529fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
4532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
4534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4535fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint FileOptions::ByteSize() const {
4537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
4538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4539fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string java_package = 1;
4541fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_java_package()) {
4542fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4543fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
4544fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->java_package());
4545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string java_outer_classname = 8;
4548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_java_outer_classname()) {
4549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4550fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
4551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->java_outer_classname());
4552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional bool java_multiple_files = 10 [default = false];
4555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_java_multiple_files()) {
4556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 1;
4557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4559fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
4560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_optimize_for()) {
4561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
4562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::EnumSize(this->optimize_for());
4563fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4564fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4565d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    // optional bool cc_generic_services = 16 [default = true];
4566d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    if (has_cc_generic_services()) {
4567d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      total_size += 2 + 1;
4568d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    }
4569d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4570d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    // optional bool java_generic_services = 17 [default = true];
4571d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    if (has_java_generic_services()) {
4572d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      total_size += 2 + 1;
4573d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    }
4574d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4575d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    // optional bool py_generic_services = 18 [default = true];
4576d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    if (has_py_generic_services()) {
4577d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      total_size += 2 + 1;
4578d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    }
4579d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
4580fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4581fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4582fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
4583fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4584fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
4585fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4586fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
4587fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4588fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4589fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
4590fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4591fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4592fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
4593fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4594fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
4595fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4596d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4597fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
4598d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4599fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
4600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4601fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4602fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::MergeFrom(const ::google::protobuf::Message& from) {
4603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
4604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const FileOptions* source =
4605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const FileOptions*>(
4606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
4607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
4608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4609fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
4610fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
4611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::MergeFrom(const FileOptions& from) {
4615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
4616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
4617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
4619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_java_package(from.java_package());
4620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
4622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_java_outer_classname(from.java_outer_classname());
4623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
4625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_java_multiple_files(from.java_multiple_files());
4626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(3)) {
4628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_optimize_for(from.optimize_for());
4629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4630d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    if (from._has_bit(4)) {
4631d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      set_cc_generic_services(from.cc_generic_services());
4632d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    }
4633d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    if (from._has_bit(5)) {
4634d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      set_java_generic_services(from.java_generic_services());
4635d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    }
4636d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    if (from._has_bit(6)) {
4637d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      set_py_generic_services(from.py_generic_services());
4638d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    }
4639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4640fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
4641fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4642fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4643fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4644fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::CopyFrom(const ::google::protobuf::Message& from) {
4645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
4646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
4647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::CopyFrom(const FileOptions& from) {
4651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
4652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
4653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4655fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4656fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FileOptions::IsInitialized() const {
4657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4658fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
4659fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
4660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4661fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
4663fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4664fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4665fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FileOptions::Swap(FileOptions* other) {
4666fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
4667fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(java_package_, other->java_package_);
4668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(java_outer_classname_, other->java_outer_classname_);
4669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(java_multiple_files_, other->java_multiple_files_);
4670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(optimize_for_, other->optimize_for_);
4671d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    std::swap(cc_generic_services_, other->cc_generic_services_);
4672d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    std::swap(java_generic_services_, other->java_generic_services_);
4673d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    std::swap(py_generic_services_, other->py_generic_services_);
4674fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
4675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
4676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
4677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
4678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
4679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata FileOptions::GetMetadata() const {
4683fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
4684fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
4685fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = FileOptions_descriptor_;
4686fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = FileOptions_reflection_;
4687fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
4688fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4689fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4690fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4691fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
4692fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4693fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
4694fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MessageOptions::kMessageSetWireFormatFieldNumber;
4695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MessageOptions::kNoStandardDescriptorAccessorFieldNumber;
4696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MessageOptions::kUninterpretedOptionFieldNumber;
4697fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
4698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4699d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleMessageOptions::MessageOptions()
4700d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
4701fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
4702fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4703fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4704fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::InitAsDefaultInstance() {
4705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4706fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4707d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleMessageOptions::MessageOptions(const MessageOptions& from)
4708d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
4709fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
4710fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4711fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4712fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::SharedCtor() {
4714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
4715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  message_set_wire_format_ = false;
4716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  no_standard_descriptor_accessor_ = false;
4717fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4719fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4720fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMessageOptions::~MessageOptions() {
4721fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
4722fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4723fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4724fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::SharedDtor() {
4725fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
4726fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4727fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4728fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4729d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid MessageOptions::SetCachedSize(int size) const {
4730d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4731d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
4732d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4733d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
4734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* MessageOptions::descriptor() {
4735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
4736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return MessageOptions_descriptor_;
4737fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4739fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst MessageOptions& MessageOptions::default_instance() {
4740fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
4741fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4742fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4743fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMessageOptions* MessageOptions::default_instance_ = NULL;
4744fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMessageOptions* MessageOptions::New() const {
4746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new MessageOptions;
4747fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4748fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4749fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::Clear() {
4750fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
4751fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4752fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    message_set_wire_format_ = false;
4753fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    no_standard_descriptor_accessor_ = false;
4754fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4755fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
4756fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
4757fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
4758fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4759fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4760fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool MessageOptions::MergePartialFromCodedStream(
4761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
4762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
4763fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
4764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
4765fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4766fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional bool message_set_wire_format = 1 [default = false];
4767fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
4768d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4769fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4770d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4771d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4772d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &message_set_wire_format_)));
4773d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(0);
4774d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(16)) goto parse_no_standard_descriptor_accessor;
4778fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4780fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4781fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional bool no_standard_descriptor_accessor = 2 [default = false];
4782fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
4783d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
4785d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_no_standard_descriptor_accessor:
4786d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4787d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4788d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &no_standard_descriptor_accessor_)));
4789d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(1);
4790d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4791fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4792fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4793fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
4794fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4795fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4796fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4797fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4798fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
4799d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4800fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
4801d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
4802d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
4803d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
4804d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
4805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
4806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
4808fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
4809fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4810fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4811fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4812fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
4813fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
4814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
4815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
4816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
4817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
4819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
4820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
4821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
4822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
4823fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
4824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
4825fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
4826fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
4827fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4828fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
4830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
4831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::SerializeWithCachedSizes(
4834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
4835fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool message_set_wire_format = 1 [default = false];
4836fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
4837fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->message_set_wire_format(), output);
4838fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4839fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4840fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool no_standard_descriptor_accessor = 2 [default = false];
4841fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
4842fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->no_standard_descriptor_accessor(), output);
4843fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4844fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4846fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4847d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4848fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
4849fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4850fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4851fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
4852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
4853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
4854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
4858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4860fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* MessageOptions::SerializeWithCachedSizesToArray(
4862fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
4863fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool message_set_wire_format = 1 [default = false];
4864fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
4865fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->message_set_wire_format(), target);
4866fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4867fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4868fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool no_standard_descriptor_accessor = 2 [default = false];
4869fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
4870fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->no_standard_descriptor_accessor(), target);
4871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
4876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
4877fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
4878fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4879fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4880fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
4881fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
4882fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
4883fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4884fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4885fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4886fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
4887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
4889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4890fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4891fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint MessageOptions::ByteSize() const {
4892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
4893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4894fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4895fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional bool message_set_wire_format = 1 [default = false];
4896fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_message_set_wire_format()) {
4897fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 1;
4898fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4899fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4900fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional bool no_standard_descriptor_accessor = 2 [default = false];
4901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_no_standard_descriptor_accessor()) {
4902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 1;
4903fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
4907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
4908fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
4909fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
4910fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
4911fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
4912fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4913fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4914fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
4915fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
4917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
4918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
4920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4921d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
4923d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
4925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::MergeFrom(const ::google::protobuf::Message& from) {
4928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
4929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const MessageOptions* source =
4930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const MessageOptions*>(
4931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
4932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
4933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
4935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
4936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::MergeFrom(const MessageOptions& from) {
4940fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
4941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
4942fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
4943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
4944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_message_set_wire_format(from.message_set_wire_format());
4945fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
4947fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_no_standard_descriptor_accessor(from.no_standard_descriptor_accessor());
4948fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
4949fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4950fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
4951fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
4952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4953fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::CopyFrom(const ::google::protobuf::Message& from) {
4955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
4956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
4957fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::CopyFrom(const MessageOptions& from) {
4961fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
4962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
4963fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
4964fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4965fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4966fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool MessageOptions::IsInitialized() const {
4967fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4968fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
4969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
4970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
4973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MessageOptions::Swap(MessageOptions* other) {
4976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
4977fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(message_set_wire_format_, other->message_set_wire_format_);
4978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(no_standard_descriptor_accessor_, other->no_standard_descriptor_accessor_);
4979fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
4980fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
4981fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
4982fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
4983fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
4984fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
4985fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata MessageOptions::GetMetadata() const {
4988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
4989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
4990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = MessageOptions_descriptor_;
4991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = MessageOptions_reflection_;
4992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
4993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
4994fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4996fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
4997fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
4998fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor() {
4999fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5000fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FieldOptions_CType_descriptor_;
5001fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5002fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldOptions_CType_IsValid(int value) {
5003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  switch(value) {
5004d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    case 0:
5005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 1:
5006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    case 2:
5007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return true;
5008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    default:
5009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      return false;
5010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5012fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
5014d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst FieldOptions_CType FieldOptions::STRING;
5015fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldOptions_CType FieldOptions::CORD;
5016fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldOptions_CType FieldOptions::STRING_PIECE;
5017fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldOptions_CType FieldOptions::CType_MIN;
5018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldOptions_CType FieldOptions::CType_MAX;
5019d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleconst int FieldOptions::CType_ARRAYSIZE;
5020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // _MSC_VER
5021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string FieldOptions::_default_experimental_map_key_;
5022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
5023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldOptions::kCtypeFieldNumber;
5024fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldOptions::kPackedFieldNumber;
5025fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldOptions::kDeprecatedFieldNumber;
5026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldOptions::kExperimentalMapKeyFieldNumber;
5027fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int FieldOptions::kUninterpretedOptionFieldNumber;
5028fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
5029fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5030d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFieldOptions::FieldOptions()
5031d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5032fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5033fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5034fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5035fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::InitAsDefaultInstance() {
5036fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5037fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5038d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleFieldOptions::FieldOptions(const FieldOptions& from)
5039d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5040fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5041fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5042fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5043fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5044fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::SharedCtor() {
5045fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
5046d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  ctype_ = 0;
5047fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  packed_ = false;
5048fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  deprecated_ = false;
5049fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  experimental_map_key_ = const_cast< ::std::string*>(&_default_experimental_map_key_);
5050fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5051fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5052fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5053fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFieldOptions::~FieldOptions() {
5054fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
5055fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5056fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5057fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::SharedDtor() {
5058fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (experimental_map_key_ != &_default_experimental_map_key_) {
5059fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete experimental_map_key_;
5060fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5061fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
5062fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5063fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5064fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5065d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid FieldOptions::SetCachedSize(int size) const {
5066d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5067d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
5068d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5069d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
5070fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* FieldOptions::descriptor() {
5071fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5072fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return FieldOptions_descriptor_;
5073fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5074fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5075fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst FieldOptions& FieldOptions::default_instance() {
5076fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
5077fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5078fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5079fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFieldOptions* FieldOptions::default_instance_ = NULL;
5080fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5081fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleFieldOptions* FieldOptions::New() const {
5082fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new FieldOptions;
5083fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5084fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5085fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::Clear() {
5086fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
5087fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5088d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ctype_ = 0;
5089fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    packed_ = false;
5090fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    deprecated_ = false;
5091fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(3)) {
5092fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (experimental_map_key_ != &_default_experimental_map_key_) {
5093fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        experimental_map_key_->clear();
5094fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5095fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5096fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5097fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
5098fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5099fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
5100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldOptions::MergePartialFromCodedStream(
5103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
5104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
5106fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
5107fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5108d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville      // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
5110d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5112d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          int value;
5113d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5114d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5115d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &value)));
5116d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          if (::google::protobuf::FieldOptions_CType_IsValid(value)) {
5117d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            set_ctype(static_cast< ::google::protobuf::FieldOptions_CType >(value));
5118d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          } else {
5119d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            mutable_unknown_fields()->AddVarint(1, value);
5120d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          }
5121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        } else {
5122d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          goto handle_uninterpreted;
5123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(16)) goto parse_packed;
5125fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5126fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional bool packed = 2;
5129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
5130d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5131fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5132d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_packed:
5133d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5134d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5135d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &packed_)));
5136d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(1);
5137d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5138fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(24)) goto parse_deprecated;
5141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5143fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional bool deprecated = 3 [default = false];
5145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
5146d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
5148d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_deprecated:
5149d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5150d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5151d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &deprecated_)));
5152d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(2);
5153d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5154fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5155fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5156fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(74)) goto parse_experimental_map_key;
5157fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5158fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5159fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string experimental_map_key = 9;
5161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 9: {
5162d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5163fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5164d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_experimental_map_key:
5165d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5166d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_experimental_map_key()));
5167d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5168d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->experimental_map_key().data(), this->experimental_map_key().length(),
5169d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
5170d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5171fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5172fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5173fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5174fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
5179d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5181d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
5182d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5183d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
5184d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5185fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
5189fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
5193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
5194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5196fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
5197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5198fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
5199fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
5200fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
5201fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
5202fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5203fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
5204fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
5205fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5206fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5207fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5208fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
5210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
5211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5212fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::SerializeWithCachedSizes(
5214fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
5215d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5216fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
5217fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteEnum(
5218fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->ctype(), output);
5219fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool packed = 2;
5222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
5223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->packed(), output);
5224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool deprecated = 3 [default = false];
5227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
5228fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
5229fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5230fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5231fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string experimental_map_key = 9;
5232fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
5233fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->experimental_map_key().data(), this->experimental_map_key().length(),
5235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
5236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
5237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      9, this->experimental_map_key(), output);
5238fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5239fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5240fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5241fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5242d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
5244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
5248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
5249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
5253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5254fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5256fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* FieldOptions::SerializeWithCachedSizesToArray(
5257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
5258d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5259fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
5260fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5261fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->ctype(), target);
5262fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5263fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool packed = 2;
5265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
5266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->packed(), target);
5267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bool deprecated = 3 [default = false];
5270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
5271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
5272fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5274fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string experimental_map_key = 9;
5275fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
5276fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
5277fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->experimental_map_key().data(), this->experimental_map_key().length(),
5278fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
5279fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
5280fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5281fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        9, this->experimental_map_key(), target);
5282fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5283fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
5287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
5288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
5289fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5291fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5292fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
5293fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
5294fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5295fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5296fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5297fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
5298fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5299fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
5300fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5302fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint FieldOptions::ByteSize() const {
5303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
5304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5306d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
5307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_ctype()) {
5308fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
5309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::EnumSize(this->ctype());
5310fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5311fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5312fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional bool packed = 2;
5313fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_packed()) {
5314fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 1;
5315fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5316fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5317fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional bool deprecated = 3 [default = false];
5318fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_deprecated()) {
5319fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 1;
5320fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5321fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5322fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string experimental_map_key = 9;
5323fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_experimental_map_key()) {
5324fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
5325fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
5326fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->experimental_map_key());
5327fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5328fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5329fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5330fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5331fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
5332fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5333fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
5334fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5335fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
5336fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5337fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5338fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
5339fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5340fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5341fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
5342fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5343fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
5344fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5345d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5346fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
5347d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5348fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
5349fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5350fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5351fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::MergeFrom(const ::google::protobuf::Message& from) {
5352fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
5353fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const FieldOptions* source =
5354fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const FieldOptions*>(
5355fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
5356fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
5357fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5358fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
5359fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
5360fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5361fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5362fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5363fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::MergeFrom(const FieldOptions& from) {
5364fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
5365fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5366fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
5367fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
5368fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_ctype(from.ctype());
5369fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
5371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_packed(from.packed());
5372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5373fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
5374fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_deprecated(from.deprecated());
5375fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5376fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(3)) {
5377fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_experimental_map_key(from.experimental_map_key());
5378fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5379fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5380fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
5381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::CopyFrom(const ::google::protobuf::Message& from) {
5385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
5386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
5387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5389fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::CopyFrom(const FieldOptions& from) {
5391fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
5392fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
5393fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5394fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5395fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5396fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool FieldOptions::IsInitialized() const {
5397fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5398fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
5399fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
5400fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5402fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
5403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid FieldOptions::Swap(FieldOptions* other) {
5406fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
5407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(ctype_, other->ctype_);
5408fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(packed_, other->packed_);
5409fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(deprecated_, other->deprecated_);
5410fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(experimental_map_key_, other->experimental_map_key_);
5411fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
5412fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
5413fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
5414fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
5415fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
5416fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5417fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5418fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5419fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata FieldOptions::GetMetadata() const {
5420fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5421fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
5422fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = FieldOptions_descriptor_;
5423fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = FieldOptions_reflection_;
5424fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
5425fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5426fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5427fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5428fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
5429fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5430fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
5431fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumOptions::kUninterpretedOptionFieldNumber;
5432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
5433fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5434d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumOptions::EnumOptions()
5435d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5436fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5437fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5438fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5439fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::InitAsDefaultInstance() {
5440fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5441fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5442d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumOptions::EnumOptions(const EnumOptions& from)
5443d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5444fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5445fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5446fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5447fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5448fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::SharedCtor() {
5449fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
5450fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5451fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5452fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5453fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumOptions::~EnumOptions() {
5454fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
5455fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5456fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::SharedDtor() {
5458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
5459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5462d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid EnumOptions::SetCachedSize(int size) const {
5463d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5464d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
5465d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5466d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
5467fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumOptions::descriptor() {
5468fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5469fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return EnumOptions_descriptor_;
5470fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst EnumOptions& EnumOptions::default_instance() {
5473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
5474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumOptions* EnumOptions::default_instance_ = NULL;
5477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5478fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumOptions* EnumOptions::New() const {
5479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new EnumOptions;
5480fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5481fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5482fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::Clear() {
5483fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
5484fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
5485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
5487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumOptions::MergePartialFromCodedStream(
5490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
5491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
5493fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
5494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5495fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5496fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
5497d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5498fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5499d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
5500d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5501d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
5502d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5503fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5504fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5505fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5506fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
5507fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5508fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5509fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5510fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
5511fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
5512fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5513fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5514fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
5515fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5516fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
5517fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
5518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
5519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
5520fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
5522fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
5523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5524fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5526fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5527fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
5528fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
5529fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::SerializeWithCachedSizes(
5532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
5533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5535d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
5537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5539fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
5541fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
5542fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5543fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5544fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
5546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* EnumOptions::SerializeWithCachedSizesToArray(
5550fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
5551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
5554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
5555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
5556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5559fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
5560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
5561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5563fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5564fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
5565fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5566fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
5567fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5568fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5569fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint EnumOptions::ByteSize() const {
5570fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
5571fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5572fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5573fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
5574fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5575fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
5576fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5577fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
5578fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5579fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5580fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
5581fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5582fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5583fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
5584fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5585fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
5586fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5587d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5588fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
5589d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5590fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
5591fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5592fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5593fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::MergeFrom(const ::google::protobuf::Message& from) {
5594fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
5595fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const EnumOptions* source =
5596fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const EnumOptions*>(
5597fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
5598fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
5599fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
5601fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
5602fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::MergeFrom(const EnumOptions& from) {
5606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
5607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
5609fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5610fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::CopyFrom(const ::google::protobuf::Message& from) {
5613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
5614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
5615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::CopyFrom(const EnumOptions& from) {
5619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
5620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
5621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumOptions::IsInitialized() const {
5625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
5627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
5628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5630fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
5631fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5632fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5633fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumOptions::Swap(EnumOptions* other) {
5634fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
5635fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
5636fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
5637fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
5638fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
5639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
5640fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5641fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5642fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5643fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata EnumOptions::GetMetadata() const {
5644fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
5646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = EnumOptions_descriptor_;
5647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = EnumOptions_reflection_;
5648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
5649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
5653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
5655fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int EnumValueOptions::kUninterpretedOptionFieldNumber;
5656fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
5657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5658d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumValueOptions::EnumValueOptions()
5659d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5661fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5663fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::InitAsDefaultInstance() {
5664fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5665fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5666d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleEnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
5667d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5671fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5672fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::SharedCtor() {
5673fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
5674fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumValueOptions::~EnumValueOptions() {
5678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
5679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::SharedDtor() {
5682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
5683fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5684fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5685fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5686d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid EnumValueOptions::SetCachedSize(int size) const {
5687d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5688d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
5689d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5690d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
5691fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* EnumValueOptions::descriptor() {
5692fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5693fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return EnumValueOptions_descriptor_;
5694fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst EnumValueOptions& EnumValueOptions::default_instance() {
5697fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
5698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5699fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5700fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumValueOptions* EnumValueOptions::default_instance_ = NULL;
5701fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5702fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleEnumValueOptions* EnumValueOptions::New() const {
5703fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new EnumValueOptions;
5704fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5706fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::Clear() {
5707fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
5708fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
5709fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5710fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
5711fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5712fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumValueOptions::MergePartialFromCodedStream(
5714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
5715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
5717fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
5718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5719fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5720fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
5721d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5722fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5723d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
5724d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5725d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
5726d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5727fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5728fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5729fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5730fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
5731fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5732fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5733fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
5735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
5736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5737fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
5739fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5740fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
5741fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
5742fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
5743fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
5744fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
5746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
5747fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5748fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5749fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5750fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5751fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
5752fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
5753fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5754fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5755fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::SerializeWithCachedSizes(
5756fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
5757fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5758fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5759d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5760fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
5761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5763fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
5765fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
5766fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5767fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5768fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5769fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
5770fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5771fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5772fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5773fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* EnumValueOptions::SerializeWithCachedSizesToArray(
5774fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
5775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
5778fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
5779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
5780fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5781fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5782fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5783fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
5784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
5785fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5786fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5787fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5788fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
5789fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5790fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
5791fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5792fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5793fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint EnumValueOptions::ByteSize() const {
5794fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
5795fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5796fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5797fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
5798fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5799fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
5800fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
5801fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
5802fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5803fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5804fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
5805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
5808fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5809fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
5810fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5811d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5812fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
5813d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
5815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::MergeFrom(const ::google::protobuf::Message& from) {
5818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
5819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const EnumValueOptions* source =
5820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const EnumValueOptions*>(
5821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
5822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
5823fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
5825fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
5826fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5827fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5828fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::MergeFrom(const EnumValueOptions& from) {
5830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
5831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
5832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
5833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
5834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5835fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5836fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::CopyFrom(const ::google::protobuf::Message& from) {
5837fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
5838fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
5839fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5840fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5841fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5842fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::CopyFrom(const EnumValueOptions& from) {
5843fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
5844fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
5845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5846fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5847fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5848fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool EnumValueOptions::IsInitialized() const {
5849fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5850fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
5851fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
5852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
5855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid EnumValueOptions::Swap(EnumValueOptions* other) {
5858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
5859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
5860fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
5861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
5862fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
5863fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
5864fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5865fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5866fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5867fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata EnumValueOptions::GetMetadata() const {
5868fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5869fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
5870fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = EnumValueOptions_descriptor_;
5871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = EnumValueOptions_reflection_;
5872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
5873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
5877fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5878fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
5879fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int ServiceOptions::kUninterpretedOptionFieldNumber;
5880fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
5881fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5882d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleServiceOptions::ServiceOptions()
5883d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5884fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5885fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5886fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::InitAsDefaultInstance() {
5888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5890d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleServiceOptions::ServiceOptions(const ServiceOptions& from)
5891d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
5892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
5893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
5894fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5895fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5896fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::SharedCtor() {
5897fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
5898fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5899fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5900fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleServiceOptions::~ServiceOptions() {
5902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
5903fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::SharedDtor() {
5906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
5907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5908fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5909fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5910d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid ServiceOptions::SetCachedSize(int size) const {
5911d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5912d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
5913d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5914d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
5915fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* ServiceOptions::descriptor() {
5916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
5917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return ServiceOptions_descriptor_;
5918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ServiceOptions& ServiceOptions::default_instance() {
5921fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
5922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5923fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleServiceOptions* ServiceOptions::default_instance_ = NULL;
5925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleServiceOptions* ServiceOptions::New() const {
5927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new ServiceOptions;
5928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::Clear() {
5931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
5932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
5933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
5934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
5935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool ServiceOptions::MergePartialFromCodedStream(
5938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
5939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
5940fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
5941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
5942fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
5945d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
5947d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
5948d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
5949d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
5950d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
5951fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
5952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5953fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
5954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
5955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5957fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
5959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
5960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
5961fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
5962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
5963fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5964fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
5965fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
5966fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
5967fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
5968fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
5969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
5970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
5971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
5972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
5973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
5974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
5976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
5977fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5979fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::SerializeWithCachedSizes(
5980fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
5981fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
5982fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
5983d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5984fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
5985fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
5988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
5989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
5990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
5992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
5994fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
5995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
5996fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
5997fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* ServiceOptions::SerializeWithCachedSizesToArray(
5998fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
5999fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6000fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6001fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
6002fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
6003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
6004fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
6007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
6008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
6009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6012fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
6013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6014fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
6015fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6016fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6017fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint ServiceOptions::ByteSize() const {
6018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
6019fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
6022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6024fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6025fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
6026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6027fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6028fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
6029fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6030fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6031fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6032fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6033fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
6034fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6035d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6036fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
6037d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6038fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
6039fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6040fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6041fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::MergeFrom(const ::google::protobuf::Message& from) {
6042fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6043fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const ServiceOptions* source =
6044fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const ServiceOptions*>(
6045fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
6046fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
6047fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6048fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
6049fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
6050fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6051fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6052fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6053fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::MergeFrom(const ServiceOptions& from) {
6054fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6055fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6056fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
6057fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6058fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6059fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6060fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::CopyFrom(const ::google::protobuf::Message& from) {
6061fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6062fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6063fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6064fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6065fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6066fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::CopyFrom(const ServiceOptions& from) {
6067fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6068fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6069fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6070fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6071fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6072fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool ServiceOptions::IsInitialized() const {
6073fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6074fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
6075fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
6076fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6077fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6078fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
6079fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6080fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6081fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid ServiceOptions::Swap(ServiceOptions* other) {
6082fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
6083fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
6084fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
6085fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
6086fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
6087fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
6088fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6089fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6090fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6091fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata ServiceOptions::GetMetadata() const {
6092fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
6093fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
6094fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = ServiceOptions_descriptor_;
6095fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = ServiceOptions_reflection_;
6096fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
6097fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6098fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6099fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6100fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
6101fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6102fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
6103fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int MethodOptions::kUninterpretedOptionFieldNumber;
6104fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
6105fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6106d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleMethodOptions::MethodOptions()
6107d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
6108fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
6109fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6110fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6111fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::InitAsDefaultInstance() {
6112fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6113fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6114d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleMethodOptions::MethodOptions(const MethodOptions& from)
6115d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
6116fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
6117fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6118fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6119fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6120fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::SharedCtor() {
6121fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
6122fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6123fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6124fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6125fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMethodOptions::~MethodOptions() {
6126fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
6127fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6128fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6129fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::SharedDtor() {
6130fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
6131fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6132fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6133fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6134d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid MethodOptions::SetCachedSize(int size) const {
6135d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6136d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
6137d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6138d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
6139fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* MethodOptions::descriptor() {
6140fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
6141fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return MethodOptions_descriptor_;
6142fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6143fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6144fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst MethodOptions& MethodOptions::default_instance() {
6145fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
6146fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6147fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6148fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMethodOptions* MethodOptions::default_instance_ = NULL;
6149fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6150fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleMethodOptions* MethodOptions::New() const {
6151fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new MethodOptions;
6152fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6153fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6154fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::Clear() {
6155fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.Clear();
6156fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.Clear();
6157fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6158fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
6159fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6160fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6161fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool MethodOptions::MergePartialFromCodedStream(
6162fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
6163fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6164fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
6165fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
6166fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6167fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6168fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 999: {
6169d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6170fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6171d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_uninterpreted_option:
6172d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6173d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_uninterpreted_option()));
6174d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6175fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6176fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6177fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(7994)) goto parse_uninterpreted_option;
6178fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
6179fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6180fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6181fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6182fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
6183fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
6184fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6185fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6186fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
6187fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6188fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if ((8000u <= tag)) {
6189fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          DO_(_extensions_.ParseField(tag, input, default_instance_,
6190fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville                                      mutable_unknown_fields()));
6191fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          continue;
6192fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6193fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
6194fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
6195fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6196fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6197fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6198fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6199fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
6200fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
6201fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6202fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6203fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::SerializeWithCachedSizes(
6204fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
6205fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6206fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6207d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6208fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      999, this->uninterpreted_option(i), output);
6209fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6210fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6211fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
6212fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.SerializeWithCachedSizes(
6213fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, output);
6214fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6215fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6216fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6217fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
6218fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6219fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6220fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6221fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* MethodOptions::SerializeWithCachedSizesToArray(
6222fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
6223fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6224fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6225fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
6226fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
6227fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        999, this->uninterpreted_option(i), target);
6228fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6229fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6230fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // Extension range [1000, 536870912)
6231fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  target = _extensions_.SerializeWithCachedSizesToArray(
6232fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1000, 536870912, target);
6233fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6234fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6235fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6236fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
6237fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6238fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
6239fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6240fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6241fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint MethodOptions::ByteSize() const {
6242fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
6243fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6244fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
6245fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 2 * this->uninterpreted_option_size();
6246fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->uninterpreted_option_size(); i++) {
6247fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6248fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6249fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->uninterpreted_option(i));
6250fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6251fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6252fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += _extensions_.ByteSize();
6253fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6254fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6255fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6256fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6257fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
6258fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6259d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6260fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
6261d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6262fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
6263fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6264fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6265fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::MergeFrom(const ::google::protobuf::Message& from) {
6266fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6267fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const MethodOptions* source =
6268fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const MethodOptions*>(
6269fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
6270fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
6271fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6272fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
6273fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
6274fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6275fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6276fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6277fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::MergeFrom(const MethodOptions& from) {
6278fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6279fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  uninterpreted_option_.MergeFrom(from.uninterpreted_option_);
6280fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _extensions_.MergeFrom(from._extensions_);
6281fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6282fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6283fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6284fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::CopyFrom(const ::google::protobuf::Message& from) {
6285fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6286fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6287fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6288fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6289fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6290fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::CopyFrom(const MethodOptions& from) {
6291fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6292fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6293fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6294fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6295fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6296fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool MethodOptions::IsInitialized() const {
6297fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6298fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < uninterpreted_option_size(); i++) {
6299fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->uninterpreted_option(i).IsInitialized()) return false;
6300fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6301fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6302fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!_extensions_.IsInitialized()) return false;  return true;
6303fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6304fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6305fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid MethodOptions::Swap(MethodOptions* other) {
6306fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
6307fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    uninterpreted_option_.Swap(&other->uninterpreted_option_);
6308fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
6309fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
6310fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
6311fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _extensions_.Swap(&other->_extensions_);
6312fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6313fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6314fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6315fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata MethodOptions::GetMetadata() const {
6316fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
6317fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
6318fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = MethodOptions_descriptor_;
6319fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = MethodOptions_reflection_;
6320fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
6321fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6322fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6323fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6324fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// ===================================================================
6325fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6326fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string UninterpretedOption_NamePart::_default_name_part_;
6327fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
6328fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption_NamePart::kNamePartFieldNumber;
6329fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption_NamePart::kIsExtensionFieldNumber;
6330fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
6331fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6332d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleUninterpretedOption_NamePart::UninterpretedOption_NamePart()
6333d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
6334fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
6335fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6336fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6337fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::InitAsDefaultInstance() {
6338fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6339fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6340d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleUninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from)
6341d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
6342fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
6343fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6344fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6345fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6346fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::SharedCtor() {
6347fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
6348fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_part_ = const_cast< ::std::string*>(&_default_name_part_);
6349fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  is_extension_ = false;
6350fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6351fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6352fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6353fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleUninterpretedOption_NamePart::~UninterpretedOption_NamePart() {
6354fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
6355fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6356fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6357fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::SharedDtor() {
6358fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (name_part_ != &_default_name_part_) {
6359fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete name_part_;
6360fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6361fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
6362fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6363fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6364fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6365d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid UninterpretedOption_NamePart::SetCachedSize(int size) const {
6366d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6367d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
6368d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6369d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
6370fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* UninterpretedOption_NamePart::descriptor() {
6371fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
6372fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return UninterpretedOption_NamePart_descriptor_;
6373fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6374fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6375fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst UninterpretedOption_NamePart& UninterpretedOption_NamePart::default_instance() {
6376fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
6377fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6378fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6379fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleUninterpretedOption_NamePart* UninterpretedOption_NamePart::default_instance_ = NULL;
6380fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6381fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleUninterpretedOption_NamePart* UninterpretedOption_NamePart::New() const {
6382fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new UninterpretedOption_NamePart;
6383fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6384fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6385fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::Clear() {
6386fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6387fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(0)) {
6388fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (name_part_ != &_default_name_part_) {
6389fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        name_part_->clear();
6390fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6391fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6392fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    is_extension_ = false;
6393fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6394fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6395fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
6396fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6397fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6398fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool UninterpretedOption_NamePart::MergePartialFromCodedStream(
6399fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
6400fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6401fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
6402fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
6403fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6404fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // required string name_part = 1;
6405fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 1: {
6406d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6407fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6408d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6409d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_name_part()));
6410d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6411d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->name_part().data(), this->name_part().length(),
6412d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
6413d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6414fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6415fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6416fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(16)) goto parse_is_extension;
6417fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6418fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6419fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6420fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // required bool is_extension = 2;
6421fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
6422d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6423fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6424d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_is_extension:
6425d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6426d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
6427d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &is_extension_)));
6428d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(1);
6429d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6430fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6431fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6432fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
6433fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6434fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6435fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6436fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
6437fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
6438fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6439fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6440fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
6441fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6442fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
6443fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
6444fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6445fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6446fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6447fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6448fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
6449fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
6450fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6451fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6452fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::SerializeWithCachedSizes(
6453fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
6454fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // required string name_part = 1;
6455fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
6456fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6457fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name_part().data(), this->name_part().length(),
6458fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
6459fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
6460fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      1, this->name_part(), output);
6461fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6462fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6463fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // required bool is_extension = 2;
6464fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
6465fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_extension(), output);
6466fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6467fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6468fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6469fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6470fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
6471fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6472fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6473fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6474fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* UninterpretedOption_NamePart::SerializeWithCachedSizesToArray(
6475fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
6476fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // required string name_part = 1;
6477fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(0)) {
6478fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6479fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->name_part().data(), this->name_part().length(),
6480fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
6481fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
6482fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6483fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        1, this->name_part(), target);
6484fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6485fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6486fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // required bool is_extension = 2;
6487fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
6488fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_extension(), target);
6489fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6490fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6491fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6492fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6493fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
6494fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6495fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
6496fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6497fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6498fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint UninterpretedOption_NamePart::ByteSize() const {
6499fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
6500fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6501fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6502fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // required string name_part = 1;
6503fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_name_part()) {
6504fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
6505fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
6506fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->name_part());
6507fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6508fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6509fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // required bool is_extension = 2;
6510fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_is_extension()) {
6511fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 1;
6512fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6513fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6514fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6515fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6516fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6517fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6518fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
6519fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6520d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6521fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
6522d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6523fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
6524fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6525fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6526fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::MergeFrom(const ::google::protobuf::Message& from) {
6527fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6528fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const UninterpretedOption_NamePart* source =
6529fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption_NamePart*>(
6530fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
6531fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
6532fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6533fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
6534fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
6535fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6536fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6537fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6538fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::MergeFrom(const UninterpretedOption_NamePart& from) {
6539fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6540fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
6541fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(0)) {
6542fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_name_part(from.name_part());
6543fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6544fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
6545fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_is_extension(from.is_extension());
6546fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6547fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6548fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6549fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6550fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6551fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::CopyFrom(const ::google::protobuf::Message& from) {
6552fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6553fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6554fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6555fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6556fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6557fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::CopyFrom(const UninterpretedOption_NamePart& from) {
6558fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6559fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6560fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6561fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6562fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6563fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool UninterpretedOption_NamePart::IsInitialized() const {
6564fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
6565fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6566fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
6567fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6568fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6569fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption_NamePart::Swap(UninterpretedOption_NamePart* other) {
6570fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
6571fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(name_part_, other->name_part_);
6572fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(is_extension_, other->is_extension_);
6573fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
6574fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
6575fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
6576fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6577fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6578fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6579fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata UninterpretedOption_NamePart::GetMetadata() const {
6580fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
6581fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
6582fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = UninterpretedOption_NamePart_descriptor_;
6583fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = UninterpretedOption_NamePart_reflection_;
6584fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
6585fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6586fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6587fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6588fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville// -------------------------------------------------------------------
6589fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6590fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string UninterpretedOption::_default_identifier_value_;
6591fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::std::string UninterpretedOption::_default_string_value_;
6592fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#ifndef _MSC_VER
6593fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption::kNameFieldNumber;
6594fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption::kIdentifierValueFieldNumber;
6595fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption::kPositiveIntValueFieldNumber;
6596fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption::kNegativeIntValueFieldNumber;
6597fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption::kDoubleValueFieldNumber;
6598fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst int UninterpretedOption::kStringValueFieldNumber;
6599fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#endif  // !_MSC_VER
6600fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6601d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleUninterpretedOption::UninterpretedOption()
6602d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
6603fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
6604fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6605fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6606fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::InitAsDefaultInstance() {
6607fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6608fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6609d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink SavilleUninterpretedOption::UninterpretedOption(const UninterpretedOption& from)
6610d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  : ::google::protobuf::Message() {
6611fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedCtor();
6612fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6613fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6614fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6615fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::SharedCtor() {
6616fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = 0;
6617fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  identifier_value_ = const_cast< ::std::string*>(&_default_identifier_value_);
6618fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  positive_int_value_ = GOOGLE_ULONGLONG(0);
6619fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  negative_int_value_ = GOOGLE_LONGLONG(0);
6620fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  double_value_ = 0;
6621fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  string_value_ = const_cast< ::std::string*>(&_default_string_value_);
6622fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6623fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6624fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6625fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleUninterpretedOption::~UninterpretedOption() {
6626fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  SharedDtor();
6627fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6628fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6629fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::SharedDtor() {
6630fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (identifier_value_ != &_default_identifier_value_) {
6631fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete identifier_value_;
6632fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6633fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (string_value_ != &_default_string_value_) {
6634fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    delete string_value_;
6635fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6636fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (this != default_instance_) {
6637fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6638fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6639fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6640d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savillevoid UninterpretedOption::SetCachedSize(int size) const {
6641d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6642d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _cached_size_ = size;
6643d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6644d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville}
6645fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst ::google::protobuf::Descriptor* UninterpretedOption::descriptor() {
6646fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
6647fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return UninterpretedOption_descriptor_;
6648fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6649fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6650fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleconst UninterpretedOption& UninterpretedOption::default_instance() {
6651fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();  return *default_instance_;
6652fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6653fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6654fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleUninterpretedOption* UninterpretedOption::default_instance_ = NULL;
6655fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6656fbaaef999ba563838ebd00874ed8a1c01fbf286dWink SavilleUninterpretedOption* UninterpretedOption::New() const {
6657fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return new UninterpretedOption;
6658fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6659fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6660fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::Clear() {
6661fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
6662fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(1)) {
6663fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (identifier_value_ != &_default_identifier_value_) {
6664fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        identifier_value_->clear();
6665fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6666fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6667fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    positive_int_value_ = GOOGLE_ULONGLONG(0);
6668fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    negative_int_value_ = GOOGLE_LONGLONG(0);
6669fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    double_value_ = 0;
6670fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (_has_bit(5)) {
6671fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      if (string_value_ != &_default_string_value_) {
6672fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        string_value_->clear();
6673fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6674fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6675fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6676fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_.Clear();
6677fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::memset(_has_bits_, 0, sizeof(_has_bits_));
6678fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->Clear();
6679fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6680fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6681fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool UninterpretedOption::MergePartialFromCodedStream(
6682fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedInputStream* input) {
6683fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
6684fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::uint32 tag;
6685fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  while ((tag = input->ReadTag()) != 0) {
6686fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6687fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
6688fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 2: {
6689d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6690fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6691d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_name:
6692d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
6693d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, add_name()));
6694d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6695fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6696fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6697fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(18)) goto parse_name;
6698fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(26)) goto parse_identifier_value;
6699fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6700fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6701fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6702fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional string identifier_value = 3;
6703fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 3: {
6704d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6705fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6706d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_identifier_value:
6707d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6708d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_identifier_value()));
6709d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6710d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            this->identifier_value().data(), this->identifier_value().length(),
6711d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville            ::google::protobuf::internal::WireFormat::PARSE);
6712d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6713fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6714fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6715fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(32)) goto parse_positive_int_value;
6716fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6717fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6718fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6719fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional uint64 positive_int_value = 4;
6720fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 4: {
6721d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6722fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6723d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_positive_int_value:
6724d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6725d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6726d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &positive_int_value_)));
6727d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(2);
6728d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6729fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6730fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6731fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(40)) goto parse_negative_int_value;
6732fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6733fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6734fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6735fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional int64 negative_int_value = 5;
6736fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 5: {
6737d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6738fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
6739d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_negative_int_value:
6740d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6741d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
6742d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &negative_int_value_)));
6743d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(3);
6744d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6745fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6746fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6747fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(49)) goto parse_double_value;
6748fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6749fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6750fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6751fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional double double_value = 6;
6752fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 6: {
6753d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6754fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
6755d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_double_value:
6756d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6757d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                   double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
6758d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                 input, &double_value_)));
6759d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          _set_bit(4);
6760d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6761fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6762fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6763fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectTag(58)) goto parse_string_value;
6764fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6765fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6766fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6767fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      // optional bytes string_value = 7;
6768fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      case 7: {
6769d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6770fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
6771d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville         parse_string_value:
6772d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6773d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville                input, this->mutable_string_value()));
6774d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville        } else {
6775fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          goto handle_uninterpreted;
6776fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6777fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (input->ExpectAtEnd()) return true;
6778fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6779fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6780fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6781fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      default: {
6782fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      handle_uninterpreted:
6783fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
6784fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
6785fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          return true;
6786fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        }
6787fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        DO_(::google::protobuf::internal::WireFormat::SkipField(
6788fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville              input, tag, mutable_unknown_fields()));
6789fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        break;
6790fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      }
6791fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6792fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6793fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
6794fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville#undef DO_
6795fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6796fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6797fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::SerializeWithCachedSizes(
6798fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::io::CodedOutputStream* output) const {
6799fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
6800fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->name_size(); i++) {
6801d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6802fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      2, this->name(i), output);
6803fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6804fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6805fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string identifier_value = 3;
6806fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
6807fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6808fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->identifier_value().data(), this->identifier_value().length(),
6809fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
6810fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteString(
6811fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      3, this->identifier_value(), output);
6812fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6813fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6814fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional uint64 positive_int_value = 4;
6815fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
6816fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->positive_int_value(), output);
6817fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6818fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6819fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int64 negative_int_value = 5;
6820fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
6821fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->negative_int_value(), output);
6822fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6823fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6824fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional double double_value = 6;
6825fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(4)) {
6826fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->double_value(), output);
6827fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6828fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6829fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bytes string_value = 7;
6830fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(5)) {
6831fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormatLite::WriteBytes(
6832fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      7, this->string_value(), output);
6833fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6834fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6835fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6836fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6837fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), output);
6838fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6839fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6840fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6841fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::uint8* UninterpretedOption::SerializeWithCachedSizesToArray(
6842fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::uint8* target) const {
6843fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
6844fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->name_size(); i++) {
6845fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::
6846fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      WriteMessageNoVirtualToArray(
6847fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        2, this->name(i), target);
6848fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6849fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6850fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional string identifier_value = 3;
6851fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(1)) {
6852fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::WireFormat::VerifyUTF8String(
6853fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      this->identifier_value().data(), this->identifier_value().length(),
6854fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::SERIALIZE);
6855fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
6856fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6857fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        3, this->identifier_value(), target);
6858fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6859fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6860fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional uint64 positive_int_value = 4;
6861fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(2)) {
6862fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->positive_int_value(), target);
6863fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6864fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6865fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional int64 negative_int_value = 5;
6866fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(3)) {
6867fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->negative_int_value(), target);
6868fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6869fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6870fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional double double_value = 6;
6871fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(4)) {
6872fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->double_value(), target);
6873fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6874fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6875fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // optional bytes string_value = 7;
6876fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bit(5)) {
6877fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target =
6878fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
6879fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        7, this->string_value(), target);
6880fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6881fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6882fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6883fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6884fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields(), target);
6885fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6886fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return target;
6887fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6888fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6889fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savilleint UninterpretedOption::ByteSize() const {
6890fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  int total_size = 0;
6891fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6892fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
6893fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional string identifier_value = 3;
6894fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_identifier_value()) {
6895fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
6896fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::StringSize(
6897fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->identifier_value());
6898fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6899fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6900fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional uint64 positive_int_value = 4;
6901fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_positive_int_value()) {
6902fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
6903fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6904fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->positive_int_value());
6905fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6906fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6907fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional int64 negative_int_value = 5;
6908fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_negative_int_value()) {
6909fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
6910fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::Int64Size(
6911fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->negative_int_value());
6912fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6913fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6914fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional double double_value = 6;
6915fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_double_value()) {
6916fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 + 8;
6917fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6918fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6919fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    // optional bytes string_value = 7;
6920fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (has_string_value()) {
6921fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      total_size += 1 +
6922fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        ::google::protobuf::internal::WireFormatLite::BytesSize(
6923fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville          this->string_value());
6924fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6925fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6926fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6927fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
6928fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  total_size += 1 * this->name_size();
6929fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < this->name_size(); i++) {
6930fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6931fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
6932fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        this->name(i));
6933fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6934fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6935fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (!unknown_fields().empty()) {
6936fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    total_size +=
6937fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6938fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville        unknown_fields());
6939fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6940d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6941fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  _cached_size_ = total_size;
6942d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6943fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return total_size;
6944fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6945fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6946fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::MergeFrom(const ::google::protobuf::Message& from) {
6947fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6948fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  const UninterpretedOption* source =
6949fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::dynamic_cast_if_available<const UninterpretedOption*>(
6950fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      &from);
6951fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (source == NULL) {
6952fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6953fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  } else {
6954fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    MergeFrom(*source);
6955fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6956fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6957fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6958fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::MergeFrom(const UninterpretedOption& from) {
6959fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  GOOGLE_CHECK_NE(&from, this);
6960fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  name_.MergeFrom(from.name_);
6961fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
6962fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(1)) {
6963fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_identifier_value(from.identifier_value());
6964fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6965fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(2)) {
6966fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_positive_int_value(from.positive_int_value());
6967fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6968fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(3)) {
6969fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_negative_int_value(from.negative_int_value());
6970fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6971fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(4)) {
6972fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_double_value(from.double_value());
6973fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6974fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (from._has_bit(5)) {
6975fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville      set_string_value(from.string_value());
6976fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    }
6977fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6978fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  mutable_unknown_fields()->MergeFrom(from.unknown_fields());
6979fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6980fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6981fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::CopyFrom(const ::google::protobuf::Message& from) {
6982fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6983fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6984fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6985fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6986fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6987fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::CopyFrom(const UninterpretedOption& from) {
6988fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (&from == this) return;
6989fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  Clear();
6990fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  MergeFrom(from);
6991fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
6992fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6993fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillebool UninterpretedOption::IsInitialized() const {
6994fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
6995fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  for (int i = 0; i < name_size(); i++) {
6996fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    if (!this->name(i).IsInitialized()) return false;
6997fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
6998fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return true;
6999fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
7000fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
7001fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Savillevoid UninterpretedOption::Swap(UninterpretedOption* other) {
7002fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  if (other != this) {
7003fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    name_.Swap(&other->name_);
7004fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(identifier_value_, other->identifier_value_);
7005fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(positive_int_value_, other->positive_int_value_);
7006fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(negative_int_value_, other->negative_int_value_);
7007fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(double_value_, other->double_value_);
7008fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(string_value_, other->string_value_);
7009fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_has_bits_[0], other->_has_bits_[0]);
7010fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    _unknown_fields_.Swap(&other->_unknown_fields_);
7011fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville    std::swap(_cached_size_, other->_cached_size_);
7012fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  }
7013fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
7014fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
7015fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville::google::protobuf::Metadata UninterpretedOption::GetMetadata() const {
7016fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  protobuf_AssignDescriptorsOnce();
7017fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  ::google::protobuf::Metadata metadata;
7018fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.descriptor = UninterpretedOption_descriptor_;
7019fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  metadata.reflection = UninterpretedOption_reflection_;
7020fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville  return metadata;
7021fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}
7022fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
7023fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville
7024d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville// @@protoc_insertion_point(namespace_scope)
7025d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
7026fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}  // namespace protobuf
7027fbaaef999ba563838ebd00874ed8a1c01fbf286dWink Saville}  // namespace google
7028d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville
7029d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville// @@protoc_insertion_point(global_scope)
7030