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
c78222a3
Commit
c78222a3
authored
Feb 04, 2016
by
Jan Tattermusch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1210 from jskeet/rename-generatedcodeinfo
Rename GeneratedCodeInfo to GeneratedClrTypeInfo
parents
eb1d156d
b6159965
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
495 additions
and
185 deletions
+495
-185
Makefile.am
Makefile.am
+1
-1
Addressbook.cs
csharp/src/AddressBook/Addressbook.cs
+3
-3
Conformance.cs
csharp/src/Google.Protobuf.Conformance/Conformance.cs
+5
-5
MapUnittestProto3.cs
.../src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+8
-8
UnittestImportProto3.cs
...c/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
+2
-2
UnittestImportPublicProto3.cs
...le.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
+2
-2
UnittestIssues.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+8
-8
UnittestProto3.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+34
-34
UnittestWellKnownTypes.cs
...Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+5
-5
Google.Protobuf.csproj
csharp/src/Google.Protobuf/Google.Protobuf.csproj
+1
-1
Descriptor.cs
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
+375
-65
FileDescriptor.cs
csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs
+3
-3
GeneratedClrTypeInfo.cs
...rp/src/Google.Protobuf/Reflection/GeneratedClrTypeInfo.cs
+7
-7
MessageDescriptor.cs
csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
+1
-1
Any.cs
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
+2
-2
Api.cs
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
+4
-4
Duration.cs
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
+2
-2
Empty.cs
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
+2
-2
FieldMask.cs
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
+2
-2
SourceContext.cs
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
+2
-2
Struct.cs
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
+4
-4
Timestamp.cs
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
+2
-2
Type.cs
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
+6
-6
Wrappers.cs
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
+10
-10
csharp_reflection_class.cc
...oogle/protobuf/compiler/csharp/csharp_reflection_class.cc
+4
-4
No files found.
Makefile.am
View file @
c78222a3
...
...
@@ -146,7 +146,7 @@ csharp_EXTRA_DIST= \
csharp/src/Google.Protobuf/Reflection/FieldDescriptor.cs
\
csharp/src/Google.Protobuf/Reflection/FieldType.cs
\
csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs
\
csharp/src/Google.Protobuf/Reflection/GeneratedC
odeInfo.cs
\
csharp/src/Google.Protobuf/Reflection/GeneratedC
lrTypeInfo.cs
\
csharp/src/Google.Protobuf/Reflection/IDescriptor.cs
\
csharp/src/Google.Protobuf/Reflection/IFieldAccessor.cs
\
csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs
\
...
...
csharp/src/AddressBook/Addressbook.cs
View file @
c78222a3
...
...
@@ -34,9 +34,9 @@ namespace Google.Protobuf.Examples.AddressBook {
"cGxlcy5BZGRyZXNzQm9va2IGcHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
),
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Parser
,
new
[]{
"Name"
,
"Id"
,
"Email"
,
"Phones"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
)
},
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCod
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
),
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
.
Parser
,
new
[]{
"Number"
,
"Type"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
AddressBook
),
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
AddressBook
.
Parser
,
new
[]{
"People"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
),
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Parser
,
new
[]{
"Name"
,
"Id"
,
"Email"
,
"Phones"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
)
},
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
),
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
.
Parser
,
new
[]{
"Number"
,
"Type"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
AddressBook
),
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
AddressBook
.
Parser
,
new
[]{
"People"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Conformance/Conformance.cs
View file @
c78222a3
...
...
@@ -186,12 +186,12 @@ namespace Conformance {
"dG9idWYuY29uZm9ybWFuY2ViBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
WellKnownTypes
.
AnyReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DurationReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMaskReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StructReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
TimestampReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
WrappersReflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
Conformance
.
WireFormat
),
typeof
(
global
::
Conformance
.
ForeignEnum
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Conformance
.
ConformanceRequest
),
global
::
Conformance
.
ConformanceRequest
.
Parser
,
new
[]{
"ProtobufPayload"
,
"JsonPayload"
,
"RequestedOutputFormat"
},
new
[]{
"Payload"
},
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Conformance
.
ConformanceResponse
),
global
::
Conformance
.
ConformanceResponse
.
Parser
,
new
[]{
"ParseError"
,
"SerializeError"
,
"RuntimeError"
,
"ProtobufPayload"
,
"JsonPayload"
,
"Skipped"
},
new
[]{
"Result"
},
null
,
null
),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Conformance
.
TestAllTypes
),
global
::
Conformance
.
TestAllTypes
.
Parser
,
new
[]{
"OptionalInt32"
,
"OptionalInt64"
,
"OptionalUint32"
,
"OptionalUint64"
,
"OptionalSint32"
,
"OptionalSint64"
,
"OptionalFixed32"
,
"OptionalFixed64"
,
"OptionalSfixed32"
,
"OptionalSfixed64"
,
"OptionalFloat"
,
"OptionalDouble"
,
"OptionalBool"
,
"OptionalString"
,
"OptionalBytes"
,
"OptionalNestedMessage"
,
"OptionalForeignMessage"
,
"OptionalNestedEnum"
,
"OptionalForeignEnum"
,
"OptionalStringPiece"
,
"OptionalCord"
,
"RecursiveMessage"
,
"RepeatedInt32"
,
"RepeatedInt64"
,
"RepeatedUint32"
,
"RepeatedUint64"
,
"RepeatedSint32"
,
"RepeatedSint64"
,
"RepeatedFixed32"
,
"RepeatedFixed64"
,
"RepeatedSfixed32"
,
"RepeatedSfixed64"
,
"RepeatedFloat"
,
"RepeatedDouble"
,
"RepeatedBool"
,
"RepeatedString"
,
"RepeatedBytes"
,
"RepeatedNestedMessage"
,
"RepeatedForeignMessage"
,
"RepeatedNestedEnum"
,
"RepeatedForeignEnum"
,
"RepeatedStringPiece"
,
"RepeatedCord"
,
"MapInt32Int32"
,
"MapInt64Int64"
,
"MapUint32Uint32"
,
"MapUint64Uint64"
,
"MapSint32Sint32"
,
"MapSint64Sint64"
,
"MapFixed32Fixed32"
,
"MapFixed64Fixed64"
,
"MapSfixed32Sfixed32"
,
"MapSfixed64Sfixed64"
,
"MapInt32Float"
,
"MapInt32Double"
,
"MapBoolBool"
,
"MapStringString"
,
"MapStringBytes"
,
"MapStringNestedMessage"
,
"MapStringForeignMessage"
,
"MapStringNestedEnum"
,
"MapStringForeignEnum"
,
"OneofUint32"
,
"OneofNestedMessage"
,
"OneofString"
,
"OneofBytes"
,
"OptionalBoolWrapper"
,
"OptionalInt32Wrapper"
,
"OptionalInt64Wrapper"
,
"OptionalUint32Wrapper"
,
"OptionalUint64Wrapper"
,
"OptionalFloatWrapper"
,
"OptionalDoubleWrapper"
,
"OptionalStringWrapper"
,
"OptionalBytesWrapper"
,
"RepeatedBoolWrapper"
,
"RepeatedInt32Wrapper"
,
"RepeatedInt64Wrapper"
,
"RepeatedUint32Wrapper"
,
"RepeatedUint64Wrapper"
,
"RepeatedFloatWrapper"
,
"RepeatedDoubleWrapper"
,
"RepeatedStringWrapper"
,
"RepeatedBytesWrapper"
,
"OptionalDuration"
,
"OptionalTimestamp"
,
"OptionalFieldMask"
,
"OptionalStruct"
,
"OptionalAny"
,
"OptionalValue"
,
"RepeatedDuration"
,
"RepeatedTimestamp"
,
"RepeatedFieldmask"
,
"RepeatedStruct"
,
"RepeatedAny"
,
"RepeatedValue"
,
"Fieldname1"
,
"FieldName2"
,
"FieldName3"
,
"FieldName4"
,
"Field0Name5"
,
"Field0Name6"
,
"FieldName7"
,
"FieldName8"
,
"FieldName9"
,
"FieldName10"
,
"FIELDNAME11"
,
"FIELDName12"
},
new
[]{
"OneofField"
},
new
[]{
typeof
(
global
::
Conformance
.
TestAllTypes
.
Types
.
NestedEnum
)
},
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCod
eInfo
(
typeof
(
global
::
Conformance
.
TestAllTypes
.
Types
.
NestedMessage
),
global
::
Conformance
.
TestAllTypes
.
Types
.
NestedMessage
.
Parser
,
new
[]{
"A"
,
"Corecursive"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
Conformance
.
WireFormat
),
typeof
(
global
::
Conformance
.
ForeignEnum
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Conformance
.
ConformanceRequest
),
global
::
Conformance
.
ConformanceRequest
.
Parser
,
new
[]{
"ProtobufPayload"
,
"JsonPayload"
,
"RequestedOutputFormat"
},
new
[]{
"Payload"
},
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Conformance
.
ConformanceResponse
),
global
::
Conformance
.
ConformanceResponse
.
Parser
,
new
[]{
"ParseError"
,
"SerializeError"
,
"RuntimeError"
,
"ProtobufPayload"
,
"JsonPayload"
,
"Skipped"
},
new
[]{
"Result"
},
null
,
null
),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Conformance
.
TestAllTypes
),
global
::
Conformance
.
TestAllTypes
.
Parser
,
new
[]{
"OptionalInt32"
,
"OptionalInt64"
,
"OptionalUint32"
,
"OptionalUint64"
,
"OptionalSint32"
,
"OptionalSint64"
,
"OptionalFixed32"
,
"OptionalFixed64"
,
"OptionalSfixed32"
,
"OptionalSfixed64"
,
"OptionalFloat"
,
"OptionalDouble"
,
"OptionalBool"
,
"OptionalString"
,
"OptionalBytes"
,
"OptionalNestedMessage"
,
"OptionalForeignMessage"
,
"OptionalNestedEnum"
,
"OptionalForeignEnum"
,
"OptionalStringPiece"
,
"OptionalCord"
,
"RecursiveMessage"
,
"RepeatedInt32"
,
"RepeatedInt64"
,
"RepeatedUint32"
,
"RepeatedUint64"
,
"RepeatedSint32"
,
"RepeatedSint64"
,
"RepeatedFixed32"
,
"RepeatedFixed64"
,
"RepeatedSfixed32"
,
"RepeatedSfixed64"
,
"RepeatedFloat"
,
"RepeatedDouble"
,
"RepeatedBool"
,
"RepeatedString"
,
"RepeatedBytes"
,
"RepeatedNestedMessage"
,
"RepeatedForeignMessage"
,
"RepeatedNestedEnum"
,
"RepeatedForeignEnum"
,
"RepeatedStringPiece"
,
"RepeatedCord"
,
"MapInt32Int32"
,
"MapInt64Int64"
,
"MapUint32Uint32"
,
"MapUint64Uint64"
,
"MapSint32Sint32"
,
"MapSint64Sint64"
,
"MapFixed32Fixed32"
,
"MapFixed64Fixed64"
,
"MapSfixed32Sfixed32"
,
"MapSfixed64Sfixed64"
,
"MapInt32Float"
,
"MapInt32Double"
,
"MapBoolBool"
,
"MapStringString"
,
"MapStringBytes"
,
"MapStringNestedMessage"
,
"MapStringForeignMessage"
,
"MapStringNestedEnum"
,
"MapStringForeignEnum"
,
"OneofUint32"
,
"OneofNestedMessage"
,
"OneofString"
,
"OneofBytes"
,
"OptionalBoolWrapper"
,
"OptionalInt32Wrapper"
,
"OptionalInt64Wrapper"
,
"OptionalUint32Wrapper"
,
"OptionalUint64Wrapper"
,
"OptionalFloatWrapper"
,
"OptionalDoubleWrapper"
,
"OptionalStringWrapper"
,
"OptionalBytesWrapper"
,
"RepeatedBoolWrapper"
,
"RepeatedInt32Wrapper"
,
"RepeatedInt64Wrapper"
,
"RepeatedUint32Wrapper"
,
"RepeatedUint64Wrapper"
,
"RepeatedFloatWrapper"
,
"RepeatedDoubleWrapper"
,
"RepeatedStringWrapper"
,
"RepeatedBytesWrapper"
,
"OptionalDuration"
,
"OptionalTimestamp"
,
"OptionalFieldMask"
,
"OptionalStruct"
,
"OptionalAny"
,
"OptionalValue"
,
"RepeatedDuration"
,
"RepeatedTimestamp"
,
"RepeatedFieldmask"
,
"RepeatedStruct"
,
"RepeatedAny"
,
"RepeatedValue"
,
"Fieldname1"
,
"FieldName2"
,
"FieldName3"
,
"FieldName4"
,
"Field0Name5"
,
"Field0Name6"
,
"FieldName7"
,
"FieldName8"
,
"FieldName9"
,
"FieldName10"
,
"FIELDNAME11"
,
"FIELDName12"
},
new
[]{
"OneofField"
},
new
[]{
typeof
(
global
::
Conformance
.
TestAllTypes
.
Types
.
NestedEnum
)
},
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTyp
eInfo
(
typeof
(
global
::
Conformance
.
TestAllTypes
.
Types
.
NestedMessage
),
global
::
Conformance
.
TestAllTypes
.
Types
.
NestedMessage
.
Parser
,
new
[]{
"A"
,
"Corecursive"
},
null
,
null
,
null
),
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Conformance
.
ForeignMessage
),
global
::
Conformance
.
ForeignMessage
.
Parser
,
new
[]{
"C"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Conformance
.
ForeignMessage
),
global
::
Conformance
.
ForeignMessage
.
Parser
,
new
[]{
"C"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
View file @
c78222a3
...
...
@@ -149,14 +149,14 @@ namespace Google.Protobuf.TestProtos {
"b2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zYgZwcm90bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestProto3Reflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MapEnum
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
.
Parser
,
new
[]{
"MapInt32Int32"
,
"MapInt64Int64"
,
"MapUint32Uint32"
,
"MapUint64Uint64"
,
"MapSint32Sint32"
,
"MapSint64Sint64"
,
"MapFixed32Fixed32"
,
"MapFixed64Fixed64"
,
"MapSfixed32Sfixed32"
,
"MapSfixed64Sfixed64"
,
"MapInt32Float"
,
"MapInt32Double"
,
"MapBoolBool"
,
"MapStringString"
,
"MapInt32Bytes"
,
"MapInt32Enum"
,
"MapInt32ForeignMessage"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMapSubmessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMapSubmessage
.
Parser
,
new
[]{
"TestMap"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMessageMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMessageMap
.
Parser
,
new
[]{
"MapInt32Message"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
}),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestSameTypeMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestSameTypeMap
.
Parser
,
new
[]{
"Map1"
,
"Map2"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
null
,
}),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestArenaMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestArenaMap
.
Parser
,
new
[]{
"MapInt32Int32"
,
"MapInt64Int64"
,
"MapUint32Uint32"
,
"MapUint64Uint64"
,
"MapSint32Sint32"
,
"MapSint64Sint64"
,
"MapFixed32Fixed32"
,
"MapFixed64Fixed64"
,
"MapSfixed32Sfixed32"
,
"MapSfixed64Sfixed64"
,
"MapInt32Float"
,
"MapInt32Double"
,
"MapBoolBool"
,
"MapInt32Enum"
,
"MapInt32ForeignMessage"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
}),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
),
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
.
Parser
,
new
[]{
"Type"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
.
Types
.
Type
)
},
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
}),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingMapCalledEntry
),
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingMapCalledEntry
.
Parser
,
new
[]{
"Entry"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
})
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MapEnum
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMap
.
Parser
,
new
[]{
"MapInt32Int32"
,
"MapInt64Int64"
,
"MapUint32Uint32"
,
"MapUint64Uint64"
,
"MapSint32Sint32"
,
"MapSint64Sint64"
,
"MapFixed32Fixed32"
,
"MapFixed64Fixed64"
,
"MapSfixed32Sfixed32"
,
"MapSfixed64Sfixed64"
,
"MapInt32Float"
,
"MapInt32Double"
,
"MapBoolBool"
,
"MapStringString"
,
"MapInt32Bytes"
,
"MapInt32Enum"
,
"MapInt32ForeignMessage"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMapSubmessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMapSubmessage
.
Parser
,
new
[]{
"TestMap"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMessageMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMessageMap
.
Parser
,
new
[]{
"MapInt32Message"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
}),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestSameTypeMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestSameTypeMap
.
Parser
,
new
[]{
"Map1"
,
"Map2"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
null
,
}),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestArenaMap
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestArenaMap
.
Parser
,
new
[]{
"MapInt32Int32"
,
"MapInt64Int64"
,
"MapUint32Uint32"
,
"MapUint64Uint64"
,
"MapSint32Sint32"
,
"MapSint64Sint64"
,
"MapFixed32Fixed32"
,
"MapFixed64Fixed64"
,
"MapSfixed32Sfixed32"
,
"MapSfixed64Sfixed64"
,
"MapInt32Float"
,
"MapInt32Double"
,
"MapBoolBool"
,
"MapInt32Enum"
,
"MapInt32ForeignMessage"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
}),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
),
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
.
Parser
,
new
[]{
"Type"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingEnumCalledType
.
Types
.
Type
)
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
}),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingMapCalledEntry
),
global
::
Google
.
Protobuf
.
TestProtos
.
MessageContainingMapCalledEntry
.
Parser
,
new
[]{
"Entry"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
})
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
View file @
c78222a3
...
...
@@ -33,8 +33,8 @@ namespace Google.Protobuf.TestProtos {
"Mw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestImportPublicProto3Reflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportEnum
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
ImportMessage
.
Parser
,
new
[]{
"D"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportEnum
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
ImportMessage
.
Parser
,
new
[]{
"D"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
View file @
c78222a3
...
...
@@ -29,8 +29,8 @@ namespace Google.Protobuf.TestProtos {
"Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
PublicImportMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
PublicImportMessage
.
Parser
,
new
[]{
"E"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
PublicImportMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
PublicImportMessage
.
Parser
,
new
[]{
"E"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
View file @
c78222a3
...
...
@@ -48,14 +48,14 @@ namespace UnitTest.Issues.TestProtos {
"Qh9IAaoCGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJvdG9zYgZwcm90bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
),
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedEnum
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
),
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Parser
,
null
,
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
),
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
.
Parser
,
null
,
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCod
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
.
Types
.
NestedTwice
),
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
.
Types
.
NestedTwice
.
Parser
,
null
,
null
,
null
,
null
)})}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnumMessage
),
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnumMessage
.
Parser
,
new
[]{
"Value"
,
"Values"
,
"PackedValues"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedChild
),
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedChild
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedFieldsMessage
),
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedFieldsMessage
.
Parser
,
new
[]{
"PrimitiveValue"
,
"PrimitiveArray"
,
"MessageValue"
,
"MessageArray"
,
"EnumValue"
,
"EnumArray"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
ItemField
),
global
::
UnitTest
.
Issues
.
TestProtos
.
ItemField
.
Parser
,
new
[]{
"Item"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
),
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
.
Parser
,
new
[]{
"Types_"
,
"Descriptor_"
},
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCod
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
.
Types
.
SomeNestedType
),
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
.
Types
.
SomeNestedType
.
Parser
,
null
,
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
TestJsonFieldOrdering
),
global
::
UnitTest
.
Issues
.
TestProtos
.
TestJsonFieldOrdering
.
Parser
,
new
[]{
"PlainInt32"
,
"O1String"
,
"O1Int32"
,
"PlainString"
,
"O2Int32"
,
"O2String"
},
new
[]{
"O1"
,
"O2"
},
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnum
),
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedEnum
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
),
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Parser
,
null
,
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
),
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
.
Parser
,
null
,
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
.
Types
.
NestedTwice
),
global
::
UnitTest
.
Issues
.
TestProtos
.
Issue307
.
Types
.
NestedOnce
.
Types
.
NestedTwice
.
Parser
,
null
,
null
,
null
,
null
)})}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnumMessage
),
global
::
UnitTest
.
Issues
.
TestProtos
.
NegativeEnumMessage
.
Parser
,
new
[]{
"Value"
,
"Values"
,
"PackedValues"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedChild
),
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedChild
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedFieldsMessage
),
global
::
UnitTest
.
Issues
.
TestProtos
.
DeprecatedFieldsMessage
.
Parser
,
new
[]{
"PrimitiveValue"
,
"PrimitiveArray"
,
"MessageValue"
,
"MessageArray"
,
"EnumValue"
,
"EnumArray"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
ItemField
),
global
::
UnitTest
.
Issues
.
TestProtos
.
ItemField
.
Parser
,
new
[]{
"Item"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
),
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
.
Parser
,
new
[]{
"Types_"
,
"Descriptor_"
},
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
.
Types
.
SomeNestedType
),
global
::
UnitTest
.
Issues
.
TestProtos
.
ReservedNames
.
Types
.
SomeNestedType
.
Parser
,
null
,
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
UnitTest
.
Issues
.
TestProtos
.
TestJsonFieldOrdering
),
global
::
UnitTest
.
Issues
.
TestProtos
.
TestJsonFieldOrdering
.
Parser
,
new
[]{
"PlainInt32"
,
"O1String"
,
"O1Int32"
,
"PlainString"
,
"O2Int32"
,
"O2String"
},
new
[]{
"O1"
,
"O2"
},
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
View file @
c78222a3
...
...
@@ -152,40 +152,40 @@ namespace Google.Protobuf.TestProtos {
"+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestImportProto3Reflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ForeignEnum
),
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestEnumWithDupValue
),
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestSparseEnum
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Parser
,
new
[]{
"SingleInt32"
,
"SingleInt64"
,
"SingleUint32"
,
"SingleUint64"
,
"SingleSint32"
,
"SingleSint64"
,
"SingleFixed32"
,
"SingleFixed64"
,
"SingleSfixed32"
,
"SingleSfixed64"
,
"SingleFloat"
,
"SingleDouble"
,
"SingleBool"
,
"SingleString"
,
"SingleBytes"
,
"SingleNestedMessage"
,
"SingleForeignMessage"
,
"SingleImportMessage"
,
"SingleNestedEnum"
,
"SingleForeignEnum"
,
"SingleImportEnum"
,
"SinglePublicImportMessage"
,
"RepeatedInt32"
,
"RepeatedInt64"
,
"RepeatedUint32"
,
"RepeatedUint64"
,
"RepeatedSint32"
,
"RepeatedSint64"
,
"RepeatedFixed32"
,
"RepeatedFixed64"
,
"RepeatedSfixed32"
,
"RepeatedSfixed64"
,
"RepeatedFloat"
,
"RepeatedDouble"
,
"RepeatedBool"
,
"RepeatedString"
,
"RepeatedBytes"
,
"RepeatedNestedMessage"
,
"RepeatedForeignMessage"
,
"RepeatedImportMessage"
,
"RepeatedNestedEnum"
,
"RepeatedForeignEnum"
,
"RepeatedImportEnum"
,
"RepeatedPublicImportMessage"
,
"OneofUint32"
,
"OneofNestedMessage"
,
"OneofString"
,
"OneofBytes"
},
new
[]{
"OneofField"
},
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Types
.
NestedEnum
)
},
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCod
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Types
.
NestedMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Types
.
NestedMessage
.
Parser
,
new
[]{
"Bb"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
NestedTestAllTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
NestedTestAllTypes
.
Parser
,
new
[]{
"Child"
,
"Payload"
,
"RepeatedChild"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestDeprecatedFields
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestDeprecatedFields
.
Parser
,
new
[]{
"DeprecatedInt32"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ForeignMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
ForeignMessage
.
Parser
,
new
[]{
"C"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestReservedFields
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestReservedFields
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestForeignNested
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestForeignNested
.
Parser
,
new
[]{
"ForeignNested"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestReallyLargeTagNumber
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestReallyLargeTagNumber
.
Parser
,
new
[]{
"A"
,
"Bb"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestRecursiveMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestRecursiveMessage
.
Parser
,
new
[]{
"A"
,
"I"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionA
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionA
.
Parser
,
new
[]{
"Bb"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionB
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionB
.
Parser
,
new
[]{
"A"
,
"OptionalInt32"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestCamelCaseFieldNames
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestCamelCaseFieldNames
.
Parser
,
new
[]{
"PrimitiveField"
,
"StringField"
,
"EnumField"
,
"MessageField"
,
"RepeatedPrimitiveField"
,
"RepeatedStringField"
,
"RepeatedEnumField"
,
"RepeatedMessageField"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
.
Parser
,
new
[]{
"MyString"
,
"MyInt"
,
"MyFloat"
,
"SingleNestedMessage"
},
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCod
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
.
Types
.
NestedMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
.
Types
.
NestedMessage
.
Parser
,
new
[]{
"Oo"
,
"Bb"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
SparseEnumMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
SparseEnumMessage
.
Parser
,
new
[]{
"SparseEnum"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
OneString
),
global
::
Google
.
Protobuf
.
TestProtos
.
OneString
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MoreString
),
global
::
Google
.
Protobuf
.
TestProtos
.
MoreString
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
OneBytes
),
global
::
Google
.
Protobuf
.
TestProtos
.
OneBytes
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MoreBytes
),
global
::
Google
.
Protobuf
.
TestProtos
.
MoreBytes
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Int32Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Int32Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Uint32Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Uint32Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Int64Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Int64Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Uint64Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Uint64Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
BoolMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
BoolMessage
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestOneof
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestOneof
.
Parser
,
new
[]{
"FooInt"
,
"FooString"
,
"FooMessage"
},
new
[]{
"Foo"
},
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestPackedTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestPackedTypes
.
Parser
,
new
[]{
"PackedInt32"
,
"PackedInt64"
,
"PackedUint32"
,
"PackedUint64"
,
"PackedSint32"
,
"PackedSint64"
,
"PackedFixed32"
,
"PackedFixed64"
,
"PackedSfixed32"
,
"PackedSfixed64"
,
"PackedFloat"
,
"PackedDouble"
,
"PackedBool"
,
"PackedEnum"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestUnpackedTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestUnpackedTypes
.
Parser
,
new
[]{
"UnpackedInt32"
,
"UnpackedInt64"
,
"UnpackedUint32"
,
"UnpackedUint64"
,
"UnpackedSint32"
,
"UnpackedSint64"
,
"UnpackedFixed32"
,
"UnpackedFixed64"
,
"UnpackedSfixed32"
,
"UnpackedSfixed64"
,
"UnpackedFloat"
,
"UnpackedDouble"
,
"UnpackedBool"
,
"UnpackedEnum"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestRepeatedScalarDifferentTagSizes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestRepeatedScalarDifferentTagSizes
.
Parser
,
new
[]{
"RepeatedFixed32"
,
"RepeatedInt32"
,
"RepeatedFixed64"
,
"RepeatedInt64"
,
"RepeatedFloat"
,
"RepeatedUint64"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestCommentInjectionMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestCommentInjectionMessage
.
Parser
,
new
[]{
"A"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooRequest
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooRequest
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooResponse
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooResponse
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooClientMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooClientMessage
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooServerMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooServerMessage
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
BarRequest
),
global
::
Google
.
Protobuf
.
TestProtos
.
BarRequest
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
BarResponse
),
global
::
Google
.
Protobuf
.
TestProtos
.
BarResponse
.
Parser
,
null
,
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ForeignEnum
),
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestEnumWithDupValue
),
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestSparseEnum
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Parser
,
new
[]{
"SingleInt32"
,
"SingleInt64"
,
"SingleUint32"
,
"SingleUint64"
,
"SingleSint32"
,
"SingleSint64"
,
"SingleFixed32"
,
"SingleFixed64"
,
"SingleSfixed32"
,
"SingleSfixed64"
,
"SingleFloat"
,
"SingleDouble"
,
"SingleBool"
,
"SingleString"
,
"SingleBytes"
,
"SingleNestedMessage"
,
"SingleForeignMessage"
,
"SingleImportMessage"
,
"SingleNestedEnum"
,
"SingleForeignEnum"
,
"SingleImportEnum"
,
"SinglePublicImportMessage"
,
"RepeatedInt32"
,
"RepeatedInt64"
,
"RepeatedUint32"
,
"RepeatedUint64"
,
"RepeatedSint32"
,
"RepeatedSint64"
,
"RepeatedFixed32"
,
"RepeatedFixed64"
,
"RepeatedSfixed32"
,
"RepeatedSfixed64"
,
"RepeatedFloat"
,
"RepeatedDouble"
,
"RepeatedBool"
,
"RepeatedString"
,
"RepeatedBytes"
,
"RepeatedNestedMessage"
,
"RepeatedForeignMessage"
,
"RepeatedImportMessage"
,
"RepeatedNestedEnum"
,
"RepeatedForeignEnum"
,
"RepeatedImportEnum"
,
"RepeatedPublicImportMessage"
,
"OneofUint32"
,
"OneofNestedMessage"
,
"OneofString"
,
"OneofBytes"
},
new
[]{
"OneofField"
},
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Types
.
NestedEnum
)
},
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Types
.
NestedMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestAllTypes
.
Types
.
NestedMessage
.
Parser
,
new
[]{
"Bb"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
NestedTestAllTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
NestedTestAllTypes
.
Parser
,
new
[]{
"Child"
,
"Payload"
,
"RepeatedChild"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestDeprecatedFields
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestDeprecatedFields
.
Parser
,
new
[]{
"DeprecatedInt32"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ForeignMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
ForeignMessage
.
Parser
,
new
[]{
"C"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestReservedFields
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestReservedFields
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestForeignNested
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestForeignNested
.
Parser
,
new
[]{
"ForeignNested"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestReallyLargeTagNumber
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestReallyLargeTagNumber
.
Parser
,
new
[]{
"A"
,
"Bb"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestRecursiveMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestRecursiveMessage
.
Parser
,
new
[]{
"A"
,
"I"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionA
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionA
.
Parser
,
new
[]{
"Bb"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionB
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestMutualRecursionB
.
Parser
,
new
[]{
"A"
,
"OptionalInt32"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestCamelCaseFieldNames
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestCamelCaseFieldNames
.
Parser
,
new
[]{
"PrimitiveField"
,
"StringField"
,
"EnumField"
,
"MessageField"
,
"RepeatedPrimitiveField"
,
"RepeatedStringField"
,
"RepeatedEnumField"
,
"RepeatedMessageField"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
.
Parser
,
new
[]{
"MyString"
,
"MyInt"
,
"MyFloat"
,
"SingleNestedMessage"
},
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
.
Types
.
NestedMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestFieldOrderings
.
Types
.
NestedMessage
.
Parser
,
new
[]{
"Oo"
,
"Bb"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
SparseEnumMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
SparseEnumMessage
.
Parser
,
new
[]{
"SparseEnum"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
OneString
),
global
::
Google
.
Protobuf
.
TestProtos
.
OneString
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MoreString
),
global
::
Google
.
Protobuf
.
TestProtos
.
MoreString
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
OneBytes
),
global
::
Google
.
Protobuf
.
TestProtos
.
OneBytes
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MoreBytes
),
global
::
Google
.
Protobuf
.
TestProtos
.
MoreBytes
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Int32Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Int32Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Uint32Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Uint32Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Int64Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Int64Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
Uint64Message
),
global
::
Google
.
Protobuf
.
TestProtos
.
Uint64Message
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
BoolMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
BoolMessage
.
Parser
,
new
[]{
"Data"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestOneof
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestOneof
.
Parser
,
new
[]{
"FooInt"
,
"FooString"
,
"FooMessage"
},
new
[]{
"Foo"
},
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestPackedTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestPackedTypes
.
Parser
,
new
[]{
"PackedInt32"
,
"PackedInt64"
,
"PackedUint32"
,
"PackedUint64"
,
"PackedSint32"
,
"PackedSint64"
,
"PackedFixed32"
,
"PackedFixed64"
,
"PackedSfixed32"
,
"PackedSfixed64"
,
"PackedFloat"
,
"PackedDouble"
,
"PackedBool"
,
"PackedEnum"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestUnpackedTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestUnpackedTypes
.
Parser
,
new
[]{
"UnpackedInt32"
,
"UnpackedInt64"
,
"UnpackedUint32"
,
"UnpackedUint64"
,
"UnpackedSint32"
,
"UnpackedSint64"
,
"UnpackedFixed32"
,
"UnpackedFixed64"
,
"UnpackedSfixed32"
,
"UnpackedSfixed64"
,
"UnpackedFloat"
,
"UnpackedDouble"
,
"UnpackedBool"
,
"UnpackedEnum"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestRepeatedScalarDifferentTagSizes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestRepeatedScalarDifferentTagSizes
.
Parser
,
new
[]{
"RepeatedFixed32"
,
"RepeatedInt32"
,
"RepeatedFixed64"
,
"RepeatedInt64"
,
"RepeatedFloat"
,
"RepeatedUint64"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestCommentInjectionMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestCommentInjectionMessage
.
Parser
,
new
[]{
"A"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooRequest
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooRequest
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooResponse
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooResponse
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooClientMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooClientMessage
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
FooServerMessage
),
global
::
Google
.
Protobuf
.
TestProtos
.
FooServerMessage
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
BarRequest
),
global
::
Google
.
Protobuf
.
TestProtos
.
BarRequest
.
Parser
,
null
,
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
BarResponse
),
global
::
Google
.
Protobuf
.
TestProtos
.
BarResponse
.
Parser
,
null
,
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
View file @
c78222a3
...
...
@@ -162,11 +162,11 @@ namespace Google.Protobuf.TestProtos {
"dFByb3Rvc2IGcHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
WellKnownTypes
.
AnyReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ApiReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DurationReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
EmptyReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMaskReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContextReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StructReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
TimestampReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
TypeReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
WrappersReflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
,
"ValueField"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
RepeatedWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
RepeatedWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
OneofWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
OneofWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
},
new
[]{
"OneofField"
},
null
,
null
),
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MapWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
MapWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
})
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
TestWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
TestWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
,
"ValueField"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
RepeatedWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
RepeatedWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
OneofWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
OneofWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
},
new
[]{
"OneofField"
},
null
,
null
),
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
MapWellKnownTypes
),
global
::
Google
.
Protobuf
.
TestProtos
.
MapWellKnownTypes
.
Parser
,
new
[]{
"AnyField"
,
"ApiField"
,
"DurationField"
,
"EmptyField"
,
"FieldMaskField"
,
"SourceContextField"
,
"StructField"
,
"TimestampField"
,
"TypeField"
,
"DoubleField"
,
"FloatField"
,
"Int64Field"
,
"Uint64Field"
,
"Int32Field"
,
"Uint32Field"
,
"BoolField"
,
"StringField"
,
"BytesField"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
})
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/Google.Protobuf.csproj
View file @
c78222a3
...
...
@@ -109,7 +109,7 @@
<Compile
Include=
"Reflection\FieldDescriptor.cs"
/>
<Compile
Include=
"Reflection\FieldType.cs"
/>
<Compile
Include=
"Reflection\FileDescriptor.cs"
/>
<Compile
Include=
"Reflection\GeneratedC
od
eInfo.cs"
/>
<Compile
Include=
"Reflection\GeneratedC
lrTyp
eInfo.cs"
/>
<Compile
Include=
"Reflection\IDescriptor.cs"
/>
<Compile
Include=
"Reflection\IFieldAccessor.cs"
/>
<Compile
Include=
"Reflection\MapFieldAccessor.cs"
/>
...
...
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
View file @
c78222a3
...
...
@@ -80,7 +80,7 @@ namespace Google.Protobuf.Reflection {
"EhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29n"
,
"bGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFtaW5n"
,
"GAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVmYWxz"
,
"ZSK
q
BQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph"
,
"ZSK
u
BQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph"
,
"dmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVfZmls"
,
"ZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9o"
,
"YXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg"
,
...
...
@@ -91,72 +91,77 @@ namespace Google.Protobuf.Reflection {
"cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl"
,
"ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs"
,
"c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz"
,
"cGFjZRglIAEoCRInCh9qYXZhbmFub191c2VfZGVwcmVjYXRlZF9wYWNrYWdl"
,
"GCYgASgIEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2ds"
,
"ZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9k"
,
"ZRIJCgVTUEVFRBABEg0KCUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRAD"
,
"KgkI6AcQgICAgAIi5gEKDk1lc3NhZ2VPcHRpb25zEiYKF21lc3NhZ2Vfc2V0"
,
"X3dpcmVfZm9ybWF0GAEgASgIOgVmYWxzZRIuCh9ub19zdGFuZGFyZF9kZXNj"
,
"cmlwdG9yX2FjY2Vzc29yGAIgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMg"
,
"ASgIOgVmYWxzZRIRCgltYXBfZW50cnkYByABKAgSQwoUdW5pbnRlcnByZXRl"
,
"ZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0"
,
"ZWRPcHRpb24qCQjoBxCAgICAAiKYAwoMRmllbGRPcHRpb25zEjoKBWN0eXBl"
,
"GAEgASgOMiMuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5DVHlwZToG"
,
"U1RSSU5HEg4KBnBhY2tlZBgCIAEoCBI/CgZqc3R5cGUYBiABKA4yJC5nb29n"
,
"bGUucHJvdG9idWYuRmllbGRPcHRpb25zLkpTVHlwZToJSlNfTk9STUFMEhMK"
,
"BGxhenkYBSABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNl"
,
"EhMKBHdlYWsYCiABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9u"
,
"GOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9u"
,
"Ii8KBUNUeXBlEgoKBlNUUklORxAAEggKBENPUkQQARIQCgxTVFJJTkdfUElF"
,
"Q0UQAiI1CgZKU1R5cGUSDQoJSlNfTk9STUFMEAASDQoJSlNfU1RSSU5HEAES"
,
"DQoJSlNfTlVNQkVSEAIqCQjoBxCAgICAAiKNAQoLRW51bU9wdGlvbnMSEwoL"
,
"YWxsb3dfYWxpYXMYAiABKAgSGQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2US"
,
"QwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3Rv"
,
"YnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiJ9ChBFbnVtVmFs"
,
"dWVPcHRpb25zEhkKCmRlcHJlY2F0ZWQYASABKAg6BWZhbHNlEkMKFHVuaW50"
,
"ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu"
,
"dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiewoOU2VydmljZU9wdGlvbnMS"
,
"GQoKZGVwcmVjYXRlZBghIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9v"
,
"cHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRP"
,
"cHRpb24qCQjoBxCAgICAAiJ6Cg1NZXRob2RPcHRpb25zEhkKCmRlcHJlY2F0"
,
"ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMo"
,
"CzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQ"
,
"gICAgAIingIKE1VuaW50ZXJwcmV0ZWRPcHRpb24SOwoEbmFtZRgCIAMoCzIt"
,
"Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uLk5hbWVQYXJ0"
,
"EhgKEGlkZW50aWZpZXJfdmFsdWUYAyABKAkSGgoScG9zaXRpdmVfaW50X3Zh"
,
"bHVlGAQgASgEEhoKEm5lZ2F0aXZlX2ludF92YWx1ZRgFIAEoAxIUCgxkb3Vi"
,
"bGVfdmFsdWUYBiABKAESFAoMc3RyaW5nX3ZhbHVlGAcgASgMEhcKD2FnZ3Jl"
,
"Z2F0ZV92YWx1ZRgIIAEoCRozCghOYW1lUGFydBIRCgluYW1lX3BhcnQYASAC"
,
"KAkSFAoMaXNfZXh0ZW5zaW9uGAIgAigIItUBCg5Tb3VyY2VDb2RlSW5mbxI6"
,
"Cghsb2NhdGlvbhgBIAMoCzIoLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2Rl"
,
"SW5mby5Mb2NhdGlvbhqGAQoITG9jYXRpb24SEAoEcGF0aBgBIAMoBUICEAES"
,
"EAoEc3BhbhgCIAMoBUICEAESGAoQbGVhZGluZ19jb21tZW50cxgDIAEoCRIZ"
,
"ChF0cmFpbGluZ19jb21tZW50cxgEIAEoCRIhChlsZWFkaW5nX2RldGFjaGVk"
,
"X2NvbW1lbnRzGAYgAygJQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2Ny"
,
"aXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90"
,
"b2J1Zi5SZWZsZWN0aW9u"
));
"cGFjZRglIAEoCRIrCh9qYXZhbmFub191c2VfZGVwcmVjYXRlZF9wYWNrYWdl"
,
"GCYgASgIQgIYARJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n"
,
"b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6"
,
"ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJ"
,
"TUUQAyoJCOgHEICAgIACIuYBCg5NZXNzYWdlT3B0aW9ucxImChdtZXNzYWdl"
,
"X3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3RhbmRhcmRf"
,
"ZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl"
,
"ZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMKFHVuaW50ZXJw"
,
"cmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVy"
,
"cHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0aW9ucxI6CgVj"
,
"dHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuQ1R5"
,
"cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBlGAYgASgOMiQu"
,
"Z29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6CUpTX05PUk1B"
,
"TBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMgASgIOgVm"
,
"YWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29w"
,
"dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w"
,
"dGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAESEAoMU1RSSU5H"
,
"X1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpTX1NUUklO"
,
"RxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIijQEKC0VudW1PcHRpb25z"
,
"EhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZh"
,
"bHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5w"
,
"cm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIifQoQRW51"
,
"bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEgASgIOgVmYWxzZRJDChR1"
,
"bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYu"
,
"VW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACInsKDlNlcnZpY2VPcHRp"
,
"b25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0"
,
"ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJl"
,
"dGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9kT3B0aW9ucxIZCgpkZXBy"
,
"ZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjn"
,
"ByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJ"
,
"COgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0aW9uEjsKBG5hbWUYAiAD"
,
"KAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbi5OYW1l"
,
"UGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0aXZlX2lu"
,
"dF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSABKAMSFAoM"
,
"ZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192YWx1ZRgHIAEoDBIXCg9h"
,
"Z2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBhcnQSEQoJbmFtZV9wYXJ0"
,
"GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLVAQoOU291cmNlQ29kZUlu"
,
"Zm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUucHJvdG9idWYuU291cmNl"
,
"Q29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9uEhAKBHBhdGgYASADKAVC"
,
"AhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRpbmdfY29tbWVudHMYAyAB"
,
"KAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkSIQoZbGVhZGluZ19kZXRh"
,
"Y2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJhdGVkQ29kZUluZm8SQQoK"
,
"YW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5HZW5lcmF0ZWRD"
,
"b2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRpb24SEAoEcGF0aBgBIAMo"
,
"BUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoFYmVnaW4YAyABKAUSCwoD"
,
"ZW5kGAQgASgFQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2NyaXB0b3JQ"
,
"cm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90b2J1Zi5S"
,
"ZWZsZWN0aW9u"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorSet
),
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorSet
.
Parser
,
new
[]{
"File"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Package"
,
"Dependency"
,
"PublicDependency"
,
"WeakDependency"
,
"MessageType"
,
"EnumType"
,
"Service"
,
"Extension"
,
"Options"
,
"SourceCodeInfo"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Field"
,
"Extension"
,
"NestedType"
,
"EnumType"
,
"ExtensionRange"
,
"OneofDecl"
,
"Options"
,
"ReservedRange"
,
"ReservedName"
},
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ExtensionRange
),
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ExtensionRange
.
Parser
,
new
[]{
"Start"
,
"End"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ReservedRange
),
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ReservedRange
.
Parser
,
new
[]{
"Start"
,
"End"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Number"
,
"Label"
,
"Type"
,
"TypeName"
,
"Extendee"
,
"DefaultValue"
,
"OneofIndex"
,
"JsonName"
,
"Options"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
.
Types
.
Type
),
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
.
Types
.
Label
)
},
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
OneofDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
OneofDescriptorProto
.
Parser
,
new
[]{
"Name"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Value"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Number"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
ServiceDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
ServiceDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Method"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
MethodDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
MethodDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"InputType"
,
"OutputType"
,
"Options"
,
"ClientStreaming"
,
"ServerStreaming"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
FileOptions
.
Parser
,
new
[]{
"JavaPackage"
,
"JavaOuterClassname"
,
"JavaMultipleFiles"
,
"JavaGenerateEqualsAndHash"
,
"JavaStringCheckUtf8"
,
"OptimizeFor"
,
"GoPackage"
,
"CcGenericServices"
,
"JavaGenericServices"
,
"PyGenericServices"
,
"Deprecated"
,
"CcEnableArenas"
,
"ObjcClassPrefix"
,
"CsharpNamespace"
,
"JavananoUseDeprecatedPackage"
,
"UninterpretedOption"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileOptions
.
Types
.
OptimizeMode
)
},
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
MessageOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
MessageOptions
.
Parser
,
new
[]{
"MessageSetWireFormat"
,
"NoStandardDescriptorAccessor"
,
"Deprecated"
,
"MapEntry"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
.
Parser
,
new
[]{
"Ctype"
,
"Packed"
,
"Jstype"
,
"Lazy"
,
"Deprecated"
,
"Weak"
,
"UninterpretedOption"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
.
Types
.
CType
),
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
.
Types
.
JSType
)
},
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumOptions
.
Parser
,
new
[]{
"AllowAlias"
,
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueOptions
.
Parser
,
new
[]{
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
ServiceOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
ServiceOptions
.
Parser
,
new
[]{
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
MethodOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
MethodOptions
.
Parser
,
new
[]{
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
),
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
.
Parser
,
new
[]{
"Name"
,
"IdentifierValue"
,
"PositiveIntValue"
,
"NegativeIntValue"
,
"DoubleValue"
,
"StringValue"
,
"AggregateValue"
},
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
.
Types
.
NamePart
),
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
.
Types
.
NamePart
.
Parser
,
new
[]{
"NamePart_"
,
"IsExtension"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
),
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
.
Parser
,
new
[]{
"Location"
},
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
.
Types
.
Location
),
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
.
Types
.
Location
.
Parser
,
new
[]{
"Path"
,
"Span"
,
"LeadingComments"
,
"TrailingComments"
,
"LeadingDetachedComments"
},
null
,
null
,
null
)})
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorSet
),
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorSet
.
Parser
,
new
[]{
"File"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
FileDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Package"
,
"Dependency"
,
"PublicDependency"
,
"WeakDependency"
,
"MessageType"
,
"EnumType"
,
"Service"
,
"Extension"
,
"Options"
,
"SourceCodeInfo"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Field"
,
"Extension"
,
"NestedType"
,
"EnumType"
,
"ExtensionRange"
,
"OneofDecl"
,
"Options"
,
"ReservedRange"
,
"ReservedName"
},
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ExtensionRange
),
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ExtensionRange
.
Parser
,
new
[]{
"Start"
,
"End"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ReservedRange
),
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorProto
.
Types
.
ReservedRange
.
Parser
,
new
[]{
"Start"
,
"End"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Number"
,
"Label"
,
"Type"
,
"TypeName"
,
"Extendee"
,
"DefaultValue"
,
"OneofIndex"
,
"JsonName"
,
"Options"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
.
Types
.
Type
),
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldDescriptorProto
.
Types
.
Label
)
},
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
OneofDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
OneofDescriptorProto
.
Parser
,
new
[]{
"Name"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Value"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Number"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
ServiceDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
ServiceDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"Method"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
MethodDescriptorProto
),
global
::
Google
.
Protobuf
.
Reflection
.
MethodDescriptorProto
.
Parser
,
new
[]{
"Name"
,
"InputType"
,
"OutputType"
,
"Options"
,
"ClientStreaming"
,
"ServerStreaming"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
FileOptions
.
Parser
,
new
[]{
"JavaPackage"
,
"JavaOuterClassname"
,
"JavaMultipleFiles"
,
"JavaGenerateEqualsAndHash"
,
"JavaStringCheckUtf8"
,
"OptimizeFor"
,
"GoPackage"
,
"CcGenericServices"
,
"JavaGenericServices"
,
"PyGenericServices"
,
"Deprecated"
,
"CcEnableArenas"
,
"ObjcClassPrefix"
,
"CsharpNamespace"
,
"JavananoUseDeprecatedPackage"
,
"UninterpretedOption"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FileOptions
.
Types
.
OptimizeMode
)
},
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
MessageOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
MessageOptions
.
Parser
,
new
[]{
"MessageSetWireFormat"
,
"NoStandardDescriptorAccessor"
,
"Deprecated"
,
"MapEntry"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
.
Parser
,
new
[]{
"Ctype"
,
"Packed"
,
"Jstype"
,
"Lazy"
,
"Deprecated"
,
"Weak"
,
"UninterpretedOption"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
.
Types
.
CType
),
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
FieldOptions
.
Types
.
JSType
)
},
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumOptions
.
Parser
,
new
[]{
"AllowAlias"
,
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
EnumValueOptions
.
Parser
,
new
[]{
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
ServiceOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
ServiceOptions
.
Parser
,
new
[]{
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
MethodOptions
),
global
::
Google
.
Protobuf
.
Reflection
.
MethodOptions
.
Parser
,
new
[]{
"Deprecated"
,
"UninterpretedOption"
},
null
,
null
,
null
),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
),
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
.
Parser
,
new
[]{
"Name"
,
"IdentifierValue"
,
"PositiveIntValue"
,
"NegativeIntValue"
,
"DoubleValue"
,
"StringValue"
,
"AggregateValue"
},
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
.
Types
.
NamePart
),
global
::
Google
.
Protobuf
.
Reflection
.
UninterpretedOption
.
Types
.
NamePart
.
Parser
,
new
[]{
"NamePart_"
,
"IsExtension"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
),
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
.
Parser
,
new
[]{
"Location"
},
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
.
Types
.
Location
),
global
::
Google
.
Protobuf
.
Reflection
.
SourceCodeInfo
.
Types
.
Location
.
Parser
,
new
[]{
"Path"
,
"Span"
,
"LeadingComments"
,
"TrailingComments"
,
"LeadingDetachedComments"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
),
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Parser
,
new
[]{
"Annotation"
},
null
,
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
new
pbr
::
GeneratedClrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
),
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
.
Parser
,
new
[]{
"Path"
,
"SourceFile"
,
"Begin"
,
"End"
},
null
,
null
,
null
)})
}));
}
#
endregion
...
...
@@ -2792,6 +2797,7 @@ namespace Google.Protobuf.Reflection {
/// Whether the nano proto compiler should generate in the deprecated non-nano
/// suffixed package.
/// </summary>
[
global
::
System
.
ObsoleteAttribute
()]
public
bool
JavananoUseDeprecatedPackage
{
get
{
return
javananoUseDeprecatedPackage_
;
}
set
{
...
...
@@ -5137,6 +5143,310 @@ namespace Google.Protobuf.Reflection {
}
/// <summary>
/// Describes the relationship between generated code and its original source
/// file. A GeneratedCodeInfo message is associated with only one generated
/// source file, but may contain references to different source .proto files.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
internal
sealed
partial
class
GeneratedCodeInfo
:
pb
::
IMessage
<
GeneratedCodeInfo
>
{
private
static
readonly
pb
::
MessageParser
<
GeneratedCodeInfo
>
_parser
=
new
pb
::
MessageParser
<
GeneratedCodeInfo
>(()
=>
new
GeneratedCodeInfo
());
public
static
pb
::
MessageParser
<
GeneratedCodeInfo
>
Parser
{
get
{
return
_parser
;
}
}
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
Reflection
.
DescriptorReflection
.
Descriptor
.
MessageTypes
[
18
];
}
}
pbr
::
MessageDescriptor
pb
::
IMessage
.
Descriptor
{
get
{
return
Descriptor
;
}
}
public
GeneratedCodeInfo
()
{
OnConstruction
();
}
partial
void
OnConstruction
();
public
GeneratedCodeInfo
(
GeneratedCodeInfo
other
)
:
this
()
{
annotation_
=
other
.
annotation_
.
Clone
();
}
public
GeneratedCodeInfo
Clone
()
{
return
new
GeneratedCodeInfo
(
this
);
}
/// <summary>Field number for the "annotation" field.</summary>
public
const
int
AnnotationFieldNumber
=
1
;
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
>
_repeated_annotation_codec
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
>
annotation_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
>();
/// <summary>
/// An Annotation connects some span of text in generated code to an element
/// of its generating .proto file.
/// </summary>
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Types
.
Annotation
>
Annotation
{
get
{
return
annotation_
;
}
}
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
GeneratedCodeInfo
);
}
public
bool
Equals
(
GeneratedCodeInfo
other
)
{
if
(
ReferenceEquals
(
other
,
null
))
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
))
{
return
true
;
}
if
(!
annotation_
.
Equals
(
other
.
annotation_
))
return
false
;
return
true
;
}
public
override
int
GetHashCode
()
{
int
hash
=
1
;
hash
^=
annotation_
.
GetHashCode
();
return
hash
;
}
public
override
string
ToString
()
{
return
pb
::
JsonFormatter
.
ToDiagnosticString
(
this
);
}
public
void
WriteTo
(
pb
::
CodedOutputStream
output
)
{
annotation_
.
WriteTo
(
output
,
_repeated_annotation_codec
);
}
public
int
CalculateSize
()
{
int
size
=
0
;
size
+=
annotation_
.
CalculateSize
(
_repeated_annotation_codec
);
return
size
;
}
public
void
MergeFrom
(
GeneratedCodeInfo
other
)
{
if
(
other
==
null
)
{
return
;
}
annotation_
.
Add
(
other
.
annotation_
);
}
public
void
MergeFrom
(
pb
::
CodedInputStream
input
)
{
uint
tag
;
while
((
tag
=
input
.
ReadTag
())
!=
0
)
{
switch
(
tag
)
{
default
:
input
.
SkipLastField
();
break
;
case
10
:
{
annotation_
.
AddEntriesFrom
(
input
,
_repeated_annotation_codec
);
break
;
}
}
}
}
#
region
Nested
types
/// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
public
static
partial
class
Types
{
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
internal
sealed
partial
class
Annotation
:
pb
::
IMessage
<
Annotation
>
{
private
static
readonly
pb
::
MessageParser
<
Annotation
>
_parser
=
new
pb
::
MessageParser
<
Annotation
>(()
=>
new
Annotation
());
public
static
pb
::
MessageParser
<
Annotation
>
Parser
{
get
{
return
_parser
;
}
}
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
Reflection
.
GeneratedCodeInfo
.
Descriptor
.
NestedTypes
[
0
];
}
}
pbr
::
MessageDescriptor
pb
::
IMessage
.
Descriptor
{
get
{
return
Descriptor
;
}
}
public
Annotation
()
{
OnConstruction
();
}
partial
void
OnConstruction
();
public
Annotation
(
Annotation
other
)
:
this
()
{
path_
=
other
.
path_
.
Clone
();
sourceFile_
=
other
.
sourceFile_
;
begin_
=
other
.
begin_
;
end_
=
other
.
end_
;
}
public
Annotation
Clone
()
{
return
new
Annotation
(
this
);
}
/// <summary>Field number for the "path" field.</summary>
public
const
int
PathFieldNumber
=
1
;
private
static
readonly
pb
::
FieldCodec
<
int
>
_repeated_path_codec
=
pb
::
FieldCodec
.
ForInt32
(
10
);
private
readonly
pbc
::
RepeatedField
<
int
>
path_
=
new
pbc
::
RepeatedField
<
int
>();
/// <summary>
/// Identifies the element in the original source .proto file. This field
/// is formatted the same as SourceCodeInfo.Location.path.
/// </summary>
public
pbc
::
RepeatedField
<
int
>
Path
{
get
{
return
path_
;
}
}
/// <summary>Field number for the "source_file" field.</summary>
public
const
int
SourceFileFieldNumber
=
2
;
private
string
sourceFile_
=
""
;
/// <summary>
/// Identifies the filesystem path to the original source .proto.
/// </summary>
public
string
SourceFile
{
get
{
return
sourceFile_
;
}
set
{
sourceFile_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
);
}
}
/// <summary>Field number for the "begin" field.</summary>
public
const
int
BeginFieldNumber
=
3
;
private
int
begin_
;
/// <summary>
/// Identifies the starting offset in bytes in the generated code
/// that relates to the identified object.
/// </summary>
public
int
Begin
{
get
{
return
begin_
;
}
set
{
begin_
=
value
;
}
}
/// <summary>Field number for the "end" field.</summary>
public
const
int
EndFieldNumber
=
4
;
private
int
end_
;
/// <summary>
/// Identifies the ending offset in bytes in the generated code that
/// relates to the identified offset. The end offset should be one past
/// the last relevant byte (so the length of the text = end - begin).
/// </summary>
public
int
End
{
get
{
return
end_
;
}
set
{
end_
=
value
;
}
}
public
override
bool
Equals
(
object
other
)
{
return
Equals
(
other
as
Annotation
);
}
public
bool
Equals
(
Annotation
other
)
{
if
(
ReferenceEquals
(
other
,
null
))
{
return
false
;
}
if
(
ReferenceEquals
(
other
,
this
))
{
return
true
;
}
if
(!
path_
.
Equals
(
other
.
path_
))
return
false
;
if
(
SourceFile
!=
other
.
SourceFile
)
return
false
;
if
(
Begin
!=
other
.
Begin
)
return
false
;
if
(
End
!=
other
.
End
)
return
false
;
return
true
;
}
public
override
int
GetHashCode
()
{
int
hash
=
1
;
hash
^=
path_
.
GetHashCode
();
if
(
SourceFile
.
Length
!=
0
)
hash
^=
SourceFile
.
GetHashCode
();
if
(
Begin
!=
0
)
hash
^=
Begin
.
GetHashCode
();
if
(
End
!=
0
)
hash
^=
End
.
GetHashCode
();
return
hash
;
}
public
override
string
ToString
()
{
return
pb
::
JsonFormatter
.
ToDiagnosticString
(
this
);
}
public
void
WriteTo
(
pb
::
CodedOutputStream
output
)
{
path_
.
WriteTo
(
output
,
_repeated_path_codec
);
if
(
SourceFile
.
Length
!=
0
)
{
output
.
WriteRawTag
(
18
);
output
.
WriteString
(
SourceFile
);
}
if
(
Begin
!=
0
)
{
output
.
WriteRawTag
(
24
);
output
.
WriteInt32
(
Begin
);
}
if
(
End
!=
0
)
{
output
.
WriteRawTag
(
32
);
output
.
WriteInt32
(
End
);
}
}
public
int
CalculateSize
()
{
int
size
=
0
;
size
+=
path_
.
CalculateSize
(
_repeated_path_codec
);
if
(
SourceFile
.
Length
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeStringSize
(
SourceFile
);
}
if
(
Begin
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt32Size
(
Begin
);
}
if
(
End
!=
0
)
{
size
+=
1
+
pb
::
CodedOutputStream
.
ComputeInt32Size
(
End
);
}
return
size
;
}
public
void
MergeFrom
(
Annotation
other
)
{
if
(
other
==
null
)
{
return
;
}
path_
.
Add
(
other
.
path_
);
if
(
other
.
SourceFile
.
Length
!=
0
)
{
SourceFile
=
other
.
SourceFile
;
}
if
(
other
.
Begin
!=
0
)
{
Begin
=
other
.
Begin
;
}
if
(
other
.
End
!=
0
)
{
End
=
other
.
End
;
}
}
public
void
MergeFrom
(
pb
::
CodedInputStream
input
)
{
uint
tag
;
while
((
tag
=
input
.
ReadTag
())
!=
0
)
{
switch
(
tag
)
{
default
:
input
.
SkipLastField
();
break
;
case
10
:
case
8
:
{
path_
.
AddEntriesFrom
(
input
,
_repeated_path_codec
);
break
;
}
case
18
:
{
SourceFile
=
input
.
ReadString
();
break
;
}
case
24
:
{
Begin
=
input
.
ReadInt32
();
break
;
}
case
32
:
{
End
=
input
.
ReadInt32
();
break
;
}
}
}
}
}
}
#
endregion
}
#
endregion
}
...
...
csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs
View file @
c78222a3
...
...
@@ -43,7 +43,7 @@ namespace Google.Protobuf.Reflection
/// </summary>
public
sealed
class
FileDescriptor
:
IDescriptor
{
private
FileDescriptor
(
ByteString
descriptorData
,
FileDescriptorProto
proto
,
FileDescriptor
[]
dependencies
,
DescriptorPool
pool
,
bool
allowUnknownDependencies
,
GeneratedC
od
eInfo
generatedCodeInfo
)
private
FileDescriptor
(
ByteString
descriptorData
,
FileDescriptorProto
proto
,
FileDescriptor
[]
dependencies
,
DescriptorPool
pool
,
bool
allowUnknownDependencies
,
GeneratedC
lrTyp
eInfo
generatedCodeInfo
)
{
SerializedData
=
descriptorData
;
DescriptorPool
=
pool
;
...
...
@@ -223,7 +223,7 @@ namespace Google.Protobuf.Reflection
/// <exception cref="DescriptorValidationException">If <paramref name="proto"/> is not
/// a valid descriptor. This can occur for a number of reasons, such as a field
/// having an undefined type or because two messages were defined with the same name.</exception>
private
static
FileDescriptor
BuildFrom
(
ByteString
descriptorData
,
FileDescriptorProto
proto
,
FileDescriptor
[]
dependencies
,
bool
allowUnknownDependencies
,
GeneratedC
od
eInfo
generatedCodeInfo
)
private
static
FileDescriptor
BuildFrom
(
ByteString
descriptorData
,
FileDescriptorProto
proto
,
FileDescriptor
[]
dependencies
,
bool
allowUnknownDependencies
,
GeneratedC
lrTyp
eInfo
generatedCodeInfo
)
{
// Building descriptors involves two steps: translating and linking.
// In the translation step (implemented by FileDescriptor's
...
...
@@ -291,7 +291,7 @@ namespace Google.Protobuf.Reflection
public
static
FileDescriptor
FromGeneratedCode
(
byte
[]
descriptorData
,
FileDescriptor
[]
dependencies
,
GeneratedC
od
eInfo
generatedCodeInfo
)
GeneratedC
lrTyp
eInfo
generatedCodeInfo
)
{
FileDescriptorProto
proto
;
try
...
...
csharp/src/Google.Protobuf/Reflection/GeneratedC
od
eInfo.cs
→
csharp/src/Google.Protobuf/Reflection/GeneratedC
lrTyp
eInfo.cs
View file @
c78222a3
...
...
@@ -38,10 +38,10 @@ namespace Google.Protobuf.Reflection
/// These are constructed as required, and are not long-lived. Hand-written code should
/// never need to use this type.
/// </summary>
public
sealed
class
GeneratedC
od
eInfo
public
sealed
class
GeneratedC
lrTyp
eInfo
{
private
static
readonly
string
[]
EmptyNames
=
new
string
[
0
];
private
static
readonly
GeneratedC
odeInfo
[]
EmptyCodeInfo
=
new
GeneratedCod
eInfo
[
0
];
private
static
readonly
GeneratedC
lrTypeInfo
[]
EmptyCodeInfo
=
new
GeneratedClrTyp
eInfo
[
0
];
/// <summary>
/// Irrelevant for file descriptors; the CLR type for the message for message descriptors.
...
...
@@ -70,7 +70,7 @@ namespace Google.Protobuf.Reflection
/// The reflection information for types within this file/message descriptor. Elements may be null
/// if there is no corresponding generated type, e.g. for map entry types.
/// </summary>
public
GeneratedC
od
eInfo
[]
NestedTypes
{
get
;
}
public
GeneratedC
lrTyp
eInfo
[]
NestedTypes
{
get
;
}
/// <summary>
/// The CLR types for enums within this file/message descriptor.
...
...
@@ -78,11 +78,11 @@ namespace Google.Protobuf.Reflection
public
Type
[]
NestedEnums
{
get
;
}
/// <summary>
/// Creates a GeneratedC
od
eInfo for a message descriptor, with nested types, nested enums, the CLR type, property names and oneof names.
/// Creates a GeneratedC
lrTyp
eInfo for a message descriptor, with nested types, nested enums, the CLR type, property names and oneof names.
/// Each array parameter may be null, to indicate a lack of values.
/// The parameter order is designed to make it feasible to format the generated code readably.
/// </summary>
public
GeneratedC
odeInfo
(
Type
clrType
,
MessageParser
parser
,
string
[]
propertyNames
,
string
[]
oneofNames
,
Type
[]
nestedEnums
,
GeneratedCod
eInfo
[]
nestedTypes
)
public
GeneratedC
lrTypeInfo
(
Type
clrType
,
MessageParser
parser
,
string
[]
propertyNames
,
string
[]
oneofNames
,
Type
[]
nestedEnums
,
GeneratedClrTyp
eInfo
[]
nestedTypes
)
{
NestedTypes
=
nestedTypes
??
EmptyCodeInfo
;
NestedEnums
=
nestedEnums
??
ReflectionUtil
.
EmptyTypes
;
...
...
@@ -93,9 +93,9 @@ namespace Google.Protobuf.Reflection
}
/// <summary>
/// Creates a GeneratedC
od
eInfo for a file descriptor, with only types and enums.
/// Creates a GeneratedC
lrTyp
eInfo for a file descriptor, with only types and enums.
/// </summary>
public
GeneratedC
odeInfo
(
Type
[]
nestedEnums
,
GeneratedCod
eInfo
[]
nestedTypes
)
public
GeneratedC
lrTypeInfo
(
Type
[]
nestedEnums
,
GeneratedClrTyp
eInfo
[]
nestedTypes
)
:
this
(
null
,
null
,
null
,
null
,
nestedEnums
,
nestedTypes
)
{
}
...
...
csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs
View file @
c78222a3
...
...
@@ -60,7 +60,7 @@ namespace Google.Protobuf.Reflection
private
readonly
IList
<
FieldDescriptor
>
fieldsInNumberOrder
;
private
readonly
IDictionary
<
string
,
FieldDescriptor
>
jsonFieldMap
;
internal
MessageDescriptor
(
DescriptorProto
proto
,
FileDescriptor
file
,
MessageDescriptor
parent
,
int
typeIndex
,
GeneratedC
od
eInfo
generatedCodeInfo
)
internal
MessageDescriptor
(
DescriptorProto
proto
,
FileDescriptor
file
,
MessageDescriptor
parent
,
int
typeIndex
,
GeneratedC
lrTyp
eInfo
generatedCodeInfo
)
:
base
(
file
,
file
.
ComputeFullName
(
parent
,
proto
.
Name
),
typeIndex
)
{
Proto
=
proto
;
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
View file @
c78222a3
...
...
@@ -29,8 +29,8 @@ namespace Google.Protobuf.WellKnownTypes {
"bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
.
Parser
,
new
[]{
"TypeUrl"
,
"Value"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
.
Parser
,
new
[]{
"TypeUrl"
,
"Value"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
View file @
c78222a3
...
...
@@ -41,10 +41,10 @@ namespace Google.Protobuf.WellKnownTypes {
"ZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContextReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
TypeReflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
.
Parser
,
new
[]{
"Name"
,
"Methods"
,
"Options"
,
"Version"
,
"SourceContext"
,
"Mixins"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
.
Parser
,
new
[]{
"Name"
,
"RequestTypeUrl"
,
"RequestStreaming"
,
"ResponseTypeUrl"
,
"ResponseStreaming"
,
"Options"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Mixin
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Mixin
.
Parser
,
new
[]{
"Name"
,
"Root"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
.
Parser
,
new
[]{
"Name"
,
"Methods"
,
"Options"
,
"Version"
,
"SourceContext"
,
"Mixins"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
.
Parser
,
new
[]{
"Name"
,
"RequestTypeUrl"
,
"RequestStreaming"
,
"ResponseTypeUrl"
,
"ResponseStreaming"
,
"Options"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Mixin
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Mixin
.
Parser
,
new
[]{
"Name"
,
"Root"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
View file @
c78222a3
...
...
@@ -30,8 +30,8 @@ namespace Google.Protobuf.WellKnownTypes {
"dG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
.
Parser
,
new
[]{
"Seconds"
,
"Nanos"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
.
Parser
,
new
[]{
"Seconds"
,
"Nanos"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
View file @
c78222a3
...
...
@@ -29,8 +29,8 @@ namespace Google.Protobuf.WellKnownTypes {
"ZXNiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
.
Parser
,
null
,
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
.
Parser
,
null
,
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
View file @
c78222a3
...
...
@@ -29,8 +29,8 @@ namespace Google.Protobuf.WellKnownTypes {
"Z2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
.
Parser
,
new
[]{
"Paths"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
.
Parser
,
new
[]{
"Paths"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
View file @
c78222a3
...
...
@@ -30,8 +30,8 @@ namespace Google.Protobuf.WellKnownTypes {
"cHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
.
Parser
,
new
[]{
"FileName"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
.
Parser
,
new
[]{
"FileName"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
View file @
c78222a3
...
...
@@ -39,10 +39,10 @@ namespace Google.Protobuf.WellKnownTypes {
"b3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
odeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
.
Parser
,
new
[]{
"Fields"
},
null
,
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
null
,
}),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
,
new
[]{
"NullValue"
,
"NumberValue"
,
"StringValue"
,
"BoolValue"
,
"StructValue"
,
"ListValue"
},
new
[]{
"Kind"
},
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
.
Parser
,
new
[]{
"Values"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTypeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
.
Parser
,
new
[]{
"Fields"
},
null
,
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
null
,
}),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
,
new
[]{
"NullValue"
,
"NumberValue"
,
"StringValue"
,
"BoolValue"
,
"StructValue"
,
"ListValue"
},
new
[]{
"Kind"
},
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
.
Parser
,
new
[]{
"Values"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
View file @
c78222a3
...
...
@@ -30,8 +30,8 @@ namespace Google.Protobuf.WellKnownTypes {
"c2IGcHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
.
Parser
,
new
[]{
"Seconds"
,
"Nanos"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
.
Parser
,
new
[]{
"Seconds"
,
"Nanos"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
View file @
c78222a3
...
...
@@ -60,12 +60,12 @@ namespace Google.Protobuf.WellKnownTypes {
"d25UeXBlc2IGcHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
WellKnownTypes
.
AnyReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContextReflection
.
Descriptor
,
},
new
pbr
::
GeneratedC
odeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Syntax
),
},
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Type
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Type
.
Parser
,
new
[]{
"Name"
,
"Fields"
,
"Oneofs"
,
"Options"
,
"SourceContext"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Parser
,
new
[]{
"Kind"
,
"Cardinality"
,
"Number"
,
"Name"
,
"TypeUrl"
,
"OneofIndex"
,
"Packed"
,
"Options"
,
"JsonName"
,
"DefaultValue"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Cardinality
)
},
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Enum
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Enum
.
Parser
,
new
[]{
"Name"
,
"Enumvalue"
,
"Options"
,
"SourceContext"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
EnumValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
EnumValue
.
Parser
,
new
[]{
"Name"
,
"Number"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
.
Parser
,
new
[]{
"Name"
,
"Value"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Syntax
),
},
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Type
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Type
.
Parser
,
new
[]{
"Name"
,
"Fields"
,
"Oneofs"
,
"Options"
,
"SourceContext"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Parser
,
new
[]{
"Kind"
,
"Cardinality"
,
"Number"
,
"Name"
,
"TypeUrl"
,
"OneofIndex"
,
"Packed"
,
"Options"
,
"JsonName"
,
"DefaultValue"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Kind
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Field
.
Types
.
Cardinality
)
},
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Enum
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Enum
.
Parser
,
new
[]{
"Name"
,
"Enumvalue"
,
"Options"
,
"SourceContext"
,
"Syntax"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
EnumValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
EnumValue
.
Parser
,
new
[]{
"Name"
,
"Number"
,
"Options"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
.
Parser
,
new
[]{
"Name"
,
"Value"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
View file @
c78222a3
...
...
@@ -35,16 +35,16 @@ namespace Google.Protobuf.WellKnownTypes {
"Mw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedC
odeInfo
(
null
,
new
pbr
::
GeneratedCod
eInfo
[]
{
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DoubleValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DoubleValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FloatValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FloatValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int64Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int64Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt64Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt64Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int32Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int32Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt32Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt32Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BoolValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BoolValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StringValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StringValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
od
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BytesValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BytesValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
)
new
pbr
::
GeneratedC
lrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTyp
eInfo
[]
{
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DoubleValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DoubleValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FloatValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FloatValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int64Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int64Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt64Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt64Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int32Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int32Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt32Value
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt32Value
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BoolValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BoolValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StringValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StringValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedC
lrTyp
eInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BytesValue
),
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BytesValue
.
Parser
,
new
[]{
"Value"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
src/google/protobuf/compiler/csharp/csharp_reflection_class.cc
View file @
c78222a3
...
...
@@ -182,7 +182,7 @@ void ReflectionClassGenerator::WriteDescriptor(io::Printer* printer) {
}
}
printer
->
Print
(
"},
\n
"
" new pbr::GeneratedC
od
eInfo("
);
" new pbr::GeneratedC
lrTyp
eInfo("
);
// Specify all the generated code information, recursively.
if
(
file_
->
enum_type_count
()
>
0
)
{
printer
->
Print
(
"new[] {"
);
...
...
@@ -195,7 +195,7 @@ void ReflectionClassGenerator::WriteDescriptor(io::Printer* printer) {
printer
->
Print
(
"null, "
);
}
if
(
file_
->
message_type_count
()
>
0
)
{
printer
->
Print
(
"new pbr::GeneratedC
od
eInfo[] {
\n
"
);
printer
->
Print
(
"new pbr::GeneratedC
lrTyp
eInfo[] {
\n
"
);
printer
->
Indent
();
printer
->
Indent
();
printer
->
Indent
();
...
...
@@ -232,7 +232,7 @@ void ReflectionClassGenerator::WriteGeneratedCodeInfo(const Descriptor* descript
return
;
}
// Generated message type
printer
->
Print
(
"new pbr::GeneratedC
od
eInfo(typeof($type_name$), $type_name$.Parser, "
,
"type_name"
,
GetClassName
(
descriptor
));
printer
->
Print
(
"new pbr::GeneratedC
lrTyp
eInfo(typeof($type_name$), $type_name$.Parser, "
,
"type_name"
,
GetClassName
(
descriptor
));
// Fields
if
(
descriptor
->
field_count
()
>
0
)
{
...
...
@@ -273,7 +273,7 @@ void ReflectionClassGenerator::WriteGeneratedCodeInfo(const Descriptor* descript
// Nested types
if
(
descriptor
->
nested_type_count
()
>
0
)
{
// Need to specify array type explicitly here, as all elements may be null.
printer
->
Print
(
"new pbr::GeneratedC
od
eInfo[] { "
);
printer
->
Print
(
"new pbr::GeneratedC
lrTyp
eInfo[] { "
);
for
(
int
i
=
0
;
i
<
descriptor
->
nested_type_count
();
i
++
)
{
WriteGeneratedCodeInfo
(
descriptor
->
nested_type
(
i
),
printer
,
i
==
descriptor
->
nested_type_count
()
-
1
);
}
...
...
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