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
e2368c90
Commit
e2368c90
authored
Jul 22, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix attribute mistake and regenerate code.
parent
17fd398e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
10 deletions
+0
-10
UnittestProto3.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+0
-4
UnittestWellKnownTypes.cs
...Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+0
-2
Struct.cs
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
+0
-2
csharp_message.cc
src/google/protobuf/compiler/csharp/csharp_message.cc
+0
-2
No files found.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
View file @
e2368c90
...
...
@@ -786,12 +786,10 @@ namespace Google.Protobuf.TestProtos {
OneofBytes
=
114
,
}
private
OneofFieldOneofCase
oneofFieldCase_
=
OneofFieldOneofCase
.
None
;
[
pbr
::
ProtobufOneof
(
"oneof_field"
)]
public
OneofFieldOneofCase
OneofFieldCase
{
get
{
return
oneofFieldCase_
;
}
}
[
pbr
::
ProtobufOneof
(
"oneof_field"
)]
public
void
ClearOneofField
()
{
pb
::
Freezable
.
CheckMutable
(
this
);
oneofFieldCase_
=
OneofFieldOneofCase
.
None
;
...
...
@@ -4728,12 +4726,10 @@ namespace Google.Protobuf.TestProtos {
FooMessage
=
3
,
}
private
FooOneofCase
fooCase_
=
FooOneofCase
.
None
;
[
pbr
::
ProtobufOneof
(
"foo"
)]
public
FooOneofCase
FooCase
{
get
{
return
fooCase_
;
}
}
[
pbr
::
ProtobufOneof
(
"foo"
)]
public
void
ClearFoo
()
{
pb
::
Freezable
.
CheckMutable
(
this
);
fooCase_
=
FooOneofCase
.
None
;
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
View file @
e2368c90
...
...
@@ -1592,12 +1592,10 @@ namespace Google.Protobuf.TestProtos {
BytesField
=
18
,
}
private
OneofFieldOneofCase
oneofFieldCase_
=
OneofFieldOneofCase
.
None
;
[
pbr
::
ProtobufOneof
(
"oneof_field"
)]
public
OneofFieldOneofCase
OneofFieldCase
{
get
{
return
oneofFieldCase_
;
}
}
[
pbr
::
ProtobufOneof
(
"oneof_field"
)]
public
void
ClearOneofField
()
{
pb
::
Freezable
.
CheckMutable
(
this
);
oneofFieldCase_
=
OneofFieldOneofCase
.
None
;
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
View file @
e2368c90
...
...
@@ -295,12 +295,10 @@ namespace Google.Protobuf.WellKnownTypes {
ListValue
=
6
,
}
private
KindOneofCase
kindCase_
=
KindOneofCase
.
None
;
[
pbr
::
ProtobufOneof
(
"kind"
)]
public
KindOneofCase
KindCase
{
get
{
return
kindCase_
;
}
}
[
pbr
::
ProtobufOneof
(
"kind"
)]
public
void
ClearKind
()
{
pb
::
Freezable
.
CheckMutable
(
this
);
kindCase_
=
KindOneofCase
.
None
;
...
...
src/google/protobuf/compiler/csharp/csharp_message.cc
View file @
e2368c90
...
...
@@ -186,11 +186,9 @@ void MessageGenerator::Generate(io::Printer* printer) {
printer
->
Print
(
vars
,
"private $property_name$OneofCase $name$Case_ = $property_name$OneofCase.None;
\n
"
"[pbr::ProtobufOneof(
\"
$original_name$
\"
)]
\n
"
"public $property_name$OneofCase $property_name$Case {
\n
"
" get { return $name$Case_; }
\n
"
"}
\n\n
"
"[pbr::ProtobufOneof(
\"
$original_name$
\"
)]
\n
"
"public void Clear$property_name$() {
\n
"
" pb::Freezable.CheckMutable(this);
\n
"
" $name$Case_ = $property_name$OneofCase.None;
\n
"
...
...
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