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
b5cdf0ea
Commit
b5cdf0ea
authored
7 years ago
by
Jon Skeet
Committed by
Jon Skeet
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerated test code for C#
parent
aa77eab6
master
v3.11.4
v3.11.3
v3.11.2
v3.11.1
v3.11.0
v3.11.0-rc2
v3.11.0-rc1
v3.10.1
v3.10.0
v3.10.0-rc1
v3.9.2
v3.9.1
v3.9.0
v3.9.0-rc1
v3.8.0
v3.8.0-rc1
v3.7.1
v3.7.0
v3.7.0rc2
v3.7.0rc1
v3.7.0-rc.3
v3.7.0-rc.2
v3.6.1.3
v3.6.1.2
v3.6.1.1
v3.6.1
v3.6.0.1
v3.6.0
v3.6.0rc2
v3.6.0rc1
conformance-build-tag
No related merge requests found
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
34 deletions
+63
-34
MapUnittestProto3.cs
.../src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+0
-0
TestMessagesProto3.cs
...src/Google.Protobuf.Test/TestProtos/TestMessagesProto3.cs
+10
-7
UnittestImportProto3.cs
...c/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
+10
-11
UnittestImportPublicProto3.cs
...le.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
+7
-7
UnittestProto3.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+0
-0
UnittestWellKnownTypes.cs
...Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
+36
-9
No files found.
csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
View file @
b5cdf0ea
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/TestMessagesProto3.cs
View file @
b5cdf0ea
...
...
@@ -27,7 +27,7 @@ namespace ProtobufTestMessages.Proto3 {
"dWYvYW55LnByb3RvGh5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8a"
,
"IGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNrLnByb3RvGhxnb29nbGUvcHJv"
,
"dG9idWYvc3RydWN0LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1w"
,
"LnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8i
r
DsKElRl"
,
"LnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8i
t
DsKElRl"
,
"c3RBbGxUeXBlc1Byb3RvMxIWCg5vcHRpb25hbF9pbnQzMhgBIAEoBRIWCg5v"
,
"cHRpb25hbF9pbnQ2NBgCIAEoAxIXCg9vcHRpb25hbF91aW50MzIYAyABKA0S"
,
"FwoPb3B0aW9uYWxfdWludDY0GAQgASgEEhcKD29wdGlvbmFsX3NpbnQzMhgF"
,
...
...
@@ -196,11 +196,11 @@ namespace ProtobufTestMessages.Proto3 {
"Z0ZvcmVpZ25FbnVtRW50cnkSCwoDa2V5GAEgASgJEjkKBXZhbHVlGAIgASgO"
,
"MioucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzMuRm9yZWlnbkVudW06"
,
"AjgBIjkKCk5lc3RlZEVudW0SBwoDRk9PEAASBwoDQkFSEAESBwoDQkFaEAIS"
,
"EAoDTkVHEP///////////wFCDQoLb25lb2ZfZmllbG
QiGwoORm9yZWlnbk1l
"
,
"
c3NhZ2USCQoBYxgBIAEoBSpACgtGb3JlaWduRW51bRIPCgtGT1JFSUdOX
0ZP"
,
"
TxAAEg8KC0ZPUkVJR05fQkFSEAESDwoLRk9SRUlHTl9CQVoQAkI4Cihjb20u
"
,
"
Z29vZ2xlLnByb3RvYnVmX3Rlc3RfbWVzc2FnZXMucHJvdG8zSAH4AQGiAgZQ
"
,
"
cm90bzNiBnByb3RvMw==
"
));
"EAoDTkVHEP///////////wFCDQoLb25lb2ZfZmllbG
RKBgj1AxD/AyIbCg5G
"
,
"
b3JlaWduTWVzc2FnZRIJCgFjGAEgASgFKkAKC0ZvcmVpZ25FbnVtEg8KC
0ZP"
,
"
UkVJR05fRk9PEAASDwoLRk9SRUlHTl9CQVIQARIPCgtGT1JFSUdOX0JBWhAC
"
,
"
QjgKKGNvbS5nb29nbGUucHJvdG9idWZfdGVzdF9tZXNzYWdlcy5wcm90bzNI
"
,
"
AfgBAaICBlByb3RvM2IGcHJvdG8z
"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
WellKnownTypes
.
AnyReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
DurationReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMaskReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
StructReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
TimestampReflection
.
Descriptor
,
global
::
Google
.
Protobuf
.
WellKnownTypes
.
WrappersReflection
.
Descriptor
,
},
new
pbr
::
GeneratedClrTypeInfo
(
new
[]
{
typeof
(
global
::
ProtobufTestMessages
.
Proto3
.
ForeignEnum
),
},
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
@@ -2808,7 +2808,10 @@ namespace ProtobufTestMessages.Proto3 {
OneofUint32
=
other
.
OneofUint32
;
break
;
case
OneofFieldOneofCase
.
OneofNestedMessage
:
OneofNestedMessage
=
other
.
OneofNestedMessage
;
if
(
OneofNestedMessage
==
null
)
{
OneofNestedMessage
=
new
global
::
ProtobufTestMessages
.
Proto3
.
TestAllTypesProto3
.
Types
.
NestedMessage
();
}
OneofNestedMessage
.
MergeFrom
(
other
.
OneofNestedMessage
);
break
;
case
OneofFieldOneofCase
.
OneofString
:
OneofString
=
other
.
OneofString
;
...
...
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
View file @
b5cdf0ea
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source:
google/protobuf/
unittest_import_proto3.proto
// source: unittest_import_proto3.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
...
...
@@ -9,11 +9,11 @@ using pbr = global::Google.Protobuf.Reflection;
using
scg
=
global
::
System
.
Collections
.
Generic
;
namespace
Google.Protobuf.TestProtos
{
/// <summary>Holder for reflection information generated from
google/protobuf/
unittest_import_proto3.proto</summary>
/// <summary>Holder for reflection information generated from unittest_import_proto3.proto</summary>
public
static
partial
class
UnittestImportProto3Reflection
{
#
region
Descriptor
/// <summary>File descriptor for
google/protobuf/
unittest_import_proto3.proto</summary>
/// <summary>File descriptor for unittest_import_proto3.proto</summary>
public
static
pbr
::
FileDescriptor
Descriptor
{
get
{
return
descriptor
;
}
}
...
...
@@ -22,14 +22,13 @@ namespace Google.Protobuf.TestProtos {
static
UnittestImportProto3Reflection
()
{
byte
[]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"Cixnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3Byb3RvMy5wcm90"
,
"bxIYcHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0GjNnb29nbGUvcHJvdG9idWYv"
,
"dW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90bzMucHJvdG8iGgoNSW1wb3J0"
,
"TWVzc2FnZRIJCgFkGAEgASgFKlkKCkltcG9ydEVudW0SGwoXSU1QT1JUX0VO"
,
"VU1fVU5TUEVDSUZJRUQQABIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JB"
,
"UhAIEg4KCklNUE9SVF9CQVoQCUI8Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRl"
,
"c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv"
,
"Mw=="
));
"Chx1bml0dGVzdF9pbXBvcnRfcHJvdG8zLnByb3RvEhhwcm90b2J1Zl91bml0"
,
"dGVzdF9pbXBvcnQaI3VuaXR0ZXN0X2ltcG9ydF9wdWJsaWNfcHJvdG8zLnBy"
,
"b3RvIhoKDUltcG9ydE1lc3NhZ2USCQoBZBgBIAEoBSpZCgpJbXBvcnRFbnVt"
,
"EhsKF0lNUE9SVF9FTlVNX1VOU1BFQ0lGSUVEEAASDgoKSU1QT1JUX0ZPTxAH"
,
"Eg4KCklNUE9SVF9CQVIQCBIOCgpJTVBPUlRfQkFaEAlCPAoYY29tLmdvb2ds"
,
"ZS5wcm90b2J1Zi50ZXN0SAH4AQGqAhpHb29nbGUuUHJvdG9idWYuVGVzdFBy"
,
"b3Rvc1AAYgZwcm90bzM="
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
global
::
Google
.
Protobuf
.
TestProtos
.
UnittestImportPublicProto3Reflection
.
Descriptor
,
},
new
pbr
::
GeneratedClrTypeInfo
(
new
[]
{
typeof
(
global
::
Google
.
Protobuf
.
TestProtos
.
ImportEnum
),
},
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
View file @
b5cdf0ea
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source:
google/protobuf/
unittest_import_public_proto3.proto
// source: unittest_import_public_proto3.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
...
...
@@ -9,11 +9,11 @@ using pbr = global::Google.Protobuf.Reflection;
using
scg
=
global
::
System
.
Collections
.
Generic
;
namespace
Google.Protobuf.TestProtos
{
/// <summary>Holder for reflection information generated from
google/protobuf/
unittest_import_public_proto3.proto</summary>
/// <summary>Holder for reflection information generated from unittest_import_public_proto3.proto</summary>
public
static
partial
class
UnittestImportPublicProto3Reflection
{
#
region
Descriptor
/// <summary>File descriptor for
google/protobuf/
unittest_import_public_proto3.proto</summary>
/// <summary>File descriptor for unittest_import_public_proto3.proto</summary>
public
static
pbr
::
FileDescriptor
Descriptor
{
get
{
return
descriptor
;
}
}
...
...
@@ -22,10 +22,10 @@ namespace Google.Protobuf.TestProtos {
static
UnittestImportPublicProto3Reflection
()
{
byte
[]
descriptorData
=
global
::
System
.
Convert
.
FromBase64String
(
string
.
Concat
(
"C
jNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90
"
,
"
bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ
"
,
"
bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1
"
,
"
Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==
"
));
"C
iN1bml0dGVzdF9pbXBvcnRfcHVibGljX3Byb3RvMy5wcm90bxIYcHJvdG9i
"
,
"
dWZfdW5pdHRlc3RfaW1wb3J0IiAKE1B1YmxpY0ltcG9ydE1lc3NhZ2USCQoB
"
,
"
ZRgBIAEoBUI3Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRlc3SqAhpHb29nbGUu
"
,
"
UHJvdG9idWYuVGVzdFByb3Rvc2IGcHJvdG8z
"
));
descriptor
=
pbr
::
FileDescriptor
.
FromGeneratedCode
(
descriptorData
,
new
pbr
::
FileDescriptor
[]
{
},
new
pbr
::
GeneratedClrTypeInfo
(
null
,
new
pbr
::
GeneratedClrTypeInfo
[]
{
...
...
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
View file @
b5cdf0ea
This diff is collapsed.
Click to expand it.
csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs
View file @
b5cdf0ea
...
...
@@ -1890,31 +1890,58 @@ namespace Google.Protobuf.TestProtos {
}
switch
(
other
.
OneofFieldCase
)
{
case
OneofFieldOneofCase
.
AnyField
:
AnyField
=
other
.
AnyField
;
if
(
AnyField
==
null
)
{
AnyField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Any
();
}
AnyField
.
MergeFrom
(
other
.
AnyField
);
break
;
case
OneofFieldOneofCase
.
ApiField
:
ApiField
=
other
.
ApiField
;
if
(
ApiField
==
null
)
{
ApiField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Api
();
}
ApiField
.
MergeFrom
(
other
.
ApiField
);
break
;
case
OneofFieldOneofCase
.
DurationField
:
DurationField
=
other
.
DurationField
;
if
(
DurationField
==
null
)
{
DurationField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Duration
();
}
DurationField
.
MergeFrom
(
other
.
DurationField
);
break
;
case
OneofFieldOneofCase
.
EmptyField
:
EmptyField
=
other
.
EmptyField
;
if
(
EmptyField
==
null
)
{
EmptyField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Empty
();
}
EmptyField
.
MergeFrom
(
other
.
EmptyField
);
break
;
case
OneofFieldOneofCase
.
FieldMaskField
:
FieldMaskField
=
other
.
FieldMaskField
;
if
(
FieldMaskField
==
null
)
{
FieldMaskField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
FieldMask
();
}
FieldMaskField
.
MergeFrom
(
other
.
FieldMaskField
);
break
;
case
OneofFieldOneofCase
.
SourceContextField
:
SourceContextField
=
other
.
SourceContextField
;
if
(
SourceContextField
==
null
)
{
SourceContextField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
SourceContext
();
}
SourceContextField
.
MergeFrom
(
other
.
SourceContextField
);
break
;
case
OneofFieldOneofCase
.
StructField
:
StructField
=
other
.
StructField
;
if
(
StructField
==
null
)
{
StructField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Struct
();
}
StructField
.
MergeFrom
(
other
.
StructField
);
break
;
case
OneofFieldOneofCase
.
TimestampField
:
TimestampField
=
other
.
TimestampField
;
if
(
TimestampField
==
null
)
{
TimestampField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Timestamp
();
}
TimestampField
.
MergeFrom
(
other
.
TimestampField
);
break
;
case
OneofFieldOneofCase
.
TypeField
:
TypeField
=
other
.
TypeField
;
if
(
TypeField
==
null
)
{
TypeField
=
new
global
::
Google
.
Protobuf
.
WellKnownTypes
.
Type
();
}
TypeField
.
MergeFrom
(
other
.
TypeField
);
break
;
case
OneofFieldOneofCase
.
DoubleField
:
DoubleField
=
other
.
DoubleField
;
...
...
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