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
8e190d49
Commit
8e190d49
authored
Apr 17, 2015
by
Jan Tattermusch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temporarily removing csharp_umbrella_namespace file option
parent
83a5991d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
78 deletions
+1
-78
csharp_helpers.cc
src/google/protobuf/compiler/csharp/csharp_helpers.cc
+1
-3
descriptor.pb.cc
src/google/protobuf/descriptor.pb.cc
+0
-0
descriptor.pb.h
src/google/protobuf/descriptor.pb.h
+0
-68
descriptor.proto
src/google/protobuf/descriptor.proto
+0
-7
No files found.
src/google/protobuf/compiler/csharp/csharp_helpers.cc
View file @
8e190d49
...
...
@@ -127,9 +127,7 @@ std::string GetFileUmbrellaClassname(const FileDescriptor* descriptor) {
}
std
::
string
GetFileUmbrellaNamespace
(
const
FileDescriptor
*
descriptor
)
{
if
(
descriptor
->
options
().
has_csharp_umbrella_namespace
())
{
return
descriptor
->
options
().
csharp_umbrella_namespace
();
}
// TODO(jtattermusch): reintroduce csharp_umbrella_namespace option
bool
collision
=
false
;
std
::
string
umbrella_classname
=
GetFileUmbrellaClassname
(
descriptor
);
for
(
int
i
=
0
;
i
<
descriptor
->
message_type_count
();
i
++
)
{
...
...
src/google/protobuf/descriptor.pb.cc
View file @
8e190d49
This diff is collapsed.
Click to expand it.
src/google/protobuf/descriptor.pb.h
View file @
8e190d49
...
...
@@ -1849,18 +1849,6 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
::
std
::
string
*
release_csharp_namespace
();
void
set_allocated_csharp_namespace
(
::
std
::
string
*
csharp_namespace
);
// optional string csharp_umbrella_namespace = 38;
bool
has_csharp_umbrella_namespace
()
const
;
void
clear_csharp_umbrella_namespace
();
static
const
int
kCsharpUmbrellaNamespaceFieldNumber
=
38
;
const
::
std
::
string
&
csharp_umbrella_namespace
()
const
;
void
set_csharp_umbrella_namespace
(
const
::
std
::
string
&
value
);
void
set_csharp_umbrella_namespace
(
const
char
*
value
);
void
set_csharp_umbrella_namespace
(
const
char
*
value
,
size_t
size
);
::
std
::
string
*
mutable_csharp_umbrella_namespace
();
::
std
::
string
*
release_csharp_umbrella_namespace
();
void
set_allocated_csharp_umbrella_namespace
(
::
std
::
string
*
csharp_umbrella_namespace
);
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
int
uninterpreted_option_size
()
const
;
void
clear_uninterpreted_option
();
...
...
@@ -1904,8 +1892,6 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
inline
void
clear_has_objc_class_prefix
();
inline
void
set_has_csharp_namespace
();
inline
void
clear_has_csharp_namespace
();
inline
void
set_has_csharp_umbrella_namespace
();
inline
void
clear_has_csharp_umbrella_namespace
();
::
google
::
protobuf
::
internal
::
ExtensionSet
_extensions_
;
...
...
@@ -1922,7 +1908,6 @@ class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
::
google
::
protobuf
::
internal
::
ArenaStringPtr
go_package_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
objc_class_prefix_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
csharp_namespace_
;
::
google
::
protobuf
::
internal
::
ArenaStringPtr
csharp_umbrella_namespace_
;
::
google
::
protobuf
::
RepeatedPtrField
<
::
google
::
protobuf
::
UninterpretedOption
>
uninterpreted_option_
;
bool
java_generic_services_
;
bool
py_generic_services_
;
...
...
@@ -5585,59 +5570,6 @@ inline void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_na
// @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
}
// optional string csharp_umbrella_namespace = 38;
inline
bool
FileOptions
::
has_csharp_umbrella_namespace
()
const
{
return
(
_has_bits_
[
0
]
&
0x00004000u
)
!=
0
;
}
inline
void
FileOptions
::
set_has_csharp_umbrella_namespace
()
{
_has_bits_
[
0
]
|=
0x00004000u
;
}
inline
void
FileOptions
::
clear_has_csharp_umbrella_namespace
()
{
_has_bits_
[
0
]
&=
~
0x00004000u
;
}
inline
void
FileOptions
::
clear_csharp_umbrella_namespace
()
{
csharp_umbrella_namespace_
.
ClearToEmptyNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
clear_has_csharp_umbrella_namespace
();
}
inline
const
::
std
::
string
&
FileOptions
::
csharp_umbrella_namespace
()
const
{
// @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_umbrella_namespace)
return
csharp_umbrella_namespace_
.
GetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
void
FileOptions
::
set_csharp_umbrella_namespace
(
const
::
std
::
string
&
value
)
{
set_has_csharp_umbrella_namespace
();
csharp_umbrella_namespace_
.
SetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
value
);
// @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_umbrella_namespace)
}
inline
void
FileOptions
::
set_csharp_umbrella_namespace
(
const
char
*
value
)
{
set_has_csharp_umbrella_namespace
();
csharp_umbrella_namespace_
.
SetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
value
));
// @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_umbrella_namespace)
}
inline
void
FileOptions
::
set_csharp_umbrella_namespace
(
const
char
*
value
,
size_t
size
)
{
set_has_csharp_umbrella_namespace
();
csharp_umbrella_namespace_
.
SetNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
::
std
::
string
(
reinterpret_cast
<
const
char
*>
(
value
),
size
));
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_umbrella_namespace)
}
inline
::
std
::
string
*
FileOptions
::
mutable_csharp_umbrella_namespace
()
{
set_has_csharp_umbrella_namespace
();
// @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_umbrella_namespace)
return
csharp_umbrella_namespace_
.
MutableNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
::
std
::
string
*
FileOptions
::
release_csharp_umbrella_namespace
()
{
clear_has_csharp_umbrella_namespace
();
return
csharp_umbrella_namespace_
.
ReleaseNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
());
}
inline
void
FileOptions
::
set_allocated_csharp_umbrella_namespace
(
::
std
::
string
*
csharp_umbrella_namespace
)
{
if
(
csharp_umbrella_namespace
!=
NULL
)
{
set_has_csharp_umbrella_namespace
();
}
else
{
clear_has_csharp_umbrella_namespace
();
}
csharp_umbrella_namespace_
.
SetAllocatedNoArena
(
&::
google
::
protobuf
::
internal
::
GetEmptyStringAlreadyInited
(),
csharp_umbrella_namespace
);
// @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_umbrella_namespace)
}
// repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
inline
int
FileOptions
::
uninterpreted_option_size
()
const
{
return
uninterpreted_option_
.
size
();
...
...
src/google/protobuf/descriptor.proto
View file @
8e190d49
...
...
@@ -354,13 +354,6 @@ message FileOptions {
// Namespace for generated classes; defaults to the package.
optional
string
csharp_namespace
=
37
;
// A nested namespace for the umbrella class, which contains metadata about
// all the messages within the file. This option is helpful for name
// collisions between the umbrella class and an existing type. This will be
// automatically set to 'Proto' if a collision is detected with types being
// generated.
optional
string
csharp_umbrella_namespace
=
38
;
// The parser stores options it doesn't recognize here. See above.
repeated
UninterpretedOption
uninterpreted_option
=
999
;
...
...
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