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
e62d1f13
Commit
e62d1f13
authored
Sep 23, 2016
by
Bo Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back removed descriptor field.
parent
fac876dc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
34 deletions
+66
-34
Descriptor.cs
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
+0
-0
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+0
-0
descriptor.pb.h
src/google/protobuf/descriptor.pb.h
+64
-30
descriptor.proto
src/google/protobuf/descriptor.proto
+2
-4
No files found.
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
View file @
e62d1f13
This diff is collapsed.
Click to expand it.
src/google/protobuf/descriptor.pb.cc
View file @
e62d1f13
This diff is collapsed.
Click to expand it.
src/google/protobuf/descriptor.pb.h
View file @
e62d1f13
...
...
@@ -2082,6 +2082,13 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
bool
java_multiple_files
()
const
;
void
set_java_multiple_files
(
bool
value
);
// optional bool java_generate_equals_and_hash = 20 [deprecated = true];
GOOGLE_PROTOBUF_DEPRECATED_ATTR
bool
has_java_generate_equals_and_hash
()
const
;
GOOGLE_PROTOBUF_DEPRECATED_ATTR
void
clear_java_generate_equals_and_hash
();
GOOGLE_PROTOBUF_DEPRECATED_ATTR
static
const
int
kJavaGenerateEqualsAndHashFieldNumber
=
20
;
GOOGLE_PROTOBUF_DEPRECATED_ATTR
bool
java_generate_equals_and_hash
()
const
;
GOOGLE_PROTOBUF_DEPRECATED_ATTR
void
set_java_generate_equals_and_hash
(
bool
value
);
// optional bool java_string_check_utf8 = 27 [default = false];
bool
has_java_string_check_utf8
()
const
;
void
clear_java_string_check_utf8
();
...
...
@@ -2188,6 +2195,8 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
inline
void
clear_has_java_outer_classname
();
inline
void
set_has_java_multiple_files
();
inline
void
clear_has_java_multiple_files
();
inline
void
set_has_java_generate_equals_and_hash
();
inline
void
clear_has_java_generate_equals_and_hash
();
inline
void
set_has_java_string_check_utf8
();
inline
void
clear_has_java_string_check_utf8
();
inline
void
set_has_optimize_for
();
...
...
@@ -2221,6 +2230,7 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@p
::
google
::
protobuf
::
internal
::
ArenaStringPtr
objc_class_prefix_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
csharp_namespace_
;
bool
java_multiple_files_
;
bool
java_generate_equals_and_hash_
;
bool
java_string_check_utf8_
;
bool
cc_generic_services_
;
bool
java_generic_services_
;
...
...
@@ -6292,15 +6302,39 @@ inline void FileOptions::set_java_multiple_files(bool value) {
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
}
// optional bool java_generate_equals_and_hash = 20 [deprecated = true];
inline
bool
FileOptions
::
has_java_generate_equals_and_hash
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000008u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_generate_equals_and_hash
()
{
_has_bits_
[
0
]
|=
0x00000008u
;
}
inline
void
FileOptions
::
clear_has_java_generate_equals_and_hash
()
{
_has_bits_
[
0
]
&=
~
0x00000008u
;
}
inline
void
FileOptions
::
clear_java_generate_equals_and_hash
()
{
java_generate_equals_and_hash_
=
false
;
clear_has_java_generate_equals_and_hash
();
}
inline
bool
FileOptions
::
java_generate_equals_and_hash
()
const
{
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
return
java_generate_equals_and_hash_
;
}
inline
void
FileOptions
::
set_java_generate_equals_and_hash
(
bool
value
)
{
set_has_java_generate_equals_and_hash
();
java_generate_equals_and_hash_
=
value
;
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
}
// optional bool java_string_check_utf8 = 27 [default = false];
inline
bool
FileOptions
::
has_java_string_check_utf8
()
const
{
return
(
_has_bits_
[
0
]
&
0x000000
08
u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x000000
10
u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_string_check_utf8
()
{
_has_bits_
[
0
]
|=
0x000000
08
u
;
_has_bits_
[
0
]
|=
0x000000
10
u
;
}
inline
void
FileOptions
::
clear_has_java_string_check_utf8
()
{
_has_bits_
[
0
]
&=
~
0x000000
08
u
;
_has_bits_
[
0
]
&=
~
0x000000
10
u
;
}
inline
void
FileOptions
::
clear_java_string_check_utf8
()
{
java_string_check_utf8_
=
false
;
...
...
@@ -6318,13 +6352,13 @@ inline void FileOptions::set_java_string_check_utf8(bool value) {
// optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
inline
bool
FileOptions
::
has_optimize_for
()
const
{
return
(
_has_bits_
[
0
]
&
0x000000
1
0u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x000000
2
0u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_optimize_for
()
{
_has_bits_
[
0
]
|=
0x000000
1
0u
;
_has_bits_
[
0
]
|=
0x000000
2
0u
;
}
inline
void
FileOptions
::
clear_has_optimize_for
()
{
_has_bits_
[
0
]
&=
~
0x000000
1
0u
;
_has_bits_
[
0
]
&=
~
0x000000
2
0u
;
}
inline
void
FileOptions
::
clear_optimize_for
()
{
optimize_for_
=
1
;
...
...
@@ -6343,13 +6377,13 @@ inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_Optimi
// optional string go_package = 11;
inline
bool
FileOptions
::
has_go_package
()
const
{
return
(
_has_bits_
[
0
]
&
0x000000
2
0u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x000000
4
0u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_go_package
()
{
_has_bits_
[
0
]
|=
0x000000
2
0u
;
_has_bits_
[
0
]
|=
0x000000
4
0u
;
}
inline
void
FileOptions
::
clear_has_go_package
()
{
_has_bits_
[
0
]
&=
~
0x000000
2
0u
;
_has_bits_
[
0
]
&=
~
0x000000
4
0u
;
}
inline
void
FileOptions
::
clear_go_package
()
{
go_package_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
@@ -6397,13 +6431,13 @@ inline void FileOptions::set_allocated_go_package(::std::string* go_package) {
// optional bool cc_generic_services = 16 [default = false];
inline
bool
FileOptions
::
has_cc_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x000000
4
0u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x000000
8
0u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_cc_generic_services
()
{
_has_bits_
[
0
]
|=
0x000000
4
0u
;
_has_bits_
[
0
]
|=
0x000000
8
0u
;
}
inline
void
FileOptions
::
clear_has_cc_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x000000
4
0u
;
_has_bits_
[
0
]
&=
~
0x000000
8
0u
;
}
inline
void
FileOptions
::
clear_cc_generic_services
()
{
cc_generic_services_
=
false
;
...
...
@@ -6421,13 +6455,13 @@ inline void FileOptions::set_cc_generic_services(bool value) {
// optional bool java_generic_services = 17 [default = false];
inline
bool
FileOptions
::
has_java_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
08
0u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
10
0u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_java_generic_services
()
{
_has_bits_
[
0
]
|=
0x00000
08
0u
;
_has_bits_
[
0
]
|=
0x00000
10
0u
;
}
inline
void
FileOptions
::
clear_has_java_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x00000
08
0u
;
_has_bits_
[
0
]
&=
~
0x00000
10
0u
;
}
inline
void
FileOptions
::
clear_java_generic_services
()
{
java_generic_services_
=
false
;
...
...
@@ -6445,13 +6479,13 @@ inline void FileOptions::set_java_generic_services(bool value) {
// optional bool py_generic_services = 18 [default = false];
inline
bool
FileOptions
::
has_py_generic_services
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
1
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
2
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_py_generic_services
()
{
_has_bits_
[
0
]
|=
0x00000
1
00u
;
_has_bits_
[
0
]
|=
0x00000
2
00u
;
}
inline
void
FileOptions
::
clear_has_py_generic_services
()
{
_has_bits_
[
0
]
&=
~
0x00000
1
00u
;
_has_bits_
[
0
]
&=
~
0x00000
2
00u
;
}
inline
void
FileOptions
::
clear_py_generic_services
()
{
py_generic_services_
=
false
;
...
...
@@ -6469,13 +6503,13 @@ inline void FileOptions::set_py_generic_services(bool value) {
// optional bool deprecated = 23 [default = false];
inline
bool
FileOptions
::
has_deprecated
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
2
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
4
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_deprecated
()
{
_has_bits_
[
0
]
|=
0x00000
2
00u
;
_has_bits_
[
0
]
|=
0x00000
4
00u
;
}
inline
void
FileOptions
::
clear_has_deprecated
()
{
_has_bits_
[
0
]
&=
~
0x00000
2
00u
;
_has_bits_
[
0
]
&=
~
0x00000
4
00u
;
}
inline
void
FileOptions
::
clear_deprecated
()
{
deprecated_
=
false
;
...
...
@@ -6493,13 +6527,13 @@ inline void FileOptions::set_deprecated(bool value) {
// optional bool cc_enable_arenas = 31 [default = false];
inline
bool
FileOptions
::
has_cc_enable_arenas
()
const
{
return
(
_has_bits_
[
0
]
&
0x00000
4
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x00000
8
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_cc_enable_arenas
()
{
_has_bits_
[
0
]
|=
0x00000
4
00u
;
_has_bits_
[
0
]
|=
0x00000
8
00u
;
}
inline
void
FileOptions
::
clear_has_cc_enable_arenas
()
{
_has_bits_
[
0
]
&=
~
0x00000
4
00u
;
_has_bits_
[
0
]
&=
~
0x00000
8
00u
;
}
inline
void
FileOptions
::
clear_cc_enable_arenas
()
{
cc_enable_arenas_
=
false
;
...
...
@@ -6517,13 +6551,13 @@ inline void FileOptions::set_cc_enable_arenas(bool value) {
// optional string objc_class_prefix = 36;
inline
bool
FileOptions
::
has_objc_class_prefix
()
const
{
return
(
_has_bits_
[
0
]
&
0x0000
08
00u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x0000
10
00u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_objc_class_prefix
()
{
_has_bits_
[
0
]
|=
0x0000
08
00u
;
_has_bits_
[
0
]
|=
0x0000
10
00u
;
}
inline
void
FileOptions
::
clear_has_objc_class_prefix
()
{
_has_bits_
[
0
]
&=
~
0x0000
08
00u
;
_has_bits_
[
0
]
&=
~
0x0000
10
00u
;
}
inline
void
FileOptions
::
clear_objc_class_prefix
()
{
objc_class_prefix_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
@@ -6571,13 +6605,13 @@ inline void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_cla
// optional string csharp_namespace = 37;
inline
bool
FileOptions
::
has_csharp_namespace
()
const
{
return
(
_has_bits_
[
0
]
&
0x0000
1
000u
)
!=
0
;
return
(
_has_bits_
[
0
]
&
0x0000
2
000u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_csharp_namespace
()
{
_has_bits_
[
0
]
|=
0x0000
1
000u
;
_has_bits_
[
0
]
|=
0x0000
2
000u
;
}
inline
void
FileOptions
::
clear_has_csharp_namespace
()
{
_has_bits_
[
0
]
&=
~
0x0000
1
000u
;
_has_bits_
[
0
]
&=
~
0x0000
2
000u
;
}
inline
void
FileOptions
::
clear_csharp_namespace
()
{
csharp_namespace_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
...
...
src/google/protobuf/descriptor.proto
View file @
e62d1f13
...
...
@@ -305,10 +305,8 @@ message FileOptions {
// top-level extensions defined in the file.
optional
bool
java_multiple_files
=
10
[
default
=
false
];
// BEGIN PROTOBUF-OPENSOURCE
// // This option does nothing.
// optional bool java_generate_equals_and_hash = 20 [deprecated=true];
// END PROTOBUF-OPENSOURCE
// This option does nothing.
optional
bool
java_generate_equals_and_hash
=
20
[
deprecated
=
true
];
// If set true, then the Java2 code generator will generate code that
// throws an exception whenever an attempt is made to assign a non-UTF-8
...
...
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