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
47bf49b9
Commit
47bf49b9
authored
Jul 22, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generated code for previous commit.
parent
4668c3dc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
60 additions
and
119 deletions
+60
-119
Addressbook.cs
csharp/src/AddressBook/Addressbook.cs
+5
-15
MapUnittestProto3.cs
.../src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+0
-0
UnittestImportProto3.cs
...c/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
+4
-5
UnittestImportPublicProto3.cs
...le.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
+4
-5
UnittestIssues.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+0
-0
UnittestProto3.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+0
-0
UnittestWellKnownTypes.cs
...Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+0
-0
Any.cs
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
+4
-6
Api.cs
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
+5
-17
Duration.cs
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
+4
-6
Empty.cs
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
+4
-4
FieldMask.cs
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
+4
-5
SourceContext.cs
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
+4
-5
Struct.cs
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
+6
-16
Timestamp.cs
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
+4
-6
Type.cs
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
+0
-0
Wrappers.cs
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
+12
-29
No files found.
csharp/src/AddressBook/Addressbook.cs
View file @
47bf49b9
...
...
@@ -29,10 +29,13 @@ namespace Google.Protobuf.Examples.AddressBook {
"EggKBEhPTUUQARIICgRXT1JLEAIiLwoLQWRkcmVzc0Jvb2sSIAoGcGVvcGxl"
,
"GAEgAygLMhAudHV0b3JpYWwuUGVyc29uQlAKFGNvbS5leGFtcGxlLnR1dG9y"
,
"aWFsQhFBZGRyZXNzQm9va1Byb3Rvc6oCJEdvb2dsZS5Qcm90b2J1Zi5FeGFt"
,
"cGxlcy5BZGRyZXNzQm9va2IGcHJvdG8z"
));
"cGxlcy5BZGRyZXNzQm9va2IGcHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
),
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
),
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
),
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
AddressBook
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
),
new
[]{
"Name"
,
"Id"
,
"Email"
,
"Phones"
},
null
,
new
[]{
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
)
},
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
),
new
[]{
"Number"
,
"Type"
},
null
,
null
,
null
)}),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
AddressBook
),
new
[]{
"People"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -43,8 +46,6 @@ namespace Google.Protobuf.Examples.AddressBook {
private
static
readonly
pb
::
MessageParser
<
Person
>
_parser
=
new
pb
::
MessageParser
<
Person
>(()
=>
new
Person
());
public
static
pb
::
MessageParser
<
Person
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"email"
,
"id"
,
"name"
,
"phones"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
26
,
16
,
10
,
34
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Addressbook
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -83,7 +84,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"name"
)]
public
string
Name
{
get
{
return
name_
;
}
set
{
...
...
@@ -94,7 +94,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
const
int
IdFieldNumber
=
2
;
private
int
id_
;
[
pbr
::
ProtobufField
(
2
,
"id"
)]
public
int
Id
{
get
{
return
id_
;
}
set
{
...
...
@@ -105,7 +104,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
const
int
EmailFieldNumber
=
3
;
private
string
email_
=
""
;
[
pbr
::
ProtobufField
(
3
,
"email"
)]
public
string
Email
{
get
{
return
email_
;
}
set
{
...
...
@@ -118,7 +116,6 @@ namespace Google.Protobuf.Examples.AddressBook {
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
>
_repeated_phones_codec
=
pb
::
FieldCodec
.
ForMessage
(
34
,
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
>
phones_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
>();
[
pbr
::
ProtobufField
(
4
,
"phones"
)]
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneNumber
>
Phones
{
get
{
return
phones_
;
}
}
...
...
@@ -246,8 +243,6 @@ namespace Google.Protobuf.Examples.AddressBook {
private
static
readonly
pb
::
MessageParser
<
PhoneNumber
>
_parser
=
new
pb
::
MessageParser
<
PhoneNumber
>(()
=>
new
PhoneNumber
());
public
static
pb
::
MessageParser
<
PhoneNumber
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"number"
,
"type"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
,
16
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Descriptor
.
NestedTypes
[
0
];
}
}
...
...
@@ -283,7 +278,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
const
int
NumberFieldNumber
=
1
;
private
string
number_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"number"
)]
public
string
Number
{
get
{
return
number_
;
}
set
{
...
...
@@ -294,7 +288,6 @@ namespace Google.Protobuf.Examples.AddressBook {
public
const
int
TypeFieldNumber
=
2
;
private
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
type_
=
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
.
MOBILE
;
[
pbr
::
ProtobufField
(
2
,
"type"
)]
public
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Types
.
PhoneType
Type
{
get
{
return
type_
;
}
set
{
...
...
@@ -399,8 +392,6 @@ namespace Google.Protobuf.Examples.AddressBook {
private
static
readonly
pb
::
MessageParser
<
AddressBook
>
_parser
=
new
pb
::
MessageParser
<
AddressBook
>(()
=>
new
AddressBook
());
public
static
pb
::
MessageParser
<
AddressBook
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"people"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Addressbook
.
Descriptor
.
MessageTypes
[
1
];
}
}
...
...
@@ -438,7 +429,6 @@ namespace Google.Protobuf.Examples.AddressBook {
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
>
_repeated_people_codec
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
>
people_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
>();
[
pbr
::
ProtobufField
(
1
,
"people"
)]
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
Examples
.
AddressBook
.
Person
>
People
{
get
{
return
people_
;
}
}
...
...
csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
View file @
47bf49b9
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
View file @
47bf49b9
...
...
@@ -28,10 +28,12 @@ namespace Google.Protobuf.TestProtos {
"VU1fVU5TUEVDSUZJRUQQABIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JB"
,
"UhAIEg4KCklNUE9SVF9CQVoQCUI8Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRl"
,
"c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv"
,
"Mw=="
));
"Mw=="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestImportPublicProto3
.
Descriptor
,
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportMessage
),
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportEnum
),
});
new
pbr
::
GeneratedCodeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportEnum
),
},
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportMessage
),
new
[]{
"D"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -52,8 +54,6 @@ namespace Google.Protobuf.TestProtos {
private
static
readonly
pb
::
MessageParser
<
ImportMessage
>
_parser
=
new
pb
::
MessageParser
<
ImportMessage
>(()
=>
new
ImportMessage
());
public
static
pb
::
MessageParser
<
ImportMessage
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"d"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestImportProto3
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -88,7 +88,6 @@ namespace Google.Protobuf.TestProtos {
public
const
int
DFieldNumber
=
1
;
private
int
d_
;
[
pbr
::
ProtobufField
(
1
,
"d"
)]
public
int
D
{
get
{
return
d_
;
}
set
{
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
View file @
47bf49b9
...
...
@@ -24,10 +24,12 @@ namespace Google.Protobuf.TestProtos {
"CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90"
,
"bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ"
,
"bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1"
,
"Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="
));
"Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
PublicImportMessage
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
PublicImportMessage
),
new
[]{
"E"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -38,8 +40,6 @@ namespace Google.Protobuf.TestProtos {
private
static
readonly
pb
::
MessageParser
<
PublicImportMessage
>
_parser
=
new
pb
::
MessageParser
<
PublicImportMessage
>(()
=>
new
PublicImportMessage
());
public
static
pb
::
MessageParser
<
PublicImportMessage
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"e"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestImportPublicProto3
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -74,7 +74,6 @@ namespace Google.Protobuf.TestProtos {
public
const
int
EFieldNumber
=
1
;
private
int
e_
;
[
pbr
::
ProtobufField
(
1
,
"e"
)]
public
int
E
{
get
{
return
e_
;
}
set
{
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
View file @
47bf49b9
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
View file @
47bf49b9
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
View file @
47bf49b9
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
View file @
47bf49b9
...
...
@@ -26,10 +26,12 @@ namespace Google.Protobuf.WellKnownTypes {
"Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYi"
,
"JgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQksKE2Nv"
,
"bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAGgAQGiAgNHUEKqAh5Hb29n"
,
"bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
"bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
),
new
[]{
"TypeUrl"
,
"Value"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -41,8 +43,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Any
>
_parser
=
new
pb
::
MessageParser
<
Any
>(()
=>
new
Any
());
public
static
pb
::
MessageParser
<
Any
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"type_url"
,
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
,
18
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Any
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -78,7 +78,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
TypeUrlFieldNumber
=
1
;
private
string
typeUrl_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"type_url"
)]
public
string
TypeUrl
{
get
{
return
typeUrl_
;
}
set
{
...
...
@@ -89,7 +88,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
2
;
private
pb
::
ByteString
value_
=
pb
::
ByteString
.
Empty
;
[
pbr
::
ProtobufField
(
2
,
"value"
)]
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
set
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
View file @
47bf49b9
...
...
@@ -35,10 +35,13 @@ namespace Google.Protobuf.WellKnownTypes {
"ZV9zdHJlYW1pbmcYBSABKAgSKAoHb3B0aW9ucxgGIAMoCzIXLmdvb2dsZS5w"
,
"cm90b2J1Zi5PcHRpb25CSAoTY29tLmdvb2dsZS5wcm90b2J1ZkIIQXBpUHJv"
,
"dG9QAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG"
,
"cHJvdG8z"
));
"cHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
SourceContext
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Type
.
Descriptor
,
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
),
new
[]{
"Name"
,
"Methods"
,
"Options"
,
"Version"
,
"SourceContext"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
),
new
[]{
"Name"
,
"RequestTypeUrl"
,
"RequestStreaming"
,
"ResponseTypeUrl"
,
"ResponseStreaming"
,
"Options"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -50,8 +53,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Api
>
_parser
=
new
pb
::
MessageParser
<
Api
>(()
=>
new
Api
());
public
static
pb
::
MessageParser
<
Api
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"methods"
,
"name"
,
"options"
,
"source_context"
,
"version"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
18
,
10
,
26
,
42
,
34
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Api
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -93,7 +94,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"name"
)]
public
string
Name
{
get
{
return
name_
;
}
set
{
...
...
@@ -106,7 +106,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
>
_repeated_methods_codec
=
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
>
methods_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
>();
[
pbr
::
ProtobufField
(
2
,
"methods"
)]
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Method
>
Methods
{
get
{
return
methods_
;
}
}
...
...
@@ -115,14 +114,12 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>
_repeated_options_codec
=
pb
::
FieldCodec
.
ForMessage
(
26
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>
options_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>();
[
pbr
::
ProtobufField
(
3
,
"options"
)]
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>
Options
{
get
{
return
options_
;
}
}
public
const
int
VersionFieldNumber
=
4
;
private
string
version_
=
""
;
[
pbr
::
ProtobufField
(
4
,
"version"
)]
public
string
Version
{
get
{
return
version_
;
}
set
{
...
...
@@ -133,7 +130,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
SourceContextFieldNumber
=
5
;
private
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
sourceContext_
;
[
pbr
::
ProtobufField
(
5
,
"source_context"
)]
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
SourceContext
{
get
{
return
sourceContext_
;
}
set
{
...
...
@@ -273,8 +269,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Method
>
_parser
=
new
pb
::
MessageParser
<
Method
>(()
=>
new
Method
());
public
static
pb
::
MessageParser
<
Method
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"name"
,
"options"
,
"request_streaming"
,
"request_type_url"
,
"response_streaming"
,
"response_type_url"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
,
50
,
24
,
18
,
40
,
34
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Api
.
Descriptor
.
MessageTypes
[
1
];
}
}
...
...
@@ -315,7 +309,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
NameFieldNumber
=
1
;
private
string
name_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"name"
)]
public
string
Name
{
get
{
return
name_
;
}
set
{
...
...
@@ -326,7 +319,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
RequestTypeUrlFieldNumber
=
2
;
private
string
requestTypeUrl_
=
""
;
[
pbr
::
ProtobufField
(
2
,
"request_type_url"
)]
public
string
RequestTypeUrl
{
get
{
return
requestTypeUrl_
;
}
set
{
...
...
@@ -337,7 +329,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
RequestStreamingFieldNumber
=
3
;
private
bool
requestStreaming_
;
[
pbr
::
ProtobufField
(
3
,
"request_streaming"
)]
public
bool
RequestStreaming
{
get
{
return
requestStreaming_
;
}
set
{
...
...
@@ -348,7 +339,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ResponseTypeUrlFieldNumber
=
4
;
private
string
responseTypeUrl_
=
""
;
[
pbr
::
ProtobufField
(
4
,
"response_type_url"
)]
public
string
ResponseTypeUrl
{
get
{
return
responseTypeUrl_
;
}
set
{
...
...
@@ -359,7 +349,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ResponseStreamingFieldNumber
=
5
;
private
bool
responseStreaming_
;
[
pbr
::
ProtobufField
(
5
,
"response_streaming"
)]
public
bool
ResponseStreaming
{
get
{
return
responseStreaming_
;
}
set
{
...
...
@@ -372,7 +361,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>
_repeated_options_codec
=
pb
::
FieldCodec
.
ForMessage
(
50
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>
options_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>();
[
pbr
::
ProtobufField
(
6
,
"options"
)]
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Option
>
Options
{
get
{
return
options_
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
View file @
47bf49b9
...
...
@@ -27,10 +27,12 @@ namespace Google.Protobuf.WellKnownTypes {
"b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIg"
,
"ASgFQlAKE2NvbS5nb29nbGUucHJvdG9idWZCDUR1cmF0aW9uUHJvdG9QAaAB"
,
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv"
,
"dG8z"
));
"dG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
),
new
[]{
"Seconds"
,
"Nanos"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -42,8 +44,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Duration
>
_parser
=
new
pb
::
MessageParser
<
Duration
>(()
=>
new
Duration
());
public
static
pb
::
MessageParser
<
Duration
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"nanos"
,
"seconds"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
16
,
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Duration
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -79,7 +79,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
SecondsFieldNumber
=
1
;
private
long
seconds_
;
[
pbr
::
ProtobufField
(
1
,
"seconds"
)]
public
long
Seconds
{
get
{
return
seconds_
;
}
set
{
...
...
@@ -90,7 +89,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
NanosFieldNumber
=
2
;
private
int
nanos_
;
[
pbr
::
ProtobufField
(
2
,
"nanos"
)]
public
int
Nanos
{
get
{
return
nanos_
;
}
set
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
View file @
47bf49b9
...
...
@@ -26,10 +26,12 @@ namespace Google.Protobuf.WellKnownTypes {
"Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1"
,
"ZiIHCgVFbXB0eUJKChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv"
,
"UAGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy"
,
"b3RvMw=="
));
"b3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
),
null
,
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -41,8 +43,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Empty
>
_parser
=
new
pb
::
MessageParser
<
Empty
>(()
=>
new
Empty
());
public
static
pb
::
MessageParser
<
Empty
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Empty
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
View file @
47bf49b9
...
...
@@ -26,10 +26,12 @@ namespace Google.Protobuf.WellKnownTypes {
"CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnBy"
,
"b3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUJOChNjb20uZ29v"
,
"Z2xlLnByb3RvYnVmQg5GaWVsZE1hc2tQcm90b1ABogIDR1BCqgIeR29vZ2xl"
,
"LlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="
));
"LlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
),
new
[]{
"Paths"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -41,8 +43,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
FieldMask
>
_parser
=
new
pb
::
MessageParser
<
FieldMask
>(()
=>
new
FieldMask
());
public
static
pb
::
MessageParser
<
FieldMask
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"paths"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
FieldMask
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -80,7 +80,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
FieldCodec
<
string
>
_repeated_paths_codec
=
pb
::
FieldCodec
.
ForString
(
10
);
private
readonly
pbc
::
RepeatedField
<
string
>
paths_
=
new
pbc
::
RepeatedField
<
string
>();
[
pbr
::
ProtobufField
(
1
,
"paths"
)]
public
pbc
::
RepeatedField
<
string
>
Paths
{
get
{
return
paths_
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
View file @
47bf49b9
...
...
@@ -27,10 +27,12 @@ namespace Google.Protobuf.WellKnownTypes {
"ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo"
,
"CUJSChNjb20uZ29vZ2xlLnByb3RvYnVmQhJTb3VyY2VDb250ZXh0UHJvdG9Q"
,
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv"
,
"dG8z"
));
"dG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
),
new
[]{
"FileName"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -42,8 +44,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
SourceContext
>
_parser
=
new
pb
::
MessageParser
<
SourceContext
>(()
=>
new
SourceContext
());
public
static
pb
::
MessageParser
<
SourceContext
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"file_name"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
SourceContext
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -78,7 +78,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
FileNameFieldNumber
=
1
;
private
string
fileName_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"file_name"
)]
public
string
FileName
{
get
{
return
fileName_
;
}
set
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
View file @
47bf49b9
...
...
@@ -36,10 +36,14 @@ namespace Google.Protobuf.WellKnownTypes {
"Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W"
,
"QUxVRRAAQk4KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAGg"
,
"AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy"
,
"b3RvMw=="
));
"b3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
),
null
,
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
),
});
new
pbr
::
GeneratedCodeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
),
},
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
),
new
[]{
"Fields"
},
null
,
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
null
,
}),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
),
new
[]{
"NullValue"
,
"NumberValue"
,
"StringValue"
,
"BoolValue"
,
"StructValue"
,
"ListValue"
},
new
[]{
"Kind"
},
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
),
new
[]{
"Values"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -58,8 +62,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Struct
>
_parser
=
new
pb
::
MessageParser
<
Struct
>(()
=>
new
Struct
());
public
static
pb
::
MessageParser
<
Struct
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"fields"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Struct
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -97,7 +99,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>.
Codec
_map_fields_codec
=
new
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>.
Codec
(
pb
::
FieldCodec
.
ForString
(
10
),
pb
::
FieldCodec
.
ForMessage
(
18
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
),
10
);
private
readonly
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
fields_
=
new
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>();
[
pbr
::
ProtobufField
(
1
,
"fields"
)]
public
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
Fields
{
get
{
return
fields_
;
}
}
...
...
@@ -170,8 +171,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Value
>
_parser
=
new
pb
::
MessageParser
<
Value
>(()
=>
new
Value
());
public
static
pb
::
MessageParser
<
Value
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"bool_value"
,
"list_value"
,
"null_value"
,
"number_value"
,
"string_value"
,
"struct_value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
32
,
50
,
8
,
17
,
26
,
42
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Struct
.
Descriptor
.
MessageTypes
[
1
];
}
}
...
...
@@ -226,7 +225,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
public
const
int
NullValueFieldNumber
=
1
;
[
pbr
::
ProtobufField
(
1
,
"null_value"
)]
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
NullValue
{
get
{
return
kindCase_
==
KindOneofCase
.
NullValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
)
kind_
:
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
.
NULL_VALUE
;
}
set
{
...
...
@@ -237,7 +235,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
public
const
int
NumberValueFieldNumber
=
2
;
[
pbr
::
ProtobufField
(
2
,
"number_value"
)]
public
double
NumberValue
{
get
{
return
kindCase_
==
KindOneofCase
.
NumberValue
?
(
double
)
kind_
:
0D
;
}
set
{
...
...
@@ -248,7 +245,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
public
const
int
StringValueFieldNumber
=
3
;
[
pbr
::
ProtobufField
(
3
,
"string_value"
)]
public
string
StringValue
{
get
{
return
kindCase_
==
KindOneofCase
.
StringValue
?
(
string
)
kind_
:
""
;
}
set
{
...
...
@@ -259,7 +255,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
public
const
int
BoolValueFieldNumber
=
4
;
[
pbr
::
ProtobufField
(
4
,
"bool_value"
)]
public
bool
BoolValue
{
get
{
return
kindCase_
==
KindOneofCase
.
BoolValue
?
(
bool
)
kind_
:
false
;
}
set
{
...
...
@@ -270,7 +265,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
public
const
int
StructValueFieldNumber
=
5
;
[
pbr
::
ProtobufField
(
5
,
"struct_value"
)]
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
StructValue
{
get
{
return
kindCase_
==
KindOneofCase
.
StructValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
)
kind_
:
null
;
}
set
{
...
...
@@ -281,7 +275,6 @@ namespace Google.Protobuf.WellKnownTypes {
}
public
const
int
ListValueFieldNumber
=
6
;
[
pbr
::
ProtobufField
(
6
,
"list_value"
)]
public
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
ListValue
{
get
{
return
kindCase_
==
KindOneofCase
.
ListValue
?
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
ListValue
)
kind_
:
null
;
}
set
{
...
...
@@ -483,8 +476,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
ListValue
>
_parser
=
new
pb
::
MessageParser
<
ListValue
>(()
=>
new
ListValue
());
public
static
pb
::
MessageParser
<
ListValue
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"values"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Struct
.
Descriptor
.
MessageTypes
[
2
];
}
}
...
...
@@ -522,7 +513,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
FieldCodec
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
_repeated_values_codec
=
pb
::
FieldCodec
.
ForMessage
(
10
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
.
Parser
);
private
readonly
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
values_
=
new
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>();
[
pbr
::
ProtobufField
(
1
,
"values"
)]
public
pbc
::
RepeatedField
<
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
Values
{
get
{
return
values_
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
View file @
47bf49b9
...
...
@@ -27,10 +27,12 @@ namespace Google.Protobuf.WellKnownTypes {
"dG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MY"
,
"AiABKAVCUQoTY29tLmdvb2dsZS5wcm90b2J1ZkIOVGltZXN0YW1wUHJvdG9Q"
,
"AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG"
,
"cHJvdG8z"
));
"cHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
),
new
[]{
"Seconds"
,
"Nanos"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -42,8 +44,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Timestamp
>
_parser
=
new
pb
::
MessageParser
<
Timestamp
>(()
=>
new
Timestamp
());
public
static
pb
::
MessageParser
<
Timestamp
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"nanos"
,
"seconds"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
16
,
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Proto
.
Timestamp
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -79,7 +79,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
SecondsFieldNumber
=
1
;
private
long
seconds_
;
[
pbr
::
ProtobufField
(
1
,
"seconds"
)]
public
long
Seconds
{
get
{
return
seconds_
;
}
set
{
...
...
@@ -90,7 +89,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
NanosFieldNumber
=
2
;
private
int
nanos_
;
[
pbr
::
ProtobufField
(
2
,
"nanos"
)]
public
int
Nanos
{
get
{
return
nanos_
;
}
set
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
View file @
47bf49b9
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
View file @
47bf49b9
...
...
@@ -29,10 +29,20 @@ namespace Google.Protobuf.WellKnownTypes {
"DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS"
,
"DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJN"
,
"ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAGiAgNHUEKq"
,
"Ah5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
"Ah5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
InternalBuildGeneratedFileFrom
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
global
::
System
.
Type
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DoubleValue
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FloatValue
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int64Value
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt64Value
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int32Value
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt32Value
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BoolValue
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StringValue
),
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BytesValue
),
});
new
pbr
::
GeneratedCodeInfo
(
null
,
new
pbr
::
GeneratedCodeInfo
[]
{
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DoubleValue
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FloatValue
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int64Value
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt64Value
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Int32Value
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
UInt32Value
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BoolValue
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StringValue
),
new
[]{
"Value"
},
null
,
null
,
null
),
new
pbr
::
GeneratedCodeInfo
(
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
BytesValue
),
new
[]{
"Value"
},
null
,
null
,
null
)
}));
}
#
endregion
...
...
@@ -43,8 +53,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
DoubleValue
>
_parser
=
new
pb
::
MessageParser
<
DoubleValue
>(()
=>
new
DoubleValue
());
public
static
pb
::
MessageParser
<
DoubleValue
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
9
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
0
];
}
}
...
...
@@ -79,7 +87,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
double
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
double
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -163,8 +170,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
FloatValue
>
_parser
=
new
pb
::
MessageParser
<
FloatValue
>(()
=>
new
FloatValue
());
public
static
pb
::
MessageParser
<
FloatValue
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
13
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
1
];
}
}
...
...
@@ -199,7 +204,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
float
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
float
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -283,8 +287,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Int64Value
>
_parser
=
new
pb
::
MessageParser
<
Int64Value
>(()
=>
new
Int64Value
());
public
static
pb
::
MessageParser
<
Int64Value
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
2
];
}
}
...
...
@@ -319,7 +321,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
long
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
long
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -403,8 +404,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
UInt64Value
>
_parser
=
new
pb
::
MessageParser
<
UInt64Value
>(()
=>
new
UInt64Value
());
public
static
pb
::
MessageParser
<
UInt64Value
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
3
];
}
}
...
...
@@ -439,7 +438,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
ulong
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
ulong
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -523,8 +521,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
Int32Value
>
_parser
=
new
pb
::
MessageParser
<
Int32Value
>(()
=>
new
Int32Value
());
public
static
pb
::
MessageParser
<
Int32Value
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
4
];
}
}
...
...
@@ -559,7 +555,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
int
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
int
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -643,8 +638,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
UInt32Value
>
_parser
=
new
pb
::
MessageParser
<
UInt32Value
>(()
=>
new
UInt32Value
());
public
static
pb
::
MessageParser
<
UInt32Value
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
5
];
}
}
...
...
@@ -679,7 +672,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
uint
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
uint
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -763,8 +755,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
BoolValue
>
_parser
=
new
pb
::
MessageParser
<
BoolValue
>(()
=>
new
BoolValue
());
public
static
pb
::
MessageParser
<
BoolValue
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
8
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
6
];
}
}
...
...
@@ -799,7 +789,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
bool
value_
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
bool
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -883,8 +872,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
StringValue
>
_parser
=
new
pb
::
MessageParser
<
StringValue
>(()
=>
new
StringValue
());
public
static
pb
::
MessageParser
<
StringValue
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
7
];
}
}
...
...
@@ -919,7 +906,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
string
value_
=
""
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
string
Value
{
get
{
return
value_
;
}
set
{
...
...
@@ -1003,8 +989,6 @@ namespace Google.Protobuf.WellKnownTypes {
private
static
readonly
pb
::
MessageParser
<
BytesValue
>
_parser
=
new
pb
::
MessageParser
<
BytesValue
>(()
=>
new
BytesValue
());
public
static
pb
::
MessageParser
<
BytesValue
>
Parser
{
get
{
return
_parser
;
}
}
private
static
readonly
string
[]
_fieldNames
=
new
string
[]
{
"value"
};
private
static
readonly
uint
[]
_fieldTags
=
new
uint
[]
{
10
};
public
static
pbr
::
MessageDescriptor
Descriptor
{
get
{
return
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Wrappers
.
Descriptor
.
MessageTypes
[
8
];
}
}
...
...
@@ -1039,7 +1023,6 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
1
;
private
pb
::
ByteString
value_
=
pb
::
ByteString
.
Empty
;
[
pbr
::
ProtobufField
(
1
,
"value"
)]
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
set
{
...
...
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