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
5cb5d782
Commit
5cb5d782
authored
Jun 25, 2009
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround for Mono bug 516379
parent
a22663ed
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
51 additions
and
51 deletions
+51
-51
AddressBookProtos.cs
src/AddressBook/AddressBookProtos.cs
+9
-9
MessageGenerator.cs
src/ProtoGen/MessageGenerator.cs
+3
-3
UnitTestCSharpOptionsProtoFile.cs
...Buffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
+3
-3
UnitTestCustomOptionsProtoFile.cs
...Buffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
+0
-0
UnitTestEmbedOptimizeForProtoFile.cs
...fers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
+3
-3
UnitTestImportProtoFile.cs
...rotocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
+3
-3
UnitTestMessageSetProtoFile.cs
...colBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
+18
-18
UnitTestOptimizeForProtoFile.cs
...olBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
+6
-6
UnitTestProtoFile.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
+0
-0
CSharpOptions.cs
src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
+6
-6
DescriptorProtoFile.cs
src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
+0
-0
No files found.
src/AddressBook/AddressBookProtos.cs
View file @
5cb5d782
...
@@ -233,11 +233,11 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -233,11 +233,11 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
PhoneNumber
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
.
Descriptor
;
}
}
}
public
override
PhoneNumber
DefaultInstanceForType
{
public
override
PhoneNumber
DefaultInstanceForType
{
get
{
return
PhoneNumber
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
.
DefaultInstance
;
}
}
}
public
override
PhoneNumber
BuildPartial
()
{
public
override
PhoneNumber
BuildPartial
()
{
...
@@ -259,7 +259,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -259,7 +259,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
public
override
Builder
MergeFrom
(
PhoneNumber
other
)
{
public
override
Builder
MergeFrom
(
PhoneNumber
other
)
{
if
(
other
==
PhoneNumber
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
.
DefaultInstance
)
return
this
;
if
(
other
.
HasNumber
)
{
if
(
other
.
HasNumber
)
{
Number
=
other
.
Number
;
Number
=
other
.
Number
;
}
}
...
@@ -517,11 +517,11 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -517,11 +517,11 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
Person
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
Person
.
Descriptor
;
}
}
}
public
override
Person
DefaultInstanceForType
{
public
override
Person
DefaultInstanceForType
{
get
{
return
Person
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
Person
.
DefaultInstance
;
}
}
}
public
override
Person
BuildPartial
()
{
public
override
Person
BuildPartial
()
{
...
@@ -544,7 +544,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -544,7 +544,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
public
override
Builder
MergeFrom
(
Person
other
)
{
public
override
Builder
MergeFrom
(
Person
other
)
{
if
(
other
==
Person
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
Person
.
DefaultInstance
)
return
this
;
if
(
other
.
HasName
)
{
if
(
other
.
HasName
)
{
Name
=
other
.
Name
;
Name
=
other
.
Name
;
}
}
...
@@ -836,11 +836,11 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -836,11 +836,11 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
AddressBook
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBook
.
Descriptor
;
}
}
}
public
override
AddressBook
DefaultInstanceForType
{
public
override
AddressBook
DefaultInstanceForType
{
get
{
return
AddressBook
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBook
.
DefaultInstance
;
}
}
}
public
override
AddressBook
BuildPartial
()
{
public
override
AddressBook
BuildPartial
()
{
...
@@ -863,7 +863,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -863,7 +863,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
public
override
Builder
MergeFrom
(
AddressBook
other
)
{
public
override
Builder
MergeFrom
(
AddressBook
other
)
{
if
(
other
==
AddressBook
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBook
.
DefaultInstance
)
return
this
;
if
(
other
.
person_
.
Count
!=
0
)
{
if
(
other
.
person_
.
Count
!=
0
)
{
base
.
AddRange
(
other
.
person_
,
result
.
person_
);
base
.
AddRange
(
other
.
person_
,
result
.
person_
);
}
}
...
...
src/ProtoGen/MessageGenerator.cs
View file @
5cb5d782
...
@@ -349,11 +349,11 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -349,11 +349,11 @@ namespace Google.ProtocolBuffers.ProtoGen {
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
();
writer
.
WriteLine
();
writer
.
WriteLine
(
"public override pbd::MessageDescriptor DescriptorForType {"
);
writer
.
WriteLine
(
"public override pbd::MessageDescriptor DescriptorForType {"
);
writer
.
WriteLine
(
" get {{ return {0}.Descriptor; }}"
,
ClassName
);
writer
.
WriteLine
(
" get {{ return {0}.Descriptor; }}"
,
Full
ClassName
);
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
();
writer
.
WriteLine
();
writer
.
WriteLine
(
"public override {0} DefaultInstanceForType {{"
,
ClassName
);
writer
.
WriteLine
(
"public override {0} DefaultInstanceForType {{"
,
ClassName
);
writer
.
WriteLine
(
" get {{ return {0}.DefaultInstance; }}"
,
ClassName
);
writer
.
WriteLine
(
" get {{ return {0}.DefaultInstance; }}"
,
Full
ClassName
);
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
();
writer
.
WriteLine
();
...
@@ -386,7 +386,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -386,7 +386,7 @@ namespace Google.ProtocolBuffers.ProtoGen {
// Optimization: If other is the default instance, we know none of its
// Optimization: If other is the default instance, we know none of its
// fields are set so we can skip the merge.
// fields are set so we can skip the merge.
writer
.
Indent
();
writer
.
Indent
();
writer
.
WriteLine
(
"if (other == {0}.DefaultInstance) return this;"
,
ClassName
);
writer
.
WriteLine
(
"if (other == {0}.DefaultInstance) return this;"
,
Full
ClassName
);
foreach
(
FieldDescriptor
field
in
Descriptor
.
Fields
)
{
foreach
(
FieldDescriptor
field
in
Descriptor
.
Fields
)
{
SourceGenerators
.
CreateFieldGenerator
(
field
).
GenerateMergingCode
(
writer
);
SourceGenerators
.
CreateFieldGenerator
(
field
).
GenerateMergingCode
(
writer
);
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
View file @
5cb5d782
...
@@ -203,11 +203,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -203,11 +203,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
OptionsMessage
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
OptionsMessage
.
Descriptor
;
}
}
}
public
override
OptionsMessage
DefaultInstanceForType
{
public
override
OptionsMessage
DefaultInstanceForType
{
get
{
return
OptionsMessage
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
OptionsMessage
.
DefaultInstance
;
}
}
}
public
override
OptionsMessage
BuildPartial
()
{
public
override
OptionsMessage
BuildPartial
()
{
...
@@ -229,7 +229,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -229,7 +229,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
OptionsMessage
other
)
{
public
override
Builder
MergeFrom
(
OptionsMessage
other
)
{
if
(
other
==
OptionsMessage
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
OptionsMessage
.
DefaultInstance
)
return
this
;
if
(
other
.
HasNormal
)
{
if
(
other
.
HasNormal
)
{
Normal
=
other
.
Normal
;
Normal
=
other
.
Normal
;
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
View file @
5cb5d782
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
View file @
5cb5d782
...
@@ -199,11 +199,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -199,11 +199,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestEmbedOptimizedForSize
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestEmbedOptimizedForSize
.
Descriptor
;
}
}
}
public
override
TestEmbedOptimizedForSize
DefaultInstanceForType
{
public
override
TestEmbedOptimizedForSize
DefaultInstanceForType
{
get
{
return
TestEmbedOptimizedForSize
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestEmbedOptimizedForSize
.
DefaultInstance
;
}
}
}
public
override
TestEmbedOptimizedForSize
BuildPartial
()
{
public
override
TestEmbedOptimizedForSize
BuildPartial
()
{
...
@@ -226,7 +226,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -226,7 +226,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
TestEmbedOptimizedForSize
other
)
{
public
override
Builder
MergeFrom
(
TestEmbedOptimizedForSize
other
)
{
if
(
other
==
TestEmbedOptimizedForSize
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestEmbedOptimizedForSize
.
DefaultInstance
)
return
this
;
if
(
other
.
HasOptionalMessage
)
{
if
(
other
.
HasOptionalMessage
)
{
MergeOptionalMessage
(
other
.
OptionalMessage
);
MergeOptionalMessage
(
other
.
OptionalMessage
);
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
View file @
5cb5d782
...
@@ -180,11 +180,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -180,11 +180,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
ImportMessage
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
ImportMessage
.
Descriptor
;
}
}
}
public
override
ImportMessage
DefaultInstanceForType
{
public
override
ImportMessage
DefaultInstanceForType
{
get
{
return
ImportMessage
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
ImportMessage
.
DefaultInstance
;
}
}
}
public
override
ImportMessage
BuildPartial
()
{
public
override
ImportMessage
BuildPartial
()
{
...
@@ -206,7 +206,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -206,7 +206,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
ImportMessage
other
)
{
public
override
Builder
MergeFrom
(
ImportMessage
other
)
{
if
(
other
==
ImportMessage
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
ImportMessage
.
DefaultInstance
)
return
this
;
if
(
other
.
HasD
)
{
if
(
other
.
HasD
)
{
D
=
other
.
D
;
D
=
other
.
D
;
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
View file @
5cb5d782
...
@@ -202,11 +202,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -202,11 +202,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestMessageSet
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSet
.
Descriptor
;
}
}
}
public
override
TestMessageSet
DefaultInstanceForType
{
public
override
TestMessageSet
DefaultInstanceForType
{
get
{
return
TestMessageSet
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSet
.
DefaultInstance
;
}
}
}
public
override
TestMessageSet
BuildPartial
()
{
public
override
TestMessageSet
BuildPartial
()
{
...
@@ -228,7 +228,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -228,7 +228,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
TestMessageSet
other
)
{
public
override
Builder
MergeFrom
(
TestMessageSet
other
)
{
if
(
other
==
TestMessageSet
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSet
.
DefaultInstance
)
return
this
;
this
.
MergeExtensionFields
(
other
);
this
.
MergeExtensionFields
(
other
);
this
.
MergeUnknownFields
(
other
.
UnknownFields
);
this
.
MergeUnknownFields
(
other
.
UnknownFields
);
return
this
;
return
this
;
...
@@ -392,11 +392,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -392,11 +392,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestMessageSetContainer
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetContainer
.
Descriptor
;
}
}
}
public
override
TestMessageSetContainer
DefaultInstanceForType
{
public
override
TestMessageSetContainer
DefaultInstanceForType
{
get
{
return
TestMessageSetContainer
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetContainer
.
DefaultInstance
;
}
}
}
public
override
TestMessageSetContainer
BuildPartial
()
{
public
override
TestMessageSetContainer
BuildPartial
()
{
...
@@ -418,7 +418,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -418,7 +418,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
TestMessageSetContainer
other
)
{
public
override
Builder
MergeFrom
(
TestMessageSetContainer
other
)
{
if
(
other
==
TestMessageSetContainer
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetContainer
.
DefaultInstance
)
return
this
;
if
(
other
.
HasMessageSet
)
{
if
(
other
.
HasMessageSet
)
{
MergeMessageSet
(
other
.
MessageSet
);
MergeMessageSet
(
other
.
MessageSet
);
}
}
...
@@ -631,11 +631,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -631,11 +631,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestMessageSetExtension1
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetExtension1
.
Descriptor
;
}
}
}
public
override
TestMessageSetExtension1
DefaultInstanceForType
{
public
override
TestMessageSetExtension1
DefaultInstanceForType
{
get
{
return
TestMessageSetExtension1
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetExtension1
.
DefaultInstance
;
}
}
}
public
override
TestMessageSetExtension1
BuildPartial
()
{
public
override
TestMessageSetExtension1
BuildPartial
()
{
...
@@ -657,7 +657,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -657,7 +657,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
TestMessageSetExtension1
other
)
{
public
override
Builder
MergeFrom
(
TestMessageSetExtension1
other
)
{
if
(
other
==
TestMessageSetExtension1
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetExtension1
.
DefaultInstance
)
return
this
;
if
(
other
.
HasI
)
{
if
(
other
.
HasI
)
{
I
=
other
.
I
;
I
=
other
.
I
;
}
}
...
@@ -847,11 +847,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -847,11 +847,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestMessageSetExtension2
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetExtension2
.
Descriptor
;
}
}
}
public
override
TestMessageSetExtension2
DefaultInstanceForType
{
public
override
TestMessageSetExtension2
DefaultInstanceForType
{
get
{
return
TestMessageSetExtension2
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetExtension2
.
DefaultInstance
;
}
}
}
public
override
TestMessageSetExtension2
BuildPartial
()
{
public
override
TestMessageSetExtension2
BuildPartial
()
{
...
@@ -873,7 +873,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -873,7 +873,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
TestMessageSetExtension2
other
)
{
public
override
Builder
MergeFrom
(
TestMessageSetExtension2
other
)
{
if
(
other
==
TestMessageSetExtension2
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestMessageSetExtension2
.
DefaultInstance
)
return
this
;
if
(
other
.
HasStr
)
{
if
(
other
.
HasStr
)
{
Str
=
other
.
Str
;
Str
=
other
.
Str
;
}
}
...
@@ -1104,11 +1104,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1104,11 +1104,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
Item
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RawMessageSet
.
Types
.
Item
.
Descriptor
;
}
}
}
public
override
Item
DefaultInstanceForType
{
public
override
Item
DefaultInstanceForType
{
get
{
return
Item
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RawMessageSet
.
Types
.
Item
.
DefaultInstance
;
}
}
}
public
override
Item
BuildPartial
()
{
public
override
Item
BuildPartial
()
{
...
@@ -1130,7 +1130,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1130,7 +1130,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
Item
other
)
{
public
override
Builder
MergeFrom
(
Item
other
)
{
if
(
other
==
Item
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RawMessageSet
.
Types
.
Item
.
DefaultInstance
)
return
this
;
if
(
other
.
HasTypeId
)
{
if
(
other
.
HasTypeId
)
{
TypeId
=
other
.
TypeId
;
TypeId
=
other
.
TypeId
;
}
}
...
@@ -1327,11 +1327,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1327,11 +1327,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
RawMessageSet
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RawMessageSet
.
Descriptor
;
}
}
}
public
override
RawMessageSet
DefaultInstanceForType
{
public
override
RawMessageSet
DefaultInstanceForType
{
get
{
return
RawMessageSet
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RawMessageSet
.
DefaultInstance
;
}
}
}
public
override
RawMessageSet
BuildPartial
()
{
public
override
RawMessageSet
BuildPartial
()
{
...
@@ -1354,7 +1354,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1354,7 +1354,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
Builder
MergeFrom
(
RawMessageSet
other
)
{
public
override
Builder
MergeFrom
(
RawMessageSet
other
)
{
if
(
other
==
RawMessageSet
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
RawMessageSet
.
DefaultInstance
)
return
this
;
if
(
other
.
item_
.
Count
!=
0
)
{
if
(
other
.
item_
.
Count
!=
0
)
{
base
.
AddRange
(
other
.
item_
,
result
.
item_
);
base
.
AddRange
(
other
.
item_
,
result
.
item_
);
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
View file @
5cb5d782
...
@@ -181,11 +181,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -181,11 +181,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestOptimizedForSize
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestOptimizedForSize
.
Descriptor
;
}
}
}
public
override
TestOptimizedForSize
DefaultInstanceForType
{
public
override
TestOptimizedForSize
DefaultInstanceForType
{
get
{
return
TestOptimizedForSize
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestOptimizedForSize
.
DefaultInstance
;
}
}
}
public
override
TestOptimizedForSize
BuildPartial
()
{
public
override
TestOptimizedForSize
BuildPartial
()
{
...
@@ -348,11 +348,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -348,11 +348,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestRequiredOptimizedForSize
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestRequiredOptimizedForSize
.
Descriptor
;
}
}
}
public
override
TestRequiredOptimizedForSize
DefaultInstanceForType
{
public
override
TestRequiredOptimizedForSize
DefaultInstanceForType
{
get
{
return
TestRequiredOptimizedForSize
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestRequiredOptimizedForSize
.
DefaultInstance
;
}
}
}
public
override
TestRequiredOptimizedForSize
BuildPartial
()
{
public
override
TestRequiredOptimizedForSize
BuildPartial
()
{
...
@@ -479,11 +479,11 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -479,11 +479,11 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
TestOptionalOptimizedForSize
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestOptionalOptimizedForSize
.
Descriptor
;
}
}
}
public
override
TestOptionalOptimizedForSize
DefaultInstanceForType
{
public
override
TestOptionalOptimizedForSize
DefaultInstanceForType
{
get
{
return
TestOptionalOptimizedForSize
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
TestOptionalOptimizedForSize
.
DefaultInstance
;
}
}
}
public
override
TestOptionalOptimizedForSize
BuildPartial
()
{
public
override
TestOptionalOptimizedForSize
BuildPartial
()
{
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
View file @
5cb5d782
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
View file @
5cb5d782
...
@@ -253,11 +253,11 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -253,11 +253,11 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
CSharpFileOptions
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpFileOptions
.
Descriptor
;
}
}
}
public
override
CSharpFileOptions
DefaultInstanceForType
{
public
override
CSharpFileOptions
DefaultInstanceForType
{
get
{
return
CSharpFileOptions
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpFileOptions
.
DefaultInstance
;
}
}
}
public
override
CSharpFileOptions
BuildPartial
()
{
public
override
CSharpFileOptions
BuildPartial
()
{
...
@@ -279,7 +279,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -279,7 +279,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
public
override
Builder
MergeFrom
(
CSharpFileOptions
other
)
{
public
override
Builder
MergeFrom
(
CSharpFileOptions
other
)
{
if
(
other
==
CSharpFileOptions
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpFileOptions
.
DefaultInstance
)
return
this
;
if
(
other
.
HasNamespace
)
{
if
(
other
.
HasNamespace
)
{
Namespace
=
other
.
Namespace
;
Namespace
=
other
.
Namespace
;
}
}
...
@@ -569,11 +569,11 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -569,11 +569,11 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
public
override
pbd
::
MessageDescriptor
DescriptorForType
{
get
{
return
CSharpFieldOptions
.
Descriptor
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpFieldOptions
.
Descriptor
;
}
}
}
public
override
CSharpFieldOptions
DefaultInstanceForType
{
public
override
CSharpFieldOptions
DefaultInstanceForType
{
get
{
return
CSharpFieldOptions
.
DefaultInstance
;
}
get
{
return
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpFieldOptions
.
DefaultInstance
;
}
}
}
public
override
CSharpFieldOptions
BuildPartial
()
{
public
override
CSharpFieldOptions
BuildPartial
()
{
...
@@ -595,7 +595,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -595,7 +595,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
public
override
Builder
MergeFrom
(
CSharpFieldOptions
other
)
{
public
override
Builder
MergeFrom
(
CSharpFieldOptions
other
)
{
if
(
other
==
CSharpFieldOptions
.
DefaultInstance
)
return
this
;
if
(
other
==
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpFieldOptions
.
DefaultInstance
)
return
this
;
if
(
other
.
HasPropertyName
)
{
if
(
other
.
HasPropertyName
)
{
PropertyName
=
other
.
PropertyName
;
PropertyName
=
other
.
PropertyName
;
}
}
...
...
src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
View file @
5cb5d782
This diff is collapsed.
Click to expand it.
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