Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
eb26a1ef
Commit
eb26a1ef
authored
Apr 16, 2009
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit Michael Poole's patch for explicitly constructing all class fields in
generated code.
parent
e59427a6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
112 additions
and
20 deletions
+112
-20
CHANGES.txt
CHANGES.txt
+2
-0
CONTRIBUTORS.txt
CONTRIBUTORS.txt
+3
-0
cpp_enum_field.cc
src/google/protobuf/compiler/cpp/cpp_enum_field.cc
+5
-1
cpp_message.cc
src/google/protobuf/compiler/cpp/cpp_message.cc
+1
-0
cpp_message_field.cc
src/google/protobuf/compiler/cpp/cpp_message_field.cc
+1
-1
cpp_primitive_field.cc
src/google/protobuf/compiler/cpp/cpp_primitive_field.cc
+5
-1
cpp_string_field.cc
src/google/protobuf/compiler/cpp/cpp_string_field.cc
+1
-1
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+94
-16
No files found.
CHANGES.txt
View file @
eb26a1ef
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
* GzipInputStream and GzipOutputStream support reading/writing gzip- or
* GzipInputStream and GzipOutputStream support reading/writing gzip- or
zlib-compressed streams if zlib is available.
zlib-compressed streams if zlib is available.
(google/protobuf/io/gzip_stream.h)
(google/protobuf/io/gzip_stream.h)
* Generated constructors explicitly initialize all fields (to avoid warnings
with certain compiler settings).
Java
Java
* Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
* Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
...
...
CONTRIBUTORS.txt
View file @
eb26a1ef
...
@@ -59,3 +59,6 @@ Patch contributors:
...
@@ -59,3 +59,6 @@ Patch contributors:
* MS Visual Studio error format option.
* MS Visual Studio error format option.
Brian Olson <brianolson@google.com>
Brian Olson <brianolson@google.com>
* gzip/zlib I/O support.
* gzip/zlib I/O support.
Michael Poole <mdpoole@troilus.org>
* Fixed warnings about generated constructors not explicitly initializing
all fields (only present with certain compiler settings).
src/google/protobuf/compiler/cpp/cpp_enum_field.cc
View file @
eb26a1ef
...
@@ -218,7 +218,11 @@ GenerateSwappingCode(io::Printer* printer) const {
...
@@ -218,7 +218,11 @@ GenerateSwappingCode(io::Printer* printer) const {
void
RepeatedEnumFieldGenerator
::
void
RepeatedEnumFieldGenerator
::
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
// Not needed for repeated fields.
printer
->
Print
(
variables_
,
",
\n
$name$_()"
);
if
(
descriptor_
->
options
().
packed
()
&&
descriptor_
->
file
()
->
options
().
optimize_for
()
==
FileOptions
::
SPEED
)
{
printer
->
Print
(
variables_
,
",
\n
_$name$_cached_byte_size_()"
);
}
}
}
void
RepeatedEnumFieldGenerator
::
void
RepeatedEnumFieldGenerator
::
...
...
src/google/protobuf/compiler/cpp/cpp_message.cc
View file @
eb26a1ef
...
@@ -753,6 +753,7 @@ GenerateInitializerList(io::Printer* printer) {
...
@@ -753,6 +753,7 @@ GenerateInitializerList(io::Printer* printer) {
}
}
printer
->
Print
(
printer
->
Print
(
"_unknown_fields_(),
\n
"
"_cached_size_(0)"
);
"_cached_size_(0)"
);
// Write the initializers for each field.
// Write the initializers for each field.
...
...
src/google/protobuf/compiler/cpp/cpp_message_field.cc
View file @
eb26a1ef
...
@@ -213,7 +213,7 @@ GenerateSwappingCode(io::Printer* printer) const {
...
@@ -213,7 +213,7 @@ GenerateSwappingCode(io::Printer* printer) const {
void
RepeatedMessageFieldGenerator
::
void
RepeatedMessageFieldGenerator
::
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
// Not needed for repeated fields.
printer
->
Print
(
variables_
,
",
\n
$name$_()"
);
}
}
void
RepeatedMessageFieldGenerator
::
void
RepeatedMessageFieldGenerator
::
...
...
src/google/protobuf/compiler/cpp/cpp_primitive_field.cc
View file @
eb26a1ef
...
@@ -283,7 +283,11 @@ GenerateSwappingCode(io::Printer* printer) const {
...
@@ -283,7 +283,11 @@ GenerateSwappingCode(io::Printer* printer) const {
void
RepeatedPrimitiveFieldGenerator
::
void
RepeatedPrimitiveFieldGenerator
::
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
// Not needed for repeated fields.
printer
->
Print
(
variables_
,
",
\n
$name$_()"
);
if
(
descriptor_
->
options
().
packed
()
&&
descriptor_
->
file
()
->
options
().
optimize_for
()
==
FileOptions
::
SPEED
)
{
printer
->
Print
(
variables_
,
",
\n
_$name$_cached_byte_size_()"
);
}
}
}
void
RepeatedPrimitiveFieldGenerator
::
void
RepeatedPrimitiveFieldGenerator
::
...
...
src/google/protobuf/compiler/cpp/cpp_string_field.cc
View file @
eb26a1ef
...
@@ -361,7 +361,7 @@ GenerateSwappingCode(io::Printer* printer) const {
...
@@ -361,7 +361,7 @@ GenerateSwappingCode(io::Printer* printer) const {
void
RepeatedStringFieldGenerator
::
void
RepeatedStringFieldGenerator
::
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
GenerateInitializer
(
io
::
Printer
*
printer
)
const
{
// Not needed for repeated fields.
printer
->
Print
(
variables_
,
",
\n
$name$_()"
);
}
}
void
RepeatedStringFieldGenerator
::
void
RepeatedStringFieldGenerator
::
...
...
src/google/protobuf/descriptor.pb.cc
View file @
eb26a1ef
...
@@ -560,7 +560,9 @@ struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
...
@@ -560,7 +560,9 @@ struct StaticDescriptorInitializer_google_2fprotobuf_2fdescriptor_2eproto {
FileDescriptorSet
::
FileDescriptorSet
()
FileDescriptorSet
::
FileDescriptorSet
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
file_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -568,7 +570,9 @@ void FileDescriptorSet::InitAsDefaultInstance() {}
...
@@ -568,7 +570,9 @@ void FileDescriptorSet::InitAsDefaultInstance() {}
FileDescriptorSet
::
FileDescriptorSet
(
const
FileDescriptorSet
&
from
)
FileDescriptorSet
::
FileDescriptorSet
(
const
FileDescriptorSet
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
file_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -740,9 +744,15 @@ const ::std::string FileDescriptorProto::_default_package_;
...
@@ -740,9 +744,15 @@ const ::std::string FileDescriptorProto::_default_package_;
FileDescriptorProto
::
FileDescriptorProto
()
FileDescriptorProto
::
FileDescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_package_
)),
package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_package_
)),
dependency_
(),
message_type_
(),
enum_type_
(),
service_
(),
extension_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -752,9 +762,15 @@ void FileDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::go
...
@@ -752,9 +762,15 @@ void FileDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::go
FileDescriptorProto
::
FileDescriptorProto
(
const
FileDescriptorProto
&
from
)
FileDescriptorProto
::
FileDescriptorProto
(
const
FileDescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_package_
)),
package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_package_
)),
dependency_
(),
message_type_
(),
enum_type_
(),
service_
(),
extension_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
...
@@ -1160,6 +1176,7 @@ const ::google::protobuf::Reflection* FileDescriptorProto::GetReflection() const
...
@@ -1160,6 +1176,7 @@ const ::google::protobuf::Reflection* FileDescriptorProto::GetReflection() const
DescriptorProto_ExtensionRange
::
DescriptorProto_ExtensionRange
()
DescriptorProto_ExtensionRange
::
DescriptorProto_ExtensionRange
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
start_
(
0
),
start_
(
0
),
end_
(
0
)
{
end_
(
0
)
{
...
@@ -1170,6 +1187,7 @@ void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {}
...
@@ -1170,6 +1187,7 @@ void DescriptorProto_ExtensionRange::InitAsDefaultInstance() {}
DescriptorProto_ExtensionRange
::
DescriptorProto_ExtensionRange
(
const
DescriptorProto_ExtensionRange
&
from
)
DescriptorProto_ExtensionRange
::
DescriptorProto_ExtensionRange
(
const
DescriptorProto_ExtensionRange
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
start_
(
0
),
start_
(
0
),
end_
(
0
)
{
end_
(
0
)
{
...
@@ -1377,8 +1395,14 @@ const ::std::string DescriptorProto::_default_name_;
...
@@ -1377,8 +1395,14 @@ const ::std::string DescriptorProto::_default_name_;
DescriptorProto
::
DescriptorProto
()
DescriptorProto
::
DescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
field_
(),
extension_
(),
nested_type_
(),
enum_type_
(),
extension_range_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -1388,8 +1412,14 @@ void DescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::google
...
@@ -1388,8 +1412,14 @@ void DescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::google
DescriptorProto
::
DescriptorProto
(
const
DescriptorProto
&
from
)
DescriptorProto
::
DescriptorProto
(
const
DescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
field_
(),
extension_
(),
nested_type_
(),
enum_type_
(),
extension_range_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
...
@@ -1841,6 +1871,7 @@ const ::std::string FieldDescriptorProto::_default_default_value_;
...
@@ -1841,6 +1871,7 @@ const ::std::string FieldDescriptorProto::_default_default_value_;
FieldDescriptorProto
::
FieldDescriptorProto
()
FieldDescriptorProto
::
FieldDescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
number_
(
0
),
number_
(
0
),
...
@@ -1858,6 +1889,7 @@ void FieldDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::g
...
@@ -1858,6 +1889,7 @@ void FieldDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::g
FieldDescriptorProto
::
FieldDescriptorProto
(
const
FieldDescriptorProto
&
from
)
FieldDescriptorProto
::
FieldDescriptorProto
(
const
FieldDescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
number_
(
0
),
number_
(
0
),
...
@@ -2280,8 +2312,10 @@ const ::std::string EnumDescriptorProto::_default_name_;
...
@@ -2280,8 +2312,10 @@ const ::std::string EnumDescriptorProto::_default_name_;
EnumDescriptorProto
::
EnumDescriptorProto
()
EnumDescriptorProto
::
EnumDescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
value_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -2291,8 +2325,10 @@ void EnumDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::go
...
@@ -2291,8 +2325,10 @@ void EnumDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::go
EnumDescriptorProto
::
EnumDescriptorProto
(
const
EnumDescriptorProto
&
from
)
EnumDescriptorProto
::
EnumDescriptorProto
(
const
EnumDescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
value_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
...
@@ -2536,6 +2572,7 @@ const ::std::string EnumValueDescriptorProto::_default_name_;
...
@@ -2536,6 +2572,7 @@ const ::std::string EnumValueDescriptorProto::_default_name_;
EnumValueDescriptorProto
::
EnumValueDescriptorProto
()
EnumValueDescriptorProto
::
EnumValueDescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
number_
(
0
),
number_
(
0
),
...
@@ -2548,6 +2585,7 @@ void EnumValueDescriptorProto::InitAsDefaultInstance() { options_ = const_cast<
...
@@ -2548,6 +2585,7 @@ void EnumValueDescriptorProto::InitAsDefaultInstance() { options_ = const_cast<
EnumValueDescriptorProto
::
EnumValueDescriptorProto
(
const
EnumValueDescriptorProto
&
from
)
EnumValueDescriptorProto
::
EnumValueDescriptorProto
(
const
EnumValueDescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
number_
(
0
),
number_
(
0
),
...
@@ -2792,8 +2830,10 @@ const ::std::string ServiceDescriptorProto::_default_name_;
...
@@ -2792,8 +2830,10 @@ const ::std::string ServiceDescriptorProto::_default_name_;
ServiceDescriptorProto
::
ServiceDescriptorProto
()
ServiceDescriptorProto
::
ServiceDescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
method_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -2803,8 +2843,10 @@ void ServiceDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< :
...
@@ -2803,8 +2843,10 @@ void ServiceDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< :
ServiceDescriptorProto
::
ServiceDescriptorProto
(
const
ServiceDescriptorProto
&
from
)
ServiceDescriptorProto
::
ServiceDescriptorProto
(
const
ServiceDescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
method_
(),
options_
(
NULL
)
{
options_
(
NULL
)
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
...
@@ -3049,6 +3091,7 @@ const ::std::string MethodDescriptorProto::_default_output_type_;
...
@@ -3049,6 +3091,7 @@ const ::std::string MethodDescriptorProto::_default_output_type_;
MethodDescriptorProto
::
MethodDescriptorProto
()
MethodDescriptorProto
::
MethodDescriptorProto
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
input_type_
(
const_cast
<
::
std
::
string
*>
(
&
_default_input_type_
)),
input_type_
(
const_cast
<
::
std
::
string
*>
(
&
_default_input_type_
)),
...
@@ -3062,6 +3105,7 @@ void MethodDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::
...
@@ -3062,6 +3105,7 @@ void MethodDescriptorProto::InitAsDefaultInstance() { options_ = const_cast< ::
MethodDescriptorProto
::
MethodDescriptorProto
(
const
MethodDescriptorProto
&
from
)
MethodDescriptorProto
::
MethodDescriptorProto
(
const
MethodDescriptorProto
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
name_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_
)),
input_type_
(
const_cast
<
::
std
::
string
*>
(
&
_default_input_type_
)),
input_type_
(
const_cast
<
::
std
::
string
*>
(
&
_default_input_type_
)),
...
@@ -3371,11 +3415,13 @@ FileOptions::FileOptions()
...
@@ -3371,11 +3415,13 @@ FileOptions::FileOptions()
_extensions_
(
&
FileOptions_descriptor_
,
_extensions_
(
&
FileOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
java_package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_package_
)),
java_package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_package_
)),
java_outer_classname_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_outer_classname_
)),
java_outer_classname_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_outer_classname_
)),
java_multiple_files_
(
false
),
java_multiple_files_
(
false
),
optimize_for_
(
2
)
{
optimize_for_
(
2
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -3386,11 +3432,13 @@ FileOptions::FileOptions(const FileOptions& from)
...
@@ -3386,11 +3432,13 @@ FileOptions::FileOptions(const FileOptions& from)
_extensions_
(
&
FileOptions_descriptor_
,
_extensions_
(
&
FileOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
java_package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_package_
)),
java_package_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_package_
)),
java_outer_classname_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_outer_classname_
)),
java_outer_classname_
(
const_cast
<
::
std
::
string
*>
(
&
_default_java_outer_classname_
)),
java_multiple_files_
(
false
),
java_multiple_files_
(
false
),
optimize_for_
(
2
)
{
optimize_for_
(
2
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -3711,8 +3759,10 @@ MessageOptions::MessageOptions()
...
@@ -3711,8 +3759,10 @@ MessageOptions::MessageOptions()
_extensions_
(
&
MessageOptions_descriptor_
,
_extensions_
(
&
MessageOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
message_set_wire_format_
(
false
)
{
message_set_wire_format_
(
false
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -3723,8 +3773,10 @@ MessageOptions::MessageOptions(const MessageOptions& from)
...
@@ -3723,8 +3773,10 @@ MessageOptions::MessageOptions(const MessageOptions& from)
_extensions_
(
&
MessageOptions_descriptor_
,
_extensions_
(
&
MessageOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
message_set_wire_format_
(
false
)
{
message_set_wire_format_
(
false
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -3963,10 +4015,12 @@ FieldOptions::FieldOptions()
...
@@ -3963,10 +4015,12 @@ FieldOptions::FieldOptions()
_extensions_
(
&
FieldOptions_descriptor_
,
_extensions_
(
&
FieldOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
ctype_
(
1
),
ctype_
(
1
),
packed_
(
false
),
packed_
(
false
),
experimental_map_key_
(
const_cast
<
::
std
::
string
*>
(
&
_default_experimental_map_key_
))
{
experimental_map_key_
(
const_cast
<
::
std
::
string
*>
(
&
_default_experimental_map_key_
)),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -3977,10 +4031,12 @@ FieldOptions::FieldOptions(const FieldOptions& from)
...
@@ -3977,10 +4031,12 @@ FieldOptions::FieldOptions(const FieldOptions& from)
_extensions_
(
&
FieldOptions_descriptor_
,
_extensions_
(
&
FieldOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
ctype_
(
1
),
ctype_
(
1
),
packed_
(
false
),
packed_
(
false
),
experimental_map_key_
(
const_cast
<
::
std
::
string
*>
(
&
_default_experimental_map_key_
))
{
experimental_map_key_
(
const_cast
<
::
std
::
string
*>
(
&
_default_experimental_map_key_
)),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -4265,7 +4321,9 @@ EnumOptions::EnumOptions()
...
@@ -4265,7 +4321,9 @@ EnumOptions::EnumOptions()
_extensions_
(
&
EnumOptions_descriptor_
,
_extensions_
(
&
EnumOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -4276,7 +4334,9 @@ EnumOptions::EnumOptions(const EnumOptions& from)
...
@@ -4276,7 +4334,9 @@ EnumOptions::EnumOptions(const EnumOptions& from)
_extensions_
(
&
EnumOptions_descriptor_
,
_extensions_
(
&
EnumOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -4458,7 +4518,9 @@ EnumValueOptions::EnumValueOptions()
...
@@ -4458,7 +4518,9 @@ EnumValueOptions::EnumValueOptions()
_extensions_
(
&
EnumValueOptions_descriptor_
,
_extensions_
(
&
EnumValueOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -4469,7 +4531,9 @@ EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
...
@@ -4469,7 +4531,9 @@ EnumValueOptions::EnumValueOptions(const EnumValueOptions& from)
_extensions_
(
&
EnumValueOptions_descriptor_
,
_extensions_
(
&
EnumValueOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -4651,7 +4715,9 @@ ServiceOptions::ServiceOptions()
...
@@ -4651,7 +4715,9 @@ ServiceOptions::ServiceOptions()
_extensions_
(
&
ServiceOptions_descriptor_
,
_extensions_
(
&
ServiceOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -4662,7 +4728,9 @@ ServiceOptions::ServiceOptions(const ServiceOptions& from)
...
@@ -4662,7 +4728,9 @@ ServiceOptions::ServiceOptions(const ServiceOptions& from)
_extensions_
(
&
ServiceOptions_descriptor_
,
_extensions_
(
&
ServiceOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -4844,7 +4912,9 @@ MethodOptions::MethodOptions()
...
@@ -4844,7 +4912,9 @@ MethodOptions::MethodOptions()
_extensions_
(
&
MethodOptions_descriptor_
,
_extensions_
(
&
MethodOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
}
}
...
@@ -4855,7 +4925,9 @@ MethodOptions::MethodOptions(const MethodOptions& from)
...
@@ -4855,7 +4925,9 @@ MethodOptions::MethodOptions(const MethodOptions& from)
_extensions_
(
&
MethodOptions_descriptor_
,
_extensions_
(
&
MethodOptions_descriptor_
,
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
DescriptorPool
::
generated_pool
(),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
::
google
::
protobuf
::
MessageFactory
::
generated_factory
()),
_cached_size_
(
0
)
{
_unknown_fields_
(),
_cached_size_
(
0
),
uninterpreted_option_
()
{
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
::
memset
(
_has_bits_
,
0
,
sizeof
(
_has_bits_
));
MergeFrom
(
from
);
MergeFrom
(
from
);
}
}
...
@@ -5035,6 +5107,7 @@ const ::std::string UninterpretedOption_NamePart::_default_name_part_;
...
@@ -5035,6 +5107,7 @@ const ::std::string UninterpretedOption_NamePart::_default_name_part_;
UninterpretedOption_NamePart
::
UninterpretedOption_NamePart
()
UninterpretedOption_NamePart
::
UninterpretedOption_NamePart
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_part_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_part_
)),
name_part_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_part_
)),
is_extension_
(
false
)
{
is_extension_
(
false
)
{
...
@@ -5045,6 +5118,7 @@ void UninterpretedOption_NamePart::InitAsDefaultInstance() {}
...
@@ -5045,6 +5118,7 @@ void UninterpretedOption_NamePart::InitAsDefaultInstance() {}
UninterpretedOption_NamePart
::
UninterpretedOption_NamePart
(
const
UninterpretedOption_NamePart
&
from
)
UninterpretedOption_NamePart
::
UninterpretedOption_NamePart
(
const
UninterpretedOption_NamePart
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_part_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_part_
)),
name_part_
(
const_cast
<
::
std
::
string
*>
(
&
_default_name_part_
)),
is_extension_
(
false
)
{
is_extension_
(
false
)
{
...
@@ -5254,7 +5328,9 @@ const ::std::string UninterpretedOption::_default_identifier_value_;
...
@@ -5254,7 +5328,9 @@ const ::std::string UninterpretedOption::_default_identifier_value_;
const
::
std
::
string
UninterpretedOption
::
_default_string_value_
;
const
::
std
::
string
UninterpretedOption
::
_default_string_value_
;
UninterpretedOption
::
UninterpretedOption
()
UninterpretedOption
::
UninterpretedOption
()
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(),
identifier_value_
(
const_cast
<
::
std
::
string
*>
(
&
_default_identifier_value_
)),
identifier_value_
(
const_cast
<
::
std
::
string
*>
(
&
_default_identifier_value_
)),
positive_int_value_
(
GOOGLE_ULONGLONG
(
0
)),
positive_int_value_
(
GOOGLE_ULONGLONG
(
0
)),
negative_int_value_
(
GOOGLE_LONGLONG
(
0
)),
negative_int_value_
(
GOOGLE_LONGLONG
(
0
)),
...
@@ -5267,7 +5343,9 @@ void UninterpretedOption::InitAsDefaultInstance() {}
...
@@ -5267,7 +5343,9 @@ void UninterpretedOption::InitAsDefaultInstance() {}
UninterpretedOption
::
UninterpretedOption
(
const
UninterpretedOption
&
from
)
UninterpretedOption
::
UninterpretedOption
(
const
UninterpretedOption
&
from
)
:
::
google
::
protobuf
::
Message
(),
:
::
google
::
protobuf
::
Message
(),
_unknown_fields_
(),
_cached_size_
(
0
),
_cached_size_
(
0
),
name_
(),
identifier_value_
(
const_cast
<
::
std
::
string
*>
(
&
_default_identifier_value_
)),
identifier_value_
(
const_cast
<
::
std
::
string
*>
(
&
_default_identifier_value_
)),
positive_int_value_
(
GOOGLE_ULONGLONG
(
0
)),
positive_int_value_
(
GOOGLE_ULONGLONG
(
0
)),
negative_int_value_
(
GOOGLE_LONGLONG
(
0
)),
negative_int_value_
(
GOOGLE_LONGLONG
(
0
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment