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
1ccb4ca8
Commit
1ccb4ca8
authored
Apr 20, 2016
by
Thomas Van Lenten
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1434 from jskeet/regenerate
Regenerate descriptor/well-known types for C#
parents
e539e982
c588ac42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
84 additions
and
24 deletions
+84
-24
Descriptor.cs
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
+0
-0
Any.cs
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
+36
-7
Duration.cs
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
+4
-3
Empty.cs
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
+4
-3
FieldMask.cs
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
+27
-0
Struct.cs
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
+5
-4
Timestamp.cs
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
+4
-3
Wrappers.cs
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
+4
-4
No files found.
csharp/src/Google.Protobuf/Reflection/Descriptor.cs
View file @
1ccb4ca8
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
View file @
1ccb4ca8
...
...
@@ -24,9 +24,10 @@ namespace Google.Protobuf.WellKnownTypes {
byte
[]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYi"
,
"JgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQksKE2Nv"
,
"bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAGgAQGiAgNHUEKqAh5Hb29n"
,
"bGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
"JgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnIKE2Nv"
,
"bS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaJWdpdGh1Yi5jb20vZ29s"
,
"YW5nL3Byb3RvYnVmL3B0eXBlcy9hbnmgAQGiAgNHUEKqAh5Hb29nbGUuUHJv"
,
"dG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
@@ -38,8 +39,36 @@ namespace Google.Protobuf.WellKnownTypes {
}
#
region
Messages
/// <summary>
/// `Any` contains an arbitrary serialized message along with a URL
/// that describes the type of the serialized message.
/// `Any` contains an arbitrary serialized protocol buffer message along with a
/// URL that describes the type of the serialized message.
///
/// Protobuf library provides support to pack/unpack Any values in the form
/// of utility functions or additional generated methods of the Any type.
///
/// Example 1: Pack and unpack a message in C++.
///
/// Foo foo = ...;
/// Any any;
/// any.PackFrom(foo);
/// ...
/// if (any.UnpackTo(&foo)) {
/// ...
/// }
///
/// Example 2: Pack and unpack a message in Java.
///
/// Foo foo = ...;
/// Any any = Any.pack(foo);
/// ...
/// if (any.is(Foo.class)) {
/// foo = any.unpack(Foo.class);
/// }
///
/// The pack methods provided by protobuf library will by default use
/// 'type.googleapis.com/full.type.name' as the type URL and the unpack
/// methods only use the fully qualified type name after the last '/'
/// in the type URL, for example "foo.bar.com/x/y.z" will yield type
/// name "y.z".
///
/// JSON
/// ====
...
...
@@ -102,7 +131,7 @@ namespace Google.Protobuf.WellKnownTypes {
private
string
typeUrl_
=
""
;
/// <summary>
/// A URL/resource name whose content describes the type of the
/// serialized message.
/// serialized
protocol buffer
message.
///
/// For URLs which use the schema `http`, `https`, or no schema, the
/// following restrictions and interpretations apply:
...
...
@@ -132,7 +161,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
const
int
ValueFieldNumber
=
2
;
private
pb
::
ByteString
value_
=
pb
::
ByteString
.
Empty
;
/// <summary>
/// Must be
valid serialized data
of the above specified type.
/// Must be
a valid serialized protocol buffer
of the above specified type.
/// </summary>
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Duration.cs
View file @
1ccb4ca8
...
...
@@ -25,9 +25,10 @@ namespace Google.Protobuf.WellKnownTypes {
string
.
Concat
(
"Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90"
,
"b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIg"
,
"ASgFQlAKE2NvbS5nb29nbGUucHJvdG9idWZCDUR1cmF0aW9uUHJvdG9QAaAB"
,
"AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv"
,
"dG8z"
));
"ASgFQnwKE2NvbS5nb29nbGUucHJvdG9idWZCDUR1cmF0aW9uUHJvdG9QAVoq"
,
"Z2l0aHViLmNvbS9nb2xhbmcvcHJvdG9idWYvcHR5cGVzL2R1cmF0aW9uoAEB"
,
"ogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90"
,
"bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs
View file @
1ccb4ca8
...
...
@@ -24,9 +24,10 @@ namespace Google.Protobuf.WellKnownTypes {
byte
[]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1"
,
"ZiIHCgVFbXB0eUJQChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv"
,
"UAGgAQH4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlw"
,
"ZXNiBnByb3RvMw=="
));
"ZiIHCgVFbXB0eUJ5ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv"
,
"UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0eaAB"
,
"AfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG"
,
"cHJvdG8z"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs
View file @
1ccb4ca8
...
...
@@ -159,6 +159,33 @@ namespace Google.Protobuf.WellKnownTypes {
/// {
/// mask: "user.displayName,photo"
/// }
///
/// # Field Masks and Oneof Fields
///
/// Field masks treat fields in oneofs just as regular fields. Consider the
/// following message:
///
/// message SampleMessage {
/// oneof test_oneof {
/// string name = 4;
/// SubMessage sub_message = 9;
/// }
/// }
///
/// The field mask can be:
///
/// mask {
/// paths: "name"
/// }
///
/// Or:
///
/// mask {
/// paths: "sub_message"
/// }
///
/// Note that oneof type names ("test_oneof" in this case) cannot be used in
/// paths.
/// </summary>
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
public
sealed
partial
class
FieldMask
:
pb
::
IMessage
<
FieldMask
>
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
View file @
1ccb4ca8
...
...
@@ -34,9 +34,10 @@ namespace Google.Protobuf.WellKnownTypes {
"ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW"
,
"YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW"
,
"Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W"
,
"QUxVRRAAQk4KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAGg"
,
"AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy"
,
"b3RvMw=="
));
"QUxVRRAAQoEBChNjb20uZ29vZ2xlLnByb3RvYnVmQgtTdHJ1Y3RQcm90b1AB"
,
"WjFnaXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9wdHlwZXMvc3RydWN0O3N0"
,
"cnVjdHBioAEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5"
,
"cGVzYgZwcm90bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
WellKnownTypes
.
NullValue
),
},
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
@@ -108,7 +109,7 @@ namespace Google.Protobuf.WellKnownTypes {
=
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
>();
/// <summary>
///
M
ap of dynamically typed values.
///
Unordered m
ap of dynamically typed values.
/// </summary>
public
pbc
::
MapField
<
string
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Value
>
Fields
{
get
{
return
fields_
;
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Timestamp.cs
View file @
1ccb4ca8
...
...
@@ -25,9 +25,10 @@ namespace Google.Protobuf.WellKnownTypes {
string
.
Concat
(
"Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJv"
,
"dG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MY"
,
"AiABKAVCVAoTY29tLmdvb2dsZS5wcm90b2J1ZkIOVGltZXN0YW1wUHJvdG9Q"
,
"AaABAfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBl"
,
"c2IGcHJvdG8z"
));
"AiABKAVCgQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3Rv"
,
"UAFaK2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy90aW1lc3Rh"
,
"bXCgAQH4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlw"
,
"ZXNiBnByb3RvMw=="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
View file @
1ccb4ca8
...
...
@@ -29,10 +29,10 @@ namespace Google.Protobuf.WellKnownTypes {
"KAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1"
,
"ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEo"
,
"DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS"
,
"DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJ
T
"
,
"ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUA
GgAQH4AQGi
"
,
"
AgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3Rv
"
,
"
Mw==
"
));
"DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJ
/
"
,
"ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUA
FaKmdpdGh1
"
,
"
Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy93cmFwcGVyc6ABAfgBAaIC
"
,
"
A0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z
"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
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