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
17fb8f22
Commit
17fb8f22
authored
Sep 23, 2011
by
csharptest
Committed by
rogerk
Sep 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for public constructor on messages
parent
22efa1a8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
71 additions
and
6 deletions
+71
-6
AddressBookProtos.cs
src/AddressBook/AddressBookProtos.cs
+3
-0
DependencyResolutionTest.cs
src/ProtoGen.Test/DependencyResolutionTest.cs
+6
-6
MessageGenerator.cs
src/ProtoGen/MessageGenerator.cs
+1
-0
UnitTestCSharpOptionsProtoFile.cs
...Buffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
+1
-0
UnitTestCustomOptionsProtoFile.cs
...Buffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
+0
-0
UnitTestEmbedOptimizeForProtoFile.cs
...fers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
+1
-0
UnitTestExtrasIssuesProtoFile.cs
...lBuffers.Test/TestProtos/UnitTestExtrasIssuesProtoFile.cs
+7
-0
UnitTestGoogleSizeProtoFile.cs
...colBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs
+5
-0
UnitTestGoogleSpeedProtoFile.cs
...olBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs
+5
-0
UnitTestImportLiteProtoFile.cs
...colBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
+1
-0
UnitTestImportProtoFile.cs
...rotocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
+1
-0
UnitTestMessageSetProtoFile.cs
...colBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
+6
-0
UnitTestNoGenericServicesProtoFile.cs
...ers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs
+1
-0
UnitTestOptimizeForProtoFile.cs
...olBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
+3
-0
UnitTestProtoFile.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
+0
-0
UnitTestRpcInterop.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
+4
-0
UnitTestXmlSerializerTestProtoFile.cs
...ers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs
+6
-0
CSharpOptions.cs
src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
+4
-0
DescriptorProtoFile.cs
src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
+0
-0
UnitTestExtrasFullProtoFile.cs
...uffersLite.Test/TestProtos/UnitTestExtrasFullProtoFile.cs
+8
-0
UnitTestExtrasLiteProtoFile.cs
...uffersLite.Test/TestProtos/UnitTestExtrasLiteProtoFile.cs
+5
-0
UnitTestImportLiteProtoFile.cs
...uffersLite.Test/TestProtos/UnitTestImportLiteProtoFile.cs
+1
-0
UnitTestImportProtoFile.cs
...colBuffersLite.Test/TestProtos/UnitTestImportProtoFile.cs
+1
-0
UnitTestLiteImportNonLiteProtoFile.cs
...ite.Test/TestProtos/UnitTestLiteImportNonLiteProtoFile.cs
+1
-0
UnitTestLiteProtoFile.cs
...tocolBuffersLite.Test/TestProtos/UnitTestLiteProtoFile.cs
+0
-0
UnitTestProtoFile.cs
src/ProtocolBuffersLite.Test/TestProtos/UnitTestProtoFile.cs
+0
-0
No files found.
src/AddressBook/AddressBookProtos.cs
View file @
17fb8f22
...
...
@@ -68,6 +68,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Person
:
pb
::
GeneratedMessage
<
Person
,
Person
.
Builder
>
{
private
Person
()
{
}
private
static
readonly
Person
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_personFieldNames
=
new
string
[]
{
"email"
,
"id"
,
"name"
,
"phone"
};
private
static
readonly
uint
[]
_personFieldTags
=
new
uint
[]
{
26
,
16
,
10
,
34
};
...
...
@@ -108,6 +109,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
PhoneNumber
:
pb
::
GeneratedMessage
<
PhoneNumber
,
PhoneNumber
.
Builder
>
{
private
PhoneNumber
()
{
}
private
static
readonly
PhoneNumber
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_phoneNumberFieldNames
=
new
string
[]
{
"number"
,
"type"
};
private
static
readonly
uint
[]
_phoneNumberFieldTags
=
new
uint
[]
{
10
,
16
};
...
...
@@ -766,6 +768,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
AddressBook
:
pb
::
GeneratedMessage
<
AddressBook
,
AddressBook
.
Builder
>
{
private
AddressBook
()
{
}
private
static
readonly
AddressBook
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_addressBookFieldNames
=
new
string
[]
{
"person"
};
private
static
readonly
uint
[]
_addressBookFieldTags
=
new
uint
[]
{
10
};
...
...
src/ProtoGen.Test/DependencyResolutionTest.cs
View file @
17fb8f22
...
...
@@ -52,7 +52,7 @@ namespace Google.ProtocolBuffers.ProtoGen
{
FileDescriptorProto
first
=
new
FileDescriptorProto
.
Builder
{
Name
=
"First"
}.
Build
();
FileDescriptorProto
second
=
new
FileDescriptorProto
.
Builder
{
Name
=
"Second"
}.
Build
();
FileDescriptorSet
set
=
new
FileDescriptorSet
{
FileList
=
{
first
,
second
}}
;
FileDescriptorSet
set
=
new
FileDescriptorSet
.
Builder
{
FileList
=
{
first
,
second
}
}.
Build
()
;
IList
<
FileDescriptor
>
converted
=
Generator
.
ConvertDescriptors
(
CSharpFileOptions
.
DefaultInstance
,
set
);
Assert
.
AreEqual
(
2
,
converted
.
Count
);
...
...
@@ -68,7 +68,7 @@ namespace Google.ProtocolBuffers.ProtoGen
FileDescriptorProto
first
=
new
FileDescriptorProto
.
Builder
{
Name
=
"First"
,
DependencyList
=
{
"Second"
}}.
Build
();
FileDescriptorProto
second
=
new
FileDescriptorProto
.
Builder
{
Name
=
"Second"
}.
Build
();
FileDescriptorSet
set
=
new
FileDescriptorSet
{
FileList
=
{
first
,
second
}}
;
FileDescriptorSet
set
=
new
FileDescriptorSet
.
Builder
{
FileList
=
{
first
,
second
}
}.
Build
()
;
IList
<
FileDescriptor
>
converted
=
Generator
.
ConvertDescriptors
(
CSharpFileOptions
.
DefaultInstance
,
set
);
Assert
.
AreEqual
(
2
,
converted
.
Count
);
Assert
.
AreEqual
(
"First"
,
converted
[
0
].
Name
);
...
...
@@ -84,7 +84,7 @@ namespace Google.ProtocolBuffers.ProtoGen
FileDescriptorProto
first
=
new
FileDescriptorProto
.
Builder
{
Name
=
"First"
}.
Build
();
FileDescriptorProto
second
=
new
FileDescriptorProto
.
Builder
{
Name
=
"Second"
,
DependencyList
=
{
"First"
}}.
Build
();
FileDescriptorSet
set
=
new
FileDescriptorSet
{
FileList
=
{
first
,
second
}}
;
FileDescriptorSet
set
=
new
FileDescriptorSet
.
Builder
{
FileList
=
{
first
,
second
}
}.
Build
()
;
IList
<
FileDescriptor
>
converted
=
Generator
.
ConvertDescriptors
(
CSharpFileOptions
.
DefaultInstance
,
set
);
Assert
.
AreEqual
(
2
,
converted
.
Count
);
Assert
.
AreEqual
(
"First"
,
converted
[
0
].
Name
);
...
...
@@ -101,7 +101,7 @@ namespace Google.ProtocolBuffers.ProtoGen
new
FileDescriptorProto
.
Builder
{
Name
=
"First"
,
DependencyList
=
{
"Second"
}}.
Build
();
FileDescriptorProto
second
=
new
FileDescriptorProto
.
Builder
{
Name
=
"Second"
,
DependencyList
=
{
"First"
}}.
Build
();
FileDescriptorSet
set
=
new
FileDescriptorSet
{
FileList
=
{
first
,
second
}}
;
FileDescriptorSet
set
=
new
FileDescriptorSet
.
Builder
{
FileList
=
{
first
,
second
}
}.
Build
()
;
try
{
Generator
.
ConvertDescriptors
(
CSharpFileOptions
.
DefaultInstance
,
set
);
...
...
@@ -118,7 +118,7 @@ namespace Google.ProtocolBuffers.ProtoGen
{
FileDescriptorProto
first
=
new
FileDescriptorProto
.
Builder
{
Name
=
"First"
,
DependencyList
=
{
"Second"
}}.
Build
();
FileDescriptorSet
set
=
new
FileDescriptorSet
{
FileList
=
{
first
}}
;
FileDescriptorSet
set
=
new
FileDescriptorSet
.
Builder
{
FileList
=
{
first
}
}.
Build
()
;
try
{
Generator
.
ConvertDescriptors
(
CSharpFileOptions
.
DefaultInstance
,
set
);
...
...
@@ -135,7 +135,7 @@ namespace Google.ProtocolBuffers.ProtoGen
{
FileDescriptorProto
first
=
new
FileDescriptorProto
.
Builder
{
Name
=
"First"
,
DependencyList
=
{
"First"
}}.
Build
();
FileDescriptorSet
set
=
new
FileDescriptorSet
{
FileList
=
{
first
}}
;
FileDescriptorSet
set
=
new
FileDescriptorSet
.
Builder
{
FileList
=
{
first
}
}.
Build
()
;
try
{
Generator
.
ConvertDescriptors
(
CSharpFileOptions
.
DefaultInstance
,
set
);
...
...
src/ProtoGen/MessageGenerator.cs
View file @
17fb8f22
...
...
@@ -181,6 +181,7 @@ namespace Google.ProtocolBuffers.ProtoGen
Descriptor
.
Proto
.
ExtensionRangeCount
>
0
?
"Extendable"
:
"Generated"
,
RuntimeSuffix
);
writer
.
Indent
();
writer
.
WriteLine
(
"private {0}() {{ }}"
,
ClassName
);
// Must call BuildPartial() to make sure all lists are made read-only
writer
.
WriteLine
(
"private static readonly {0} defaultInstance = new Builder().BuildPartial();"
,
ClassName
);
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
View file @
17fb8f22
...
...
@@ -60,6 +60,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
OptionsMessage
:
pb
::
GeneratedMessage
<
OptionsMessage
,
OptionsMessage
.
Builder
>
{
private
OptionsMessage
()
{
}
private
static
readonly
OptionsMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_optionsMessageFieldNames
=
new
string
[]
{
"customized"
,
"normal"
,
"options_message"
};
private
static
readonly
uint
[]
_optionsMessageFieldTags
=
new
uint
[]
{
26
,
10
,
18
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
View file @
17fb8f22
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
View file @
17fb8f22
...
...
@@ -64,6 +64,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestEmbedOptimizedForSize
:
pb
::
GeneratedMessage
<
TestEmbedOptimizedForSize
,
TestEmbedOptimizedForSize
.
Builder
>
{
private
TestEmbedOptimizedForSize
()
{
}
private
static
readonly
TestEmbedOptimizedForSize
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testEmbedOptimizedForSizeFieldNames
=
new
string
[]
{
"optional_message"
,
"repeated_message"
};
private
static
readonly
uint
[]
_testEmbedOptimizedForSizeFieldTags
=
new
uint
[]
{
10
,
18
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestExtrasIssuesProtoFile.cs
View file @
17fb8f22
...
...
@@ -125,6 +125,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
A
:
pb
::
GeneratedMessage
<
A
,
A
.
Builder
>
{
private
A
()
{
}
private
static
readonly
A
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_aFieldNames
=
new
string
[]
{
"_A"
};
private
static
readonly
uint
[]
_aFieldTags
=
new
uint
[]
{
8
};
...
...
@@ -364,6 +365,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
B
:
pb
::
GeneratedMessage
<
B
,
B
.
Builder
>
{
private
B
()
{
}
private
static
readonly
B
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_bFieldNames
=
new
string
[]
{
"B_"
};
private
static
readonly
uint
[]
_bFieldTags
=
new
uint
[]
{
8
};
...
...
@@ -603,6 +605,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
AB
:
pb
::
GeneratedMessage
<
AB
,
AB
.
Builder
>
{
private
AB
()
{
}
private
static
readonly
AB
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_aBFieldNames
=
new
string
[]
{
"a_b"
};
private
static
readonly
uint
[]
_aBFieldTags
=
new
uint
[]
{
8
};
...
...
@@ -842,6 +845,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
NumberField
:
pb
::
GeneratedMessage
<
NumberField
,
NumberField
.
Builder
>
{
private
NumberField
()
{
}
private
static
readonly
NumberField
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_numberFieldFieldNames
=
new
string
[]
{
"_01"
};
private
static
readonly
uint
[]
_numberFieldFieldTags
=
new
uint
[]
{
8
};
...
...
@@ -1085,6 +1089,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
NegativeEnumMessage
:
pb
::
GeneratedMessage
<
NegativeEnumMessage
,
NegativeEnumMessage
.
Builder
>
{
private
NegativeEnumMessage
()
{
}
private
static
readonly
NegativeEnumMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_negativeEnumMessageFieldNames
=
new
string
[]
{
"packed_values"
,
"value"
,
"values"
};
private
static
readonly
uint
[]
_negativeEnumMessageFieldTags
=
new
uint
[]
{
26
,
8
,
16
};
...
...
@@ -1473,6 +1478,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
DeprecatedChild
:
pb
::
GeneratedMessage
<
DeprecatedChild
,
DeprecatedChild
.
Builder
>
{
private
DeprecatedChild
()
{
}
private
static
readonly
DeprecatedChild
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_deprecatedChildFieldNames
=
new
string
[]
{
};
private
static
readonly
uint
[]
_deprecatedChildFieldTags
=
new
uint
[]
{
};
...
...
@@ -1671,6 +1677,7 @@ namespace UnitTest.Issues.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
DeprecatedFieldsMessage
:
pb
::
GeneratedMessage
<
DeprecatedFieldsMessage
,
DeprecatedFieldsMessage
.
Builder
>
{
private
DeprecatedFieldsMessage
()
{
}
private
static
readonly
DeprecatedFieldsMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_deprecatedFieldsMessageFieldNames
=
new
string
[]
{
"EnumArray"
,
"EnumValue"
,
"MessageArray"
,
"MessageValue"
,
"PrimitiveArray"
,
"PrimitiveValue"
};
private
static
readonly
uint
[]
_deprecatedFieldsMessageFieldTags
=
new
uint
[]
{
48
,
40
,
34
,
26
,
16
,
8
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSizeProtoFile.cs
View file @
17fb8f22
...
...
@@ -137,6 +137,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SizeMessage1
:
pb
::
GeneratedMessage
<
SizeMessage1
,
SizeMessage1
.
Builder
>
{
private
SizeMessage1
()
{
}
private
static
readonly
SizeMessage1
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
SizeMessage1
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -1438,6 +1439,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SizeMessage1SubMessage
:
pb
::
GeneratedMessage
<
SizeMessage1SubMessage
,
SizeMessage1SubMessage
.
Builder
>
{
private
SizeMessage1SubMessage
()
{
}
private
static
readonly
SizeMessage1SubMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
SizeMessage1SubMessage
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -2121,6 +2123,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SizeMessage2
:
pb
::
GeneratedMessage
<
SizeMessage2
,
SizeMessage2
.
Builder
>
{
private
SizeMessage2
()
{
}
private
static
readonly
SizeMessage2
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
SizeMessage2
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -2151,6 +2154,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Group1
:
pb
::
GeneratedMessage
<
Group1
,
Group1
.
Builder
>
{
private
Group1
()
{
}
private
static
readonly
Group1
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
Group1
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -3762,6 +3766,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SizeMessage2GroupedMessage
:
pb
::
GeneratedMessage
<
SizeMessage2GroupedMessage
,
SizeMessage2GroupedMessage
.
Builder
>
{
private
SizeMessage2GroupedMessage
()
{
}
private
static
readonly
SizeMessage2GroupedMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
SizeMessage2GroupedMessage
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestGoogleSpeedProtoFile.cs
View file @
17fb8f22
...
...
@@ -137,6 +137,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SpeedMessage1
:
pb
::
GeneratedMessage
<
SpeedMessage1
,
SpeedMessage1
.
Builder
>
{
private
SpeedMessage1
()
{
}
private
static
readonly
SpeedMessage1
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_speedMessage1FieldNames
=
new
string
[]
{
"field1"
,
"field100"
,
"field101"
,
"field102"
,
"field103"
,
"field104"
,
"field12"
,
"field128"
,
"field129"
,
"field13"
,
"field130"
,
"field131"
,
"field14"
,
"field15"
,
"field150"
,
"field16"
,
"field17"
,
"field18"
,
"field2"
,
"field22"
,
"field23"
,
"field24"
,
"field25"
,
"field271"
,
"field272"
,
"field280"
,
"field29"
,
"field3"
,
"field30"
,
"field4"
,
"field5"
,
"field59"
,
"field6"
,
"field60"
,
"field67"
,
"field68"
,
"field7"
,
"field78"
,
"field80"
,
"field81"
,
"field9"
};
private
static
readonly
uint
[]
_speedMessage1FieldTags
=
new
uint
[]
{
10
,
800
,
808
,
818
,
826
,
832
,
96
,
1024
,
1034
,
104
,
1040
,
1048
,
112
,
122
,
1200
,
128
,
136
,
146
,
16
,
176
,
184
,
192
,
200
,
2168
,
2176
,
2240
,
232
,
24
,
240
,
34
,
41
,
472
,
48
,
480
,
536
,
544
,
58
,
624
,
640
,
648
,
74
};
...
...
@@ -2072,6 +2073,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SpeedMessage1SubMessage
:
pb
::
GeneratedMessage
<
SpeedMessage1SubMessage
,
SpeedMessage1SubMessage
.
Builder
>
{
private
SpeedMessage1SubMessage
()
{
}
private
static
readonly
SpeedMessage1SubMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_speedMessage1SubMessageFieldNames
=
new
string
[]
{
"field1"
,
"field12"
,
"field13"
,
"field14"
,
"field15"
,
"field16"
,
"field19"
,
"field2"
,
"field20"
,
"field203"
,
"field204"
,
"field205"
,
"field206"
,
"field207"
,
"field21"
,
"field22"
,
"field23"
,
"field28"
,
"field3"
,
"field300"
};
private
static
readonly
uint
[]
_speedMessage1SubMessageFieldTags
=
new
uint
[]
{
8
,
96
,
104
,
112
,
122
,
128
,
152
,
16
,
160
,
1629
,
1632
,
1642
,
1648
,
1656
,
169
,
176
,
184
,
224
,
24
,
2400
};
...
...
@@ -3104,6 +3106,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SpeedMessage2
:
pb
::
GeneratedMessage
<
SpeedMessage2
,
SpeedMessage2
.
Builder
>
{
private
SpeedMessage2
()
{
}
private
static
readonly
SpeedMessage2
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_speedMessage2FieldNames
=
new
string
[]
{
"field1"
,
"field109"
,
"field127"
,
"field128"
,
"field129"
,
"field130"
,
"field131"
,
"field2"
,
"field205"
,
"field206"
,
"field21"
,
"field210"
,
"field211"
,
"field212"
,
"field213"
,
"field216"
,
"field217"
,
"field218"
,
"field220"
,
"field221"
,
"field222"
,
"field25"
,
"field3"
,
"field30"
,
"field4"
,
"field6"
,
"field63"
,
"field71"
,
"field75"
,
"group1"
};
private
static
readonly
uint
[]
_speedMessage2FieldTags
=
new
uint
[]
{
10
,
872
,
1018
,
1026
,
1032
,
1040
,
1048
,
18
,
1640
,
1648
,
168
,
1680
,
1688
,
1696
,
1704
,
1728
,
1736
,
1744
,
1760
,
1768
,
1781
,
205
,
24
,
240
,
32
,
50
,
504
,
568
,
600
,
83
};
...
...
@@ -3136,6 +3139,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Group1
:
pb
::
GeneratedMessage
<
Group1
,
Group1
.
Builder
>
{
private
Group1
()
{
}
private
static
readonly
Group1
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_group1FieldNames
=
new
string
[]
{
"field11"
,
"field12"
,
"field13"
,
"field14"
,
"field15"
,
"field16"
,
"field20"
,
"field22"
,
"field24"
,
"field26"
,
"field27"
,
"field28"
,
"field29"
,
"field31"
,
"field5"
,
"field73"
};
private
static
readonly
uint
[]
_group1FieldTags
=
new
uint
[]
{
93
,
98
,
106
,
114
,
120
,
130
,
160
,
178
,
194
,
213
,
218
,
224
,
234
,
250
,
40
,
584
};
...
...
@@ -5560,6 +5564,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SpeedMessage2GroupedMessage
:
pb
::
GeneratedMessage
<
SpeedMessage2GroupedMessage
,
SpeedMessage2GroupedMessage
.
Builder
>
{
private
SpeedMessage2GroupedMessage
()
{
}
private
static
readonly
SpeedMessage2GroupedMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_speedMessage2GroupedMessageFieldNames
=
new
string
[]
{
"field1"
,
"field10"
,
"field11"
,
"field2"
,
"field3"
,
"field4"
,
"field5"
,
"field6"
,
"field7"
,
"field8"
,
"field9"
};
private
static
readonly
uint
[]
_speedMessage2GroupedMessageFieldTags
=
new
uint
[]
{
13
,
85
,
88
,
21
,
29
,
32
,
40
,
48
,
56
,
69
,
72
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestImportLiteProtoFile.cs
View file @
17fb8f22
...
...
@@ -43,6 +43,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
ImportMessageLite
:
pb
::
GeneratedMessageLite
<
ImportMessageLite
,
ImportMessageLite
.
Builder
>
{
private
ImportMessageLite
()
{
}
private
static
readonly
ImportMessageLite
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_importMessageLiteFieldNames
=
new
string
[]
{
"d"
};
private
static
readonly
uint
[]
_importMessageLiteFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
View file @
17fb8f22
...
...
@@ -71,6 +71,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
ImportMessage
:
pb
::
GeneratedMessage
<
ImportMessage
,
ImportMessage
.
Builder
>
{
private
ImportMessage
()
{
}
private
static
readonly
ImportMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_importMessageFieldNames
=
new
string
[]
{
"d"
};
private
static
readonly
uint
[]
_importMessageFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
View file @
17fb8f22
...
...
@@ -103,6 +103,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMessageSet
:
pb
::
ExtendableMessage
<
TestMessageSet
,
TestMessageSet
.
Builder
>
{
private
TestMessageSet
()
{
}
private
static
readonly
TestMessageSet
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testMessageSetFieldNames
=
new
string
[]
{
};
private
static
readonly
uint
[]
_testMessageSetFieldTags
=
new
uint
[]
{
};
...
...
@@ -306,6 +307,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMessageSetContainer
:
pb
::
GeneratedMessage
<
TestMessageSetContainer
,
TestMessageSetContainer
.
Builder
>
{
private
TestMessageSetContainer
()
{
}
private
static
readonly
TestMessageSetContainer
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testMessageSetContainerFieldNames
=
new
string
[]
{
"message_set"
};
private
static
readonly
uint
[]
_testMessageSetContainerFieldTags
=
new
uint
[]
{
10
};
...
...
@@ -568,6 +570,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMessageSetExtension1
:
pb
::
GeneratedMessage
<
TestMessageSetExtension1
,
TestMessageSetExtension1
.
Builder
>
{
private
TestMessageSetExtension1
()
{
}
private
static
readonly
TestMessageSetExtension1
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testMessageSetExtension1FieldNames
=
new
string
[]
{
"i"
};
private
static
readonly
uint
[]
_testMessageSetExtension1FieldTags
=
new
uint
[]
{
120
};
...
...
@@ -809,6 +812,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMessageSetExtension2
:
pb
::
GeneratedMessage
<
TestMessageSetExtension2
,
TestMessageSetExtension2
.
Builder
>
{
private
TestMessageSetExtension2
()
{
}
private
static
readonly
TestMessageSetExtension2
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testMessageSetExtension2FieldNames
=
new
string
[]
{
"str"
};
private
static
readonly
uint
[]
_testMessageSetExtension2FieldTags
=
new
uint
[]
{
202
};
...
...
@@ -1051,6 +1055,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
RawMessageSet
:
pb
::
GeneratedMessage
<
RawMessageSet
,
RawMessageSet
.
Builder
>
{
private
RawMessageSet
()
{
}
private
static
readonly
RawMessageSet
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_rawMessageSetFieldNames
=
new
string
[]
{
"item"
};
private
static
readonly
uint
[]
_rawMessageSetFieldTags
=
new
uint
[]
{
11
};
...
...
@@ -1083,6 +1088,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Item
:
pb
::
GeneratedMessage
<
Item
,
Item
.
Builder
>
{
private
Item
()
{
}
private
static
readonly
Item
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_itemFieldNames
=
new
string
[]
{
"message"
,
"type_id"
};
private
static
readonly
uint
[]
_itemFieldTags
=
new
uint
[]
{
26
,
16
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestNoGenericServicesProtoFile.cs
View file @
17fb8f22
...
...
@@ -81,6 +81,7 @@ namespace Google.ProtocolBuffers.TestProtos.NoGenericService {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMessage
:
pb
::
ExtendableMessage
<
TestMessage
,
TestMessage
.
Builder
>
{
private
TestMessage
()
{
}
private
static
readonly
TestMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testMessageFieldNames
=
new
string
[]
{
"a"
};
private
static
readonly
uint
[]
_testMessageFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
View file @
17fb8f22
...
...
@@ -85,6 +85,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestOptimizedForSize
:
pb
::
ExtendableMessage
<
TestOptimizedForSize
,
TestOptimizedForSize
.
Builder
>
{
private
TestOptimizedForSize
()
{
}
private
static
readonly
TestOptimizedForSize
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestOptimizedForSize
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -272,6 +273,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestRequiredOptimizedForSize
:
pb
::
GeneratedMessage
<
TestRequiredOptimizedForSize
,
TestRequiredOptimizedForSize
.
Builder
>
{
private
TestRequiredOptimizedForSize
()
{
}
private
static
readonly
TestRequiredOptimizedForSize
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestRequiredOptimizedForSize
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -409,6 +411,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestOptionalOptimizedForSize
:
pb
::
GeneratedMessage
<
TestOptionalOptimizedForSize
,
TestOptionalOptimizedForSize
.
Builder
>
{
private
TestOptionalOptimizedForSize
()
{
}
private
static
readonly
TestOptionalOptimizedForSize
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestOptionalOptimizedForSize
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
View file @
17fb8f22
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers.Test/TestProtos/UnitTestRpcInterop.cs
View file @
17fb8f22
...
...
@@ -83,6 +83,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SearchRequest
:
pb
::
GeneratedMessage
<
SearchRequest
,
SearchRequest
.
Builder
>
{
private
SearchRequest
()
{
}
private
static
readonly
SearchRequest
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_searchRequestFieldNames
=
new
string
[]
{
"Criteria"
};
private
static
readonly
uint
[]
_searchRequestFieldTags
=
new
uint
[]
{
10
};
...
...
@@ -340,6 +341,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SearchResponse
:
pb
::
GeneratedMessage
<
SearchResponse
,
SearchResponse
.
Builder
>
{
private
SearchResponse
()
{
}
private
static
readonly
SearchResponse
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_searchResponseFieldNames
=
new
string
[]
{
"results"
};
private
static
readonly
uint
[]
_searchResponseFieldTags
=
new
uint
[]
{
10
};
...
...
@@ -372,6 +374,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
ResultItem
:
pb
::
GeneratedMessage
<
ResultItem
,
ResultItem
.
Builder
>
{
private
ResultItem
()
{
}
private
static
readonly
ResultItem
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_resultItemFieldNames
=
new
string
[]
{
"name"
,
"url"
};
private
static
readonly
uint
[]
_resultItemFieldTags
=
new
uint
[]
{
18
,
10
};
...
...
@@ -896,6 +899,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
RefineSearchRequest
:
pb
::
GeneratedMessage
<
RefineSearchRequest
,
RefineSearchRequest
.
Builder
>
{
private
RefineSearchRequest
()
{
}
private
static
readonly
RefineSearchRequest
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_refineSearchRequestFieldNames
=
new
string
[]
{
"Criteria"
,
"previous_results"
};
private
static
readonly
uint
[]
_refineSearchRequestFieldTags
=
new
uint
[]
{
10
,
18
};
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestXmlSerializerTestProtoFile.cs
View file @
17fb8f22
...
...
@@ -139,6 +139,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestXmlChild
:
pb
::
GeneratedMessage
<
TestXmlChild
,
TestXmlChild
.
Builder
>
{
private
TestXmlChild
()
{
}
private
static
readonly
TestXmlChild
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testXmlChildFieldNames
=
new
string
[]
{
"binary"
,
"options"
};
private
static
readonly
uint
[]
_testXmlChildFieldTags
=
new
uint
[]
{
34
,
24
};
...
...
@@ -450,6 +451,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestXmlNoFields
:
pb
::
GeneratedMessage
<
TestXmlNoFields
,
TestXmlNoFields
.
Builder
>
{
private
TestXmlNoFields
()
{
}
private
static
readonly
TestXmlNoFields
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testXmlNoFieldsFieldNames
=
new
string
[]
{
};
private
static
readonly
uint
[]
_testXmlNoFieldsFieldTags
=
new
uint
[]
{
};
...
...
@@ -650,6 +652,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestXmlRescursive
:
pb
::
GeneratedMessage
<
TestXmlRescursive
,
TestXmlRescursive
.
Builder
>
{
private
TestXmlRescursive
()
{
}
private
static
readonly
TestXmlRescursive
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testXmlRescursiveFieldNames
=
new
string
[]
{
"child"
};
private
static
readonly
uint
[]
_testXmlRescursiveFieldTags
=
new
uint
[]
{
10
};
...
...
@@ -914,6 +917,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestXmlMessage
:
pb
::
ExtendableMessage
<
TestXmlMessage
,
TestXmlMessage
.
Builder
>
{
private
TestXmlMessage
()
{
}
private
static
readonly
TestXmlMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testXmlMessageFieldNames
=
new
string
[]
{
"child"
,
"children"
,
"number"
,
"numbers"
,
"text"
,
"textlines"
,
"valid"
};
private
static
readonly
uint
[]
_testXmlMessageFieldTags
=
new
uint
[]
{
10
,
3211
,
48
,
16
,
26
,
5602
,
40
};
...
...
@@ -947,6 +951,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Children
:
pb
::
GeneratedMessage
<
Children
,
Children
.
Builder
>
{
private
Children
()
{
}
private
static
readonly
Children
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_childrenFieldNames
=
new
string
[]
{
"binary"
,
"options"
};
private
static
readonly
uint
[]
_childrenFieldTags
=
new
uint
[]
{
34
,
24
};
...
...
@@ -1807,6 +1812,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestXmlExtension
:
pb
::
GeneratedMessage
<
TestXmlExtension
,
TestXmlExtension
.
Builder
>
{
private
TestXmlExtension
()
{
}
private
static
readonly
TestXmlExtension
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testXmlExtensionFieldNames
=
new
string
[]
{
"number"
};
private
static
readonly
uint
[]
_testXmlExtensionFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
View file @
17fb8f22
...
...
@@ -126,6 +126,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
CSharpFileOptions
:
pb
::
GeneratedMessage
<
CSharpFileOptions
,
CSharpFileOptions
.
Builder
>
{
private
CSharpFileOptions
()
{
}
private
static
readonly
CSharpFileOptions
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_cSharpFileOptionsFieldNames
=
new
string
[]
{
"add_serializable"
,
"cls_compliance"
,
"code_contracts"
,
"expand_namespace_directories"
,
"file_extension"
,
"ignore_google_protobuf"
,
"multiple_files"
,
"namespace"
,
"nest_classes"
,
"output_directory"
,
"public_classes"
,
"service_generator_type"
,
"umbrella_classname"
,
"umbrella_namespace"
};
private
static
readonly
uint
[]
_cSharpFileOptionsFieldTags
=
new
uint
[]
{
72
,
64
,
48
,
56
,
1770
,
1792
,
32
,
10
,
40
,
1786
,
24
,
1800
,
18
,
1778
};
...
...
@@ -911,6 +912,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
CSharpFieldOptions
:
pb
::
GeneratedMessage
<
CSharpFieldOptions
,
CSharpFieldOptions
.
Builder
>
{
private
CSharpFieldOptions
()
{
}
private
static
readonly
CSharpFieldOptions
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_cSharpFieldOptionsFieldNames
=
new
string
[]
{
"property_name"
};
private
static
readonly
uint
[]
_cSharpFieldOptionsFieldTags
=
new
uint
[]
{
10
};
...
...
@@ -1151,6 +1153,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
CSharpServiceOptions
:
pb
::
GeneratedMessage
<
CSharpServiceOptions
,
CSharpServiceOptions
.
Builder
>
{
private
CSharpServiceOptions
()
{
}
private
static
readonly
CSharpServiceOptions
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_cSharpServiceOptionsFieldNames
=
new
string
[]
{
"interface_id"
};
private
static
readonly
uint
[]
_cSharpServiceOptionsFieldTags
=
new
uint
[]
{
10
};
...
...
@@ -1391,6 +1394,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
CSharpMethodOptions
:
pb
::
GeneratedMessage
<
CSharpMethodOptions
,
CSharpMethodOptions
.
Builder
>
{
private
CSharpMethodOptions
()
{
}
private
static
readonly
CSharpMethodOptions
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_cSharpMethodOptionsFieldNames
=
new
string
[]
{
"dispatch_id"
};
private
static
readonly
uint
[]
_cSharpMethodOptionsFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
View file @
17fb8f22
This diff is collapsed.
Click to expand it.
src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasFullProtoFile.cs
View file @
17fb8f22
...
...
@@ -128,6 +128,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestInteropPerson
:
pb
::
ExtendableMessage
<
TestInteropPerson
,
TestInteropPerson
.
Builder
>
{
private
TestInteropPerson
()
{
}
private
static
readonly
TestInteropPerson
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestInteropPerson
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -166,6 +167,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
PhoneNumber
:
pb
::
GeneratedMessage
<
PhoneNumber
,
PhoneNumber
.
Builder
>
{
private
PhoneNumber
()
{
}
private
static
readonly
PhoneNumber
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
PhoneNumber
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -332,6 +334,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Addresses
:
pb
::
GeneratedMessage
<
Addresses
,
Addresses
.
Builder
>
{
private
Addresses
()
{
}
private
static
readonly
Addresses
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
Addresses
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -902,6 +905,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestInteropEmployeeId
:
pb
::
GeneratedMessage
<
TestInteropEmployeeId
,
TestInteropEmployeeId
.
Builder
>
{
private
TestInteropEmployeeId
()
{
}
private
static
readonly
TestInteropEmployeeId
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestInteropEmployeeId
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -1040,6 +1044,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMissingFieldsA
:
pb
::
GeneratedMessage
<
TestMissingFieldsA
,
TestMissingFieldsA
.
Builder
>
{
private
TestMissingFieldsA
()
{
}
private
static
readonly
TestMissingFieldsA
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestMissingFieldsA
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -1070,6 +1075,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SubA
:
pb
::
GeneratedMessage
<
SubA
,
SubA
.
Builder
>
{
private
SubA
()
{
}
private
static
readonly
SubA
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
SubA
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -1467,6 +1473,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestMissingFieldsB
:
pb
::
GeneratedMessage
<
TestMissingFieldsB
,
TestMissingFieldsB
.
Builder
>
{
private
TestMissingFieldsB
()
{
}
private
static
readonly
TestMissingFieldsB
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
TestMissingFieldsB
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
@@ -1497,6 +1504,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
SubB
:
pb
::
GeneratedMessage
<
SubB
,
SubB
.
Builder
>
{
private
SubB
()
{
}
private
static
readonly
SubB
defaultInstance
=
new
Builder
().
BuildPartial
();
public
static
SubB
DefaultInstance
{
get
{
return
defaultInstance
;
}
...
...
src/ProtocolBuffersLite.Test/TestProtos/UnitTestExtrasLiteProtoFile.cs
View file @
17fb8f22
...
...
@@ -60,6 +60,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestRequiredLite
:
pb
::
GeneratedMessageLite
<
TestRequiredLite
,
TestRequiredLite
.
Builder
>
{
private
TestRequiredLite
()
{
}
private
static
readonly
TestRequiredLite
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testRequiredLiteFieldNames
=
new
string
[]
{
"d"
,
"en"
};
private
static
readonly
uint
[]
_testRequiredLiteFieldTags
=
new
uint
[]
{
8
,
16
};
...
...
@@ -342,6 +343,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestInteropPersonLite
:
pb
::
ExtendableMessageLite
<
TestInteropPersonLite
,
TestInteropPersonLite
.
Builder
>
{
private
TestInteropPersonLite
()
{
}
private
static
readonly
TestInteropPersonLite
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testInteropPersonLiteFieldNames
=
new
string
[]
{
"addresses"
,
"codes"
,
"email"
,
"id"
,
"name"
,
"phone"
};
private
static
readonly
uint
[]
_testInteropPersonLiteFieldTags
=
new
uint
[]
{
43
,
82
,
26
,
16
,
10
,
34
};
...
...
@@ -375,6 +377,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
PhoneNumber
:
pb
::
GeneratedMessageLite
<
PhoneNumber
,
PhoneNumber
.
Builder
>
{
private
PhoneNumber
()
{
}
private
static
readonly
PhoneNumber
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_phoneNumberFieldNames
=
new
string
[]
{
"number"
,
"type"
};
private
static
readonly
uint
[]
_phoneNumberFieldTags
=
new
uint
[]
{
10
,
16
};
...
...
@@ -657,6 +660,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
Addresses
:
pb
::
GeneratedMessageLite
<
Addresses
,
Addresses
.
Builder
>
{
private
Addresses
()
{
}
private
static
readonly
Addresses
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_addressesFieldNames
=
new
string
[]
{
"address"
,
"address2"
,
"city"
,
"state"
,
"zip"
};
private
static
readonly
uint
[]
_addressesFieldTags
=
new
uint
[]
{
10
,
18
,
26
,
34
,
45
};
...
...
@@ -1602,6 +1606,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestInteropEmployeeIdLite
:
pb
::
GeneratedMessageLite
<
TestInteropEmployeeIdLite
,
TestInteropEmployeeIdLite
.
Builder
>
{
private
TestInteropEmployeeIdLite
()
{
}
private
static
readonly
TestInteropEmployeeIdLite
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testInteropEmployeeIdLiteFieldNames
=
new
string
[]
{
"number"
};
private
static
readonly
uint
[]
_testInteropEmployeeIdLiteFieldTags
=
new
uint
[]
{
10
};
...
...
src/ProtocolBuffersLite.Test/TestProtos/UnitTestImportLiteProtoFile.cs
View file @
17fb8f22
...
...
@@ -43,6 +43,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
ImportMessageLite
:
pb
::
GeneratedMessageLite
<
ImportMessageLite
,
ImportMessageLite
.
Builder
>
{
private
ImportMessageLite
()
{
}
private
static
readonly
ImportMessageLite
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_importMessageLiteFieldNames
=
new
string
[]
{
"d"
};
private
static
readonly
uint
[]
_importMessageLiteFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffersLite.Test/TestProtos/UnitTestImportProtoFile.cs
View file @
17fb8f22
...
...
@@ -71,6 +71,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
ImportMessage
:
pb
::
GeneratedMessage
<
ImportMessage
,
ImportMessage
.
Builder
>
{
private
ImportMessage
()
{
}
private
static
readonly
ImportMessage
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_importMessageFieldNames
=
new
string
[]
{
"d"
};
private
static
readonly
uint
[]
_importMessageFieldTags
=
new
uint
[]
{
8
};
...
...
src/ProtocolBuffersLite.Test/TestProtos/UnitTestLiteImportNonLiteProtoFile.cs
View file @
17fb8f22
...
...
@@ -32,6 +32,7 @@ namespace Google.ProtocolBuffers.TestProtos {
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"ProtoGen"
,
"2.3.0.277"
)]
public
sealed
partial
class
TestLiteImportsNonlite
:
pb
::
GeneratedMessageLite
<
TestLiteImportsNonlite
,
TestLiteImportsNonlite
.
Builder
>
{
private
TestLiteImportsNonlite
()
{
}
private
static
readonly
TestLiteImportsNonlite
defaultInstance
=
new
Builder
().
BuildPartial
();
private
static
readonly
string
[]
_testLiteImportsNonliteFieldNames
=
new
string
[]
{
"message"
};
private
static
readonly
uint
[]
_testLiteImportsNonliteFieldTags
=
new
uint
[]
{
10
};
...
...
src/ProtocolBuffersLite.Test/TestProtos/UnitTestLiteProtoFile.cs
View file @
17fb8f22
This diff is collapsed.
Click to expand it.
src/ProtocolBuffersLite.Test/TestProtos/UnitTestProtoFile.cs
View file @
17fb8f22
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment