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
d18cc084
Commit
d18cc084
authored
Jul 30, 2015
by
Jon Skeet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generated code for previous commit.
parent
3980cf9d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
57 additions
and
57 deletions
+57
-57
Addressbook.cs
csharp/src/AddressBook/Addressbook.cs
+3
-3
UnittestProto3.cs
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+11
-11
DescriptorProtoFile.cs
csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
+26
-26
Any.cs
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
+2
-2
Api.cs
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
+5
-5
SourceContext.cs
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
+1
-1
Struct.cs
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
+1
-1
Type.cs
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
+6
-6
Wrappers.cs
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
+2
-2
No files found.
csharp/src/AddressBook/Addressbook.cs
View file @
d18cc084
...
...
@@ -76,7 +76,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -94,7 +94,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public
string
Email
{
get
{
return
email_
;
}
set
{
email_
=
value
??
""
;
email_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -257,7 +257,7 @@ namespace Google.Protobuf.Examples.AddressBook {
public
string
Number
{
get
{
return
number_
;
}
set
{
number_
=
value
??
""
;
number_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
View file @
d18cc084
...
...
@@ -426,7 +426,7 @@ namespace Google.Protobuf.TestProtos {
public
string
SingleString
{
get
{
return
singleString_
;
}
set
{
singleString_
=
value
??
""
;
singleString_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -435,7 +435,7 @@ namespace Google.Protobuf.TestProtos {
public
pb
::
ByteString
SingleBytes
{
get
{
return
singleBytes_
;
}
set
{
singleBytes_
=
value
??
pb
::
ByteString
.
Empty
;
singleBytes_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -700,7 +700,7 @@ namespace Google.Protobuf.TestProtos {
public
string
OneofString
{
get
{
return
oneofFieldCase_
==
OneofFieldOneofCase
.
OneofString
?
(
string
)
oneofField_
:
""
;
}
set
{
oneofField_
=
value
??
""
;
oneofField_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
oneofFieldCase_
=
OneofFieldOneofCase
.
OneofString
;
}
}
...
...
@@ -709,7 +709,7 @@ namespace Google.Protobuf.TestProtos {
public
pb
::
ByteString
OneofBytes
{
get
{
return
oneofFieldCase_
==
OneofFieldOneofCase
.
OneofBytes
?
(
pb
::
ByteString
)
oneofField_
:
pb
::
ByteString
.
Empty
;
}
set
{
oneofField_
=
value
??
pb
::
ByteString
.
Empty
;
oneofField_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
oneofFieldCase_
=
OneofFieldOneofCase
.
OneofBytes
;
}
}
...
...
@@ -2703,7 +2703,7 @@ namespace Google.Protobuf.TestProtos {
public
string
StringField
{
get
{
return
stringField_
;
}
set
{
stringField_
=
value
??
""
;
stringField_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2954,7 +2954,7 @@ namespace Google.Protobuf.TestProtos {
public
string
MyString
{
get
{
return
myString_
;
}
set
{
myString_
=
value
??
""
;
myString_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -3385,7 +3385,7 @@ namespace Google.Protobuf.TestProtos {
public
string
Data
{
get
{
return
data_
;
}
set
{
data_
=
value
??
""
;
data_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -3589,7 +3589,7 @@ namespace Google.Protobuf.TestProtos {
public
pb
::
ByteString
Data
{
get
{
return
data_
;
}
set
{
data_
=
value
??
pb
::
ByteString
.
Empty
;
data_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -3695,7 +3695,7 @@ namespace Google.Protobuf.TestProtos {
public
pb
::
ByteString
Data
{
get
{
return
data_
;
}
set
{
data_
=
value
??
pb
::
ByteString
.
Empty
;
data_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -4350,7 +4350,7 @@ namespace Google.Protobuf.TestProtos {
public
string
FooString
{
get
{
return
fooCase_
==
FooOneofCase
.
FooString
?
(
string
)
foo_
:
""
;
}
set
{
foo_
=
value
??
""
;
foo_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
fooCase_
=
FooOneofCase
.
FooString
;
}
}
...
...
@@ -5409,7 +5409,7 @@ namespace Google.Protobuf.TestProtos {
public
string
A
{
get
{
return
a_
;
}
set
{
a_
=
value
??
""
;
a_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
View file @
d18cc084
...
...
@@ -301,7 +301,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -310,7 +310,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Package
{
get
{
return
package_
;
}
set
{
package_
=
value
??
""
;
package_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -393,7 +393,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Syntax
{
get
{
return
syntax_
;
}
set
{
syntax_
=
value
??
""
;
syntax_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -649,7 +649,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1200,7 +1200,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1236,7 +1236,7 @@ namespace Google.Protobuf.Reflection {
internal
string
TypeName
{
get
{
return
typeName_
;
}
set
{
typeName_
=
value
??
""
;
typeName_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1245,7 +1245,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Extendee
{
get
{
return
extendee_
;
}
set
{
extendee_
=
value
??
""
;
extendee_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1254,7 +1254,7 @@ namespace Google.Protobuf.Reflection {
internal
string
DefaultValue
{
get
{
return
defaultValue_
;
}
set
{
defaultValue_
=
value
??
""
;
defaultValue_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1545,7 +1545,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1653,7 +1653,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1809,7 +1809,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -1973,7 +1973,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2132,7 +2132,7 @@ namespace Google.Protobuf.Reflection {
internal
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2141,7 +2141,7 @@ namespace Google.Protobuf.Reflection {
internal
string
InputType
{
get
{
return
inputType_
;
}
set
{
inputType_
=
value
??
""
;
inputType_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2150,7 +2150,7 @@ namespace Google.Protobuf.Reflection {
internal
string
OutputType
{
get
{
return
outputType_
;
}
set
{
outputType_
=
value
??
""
;
outputType_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2383,7 +2383,7 @@ namespace Google.Protobuf.Reflection {
internal
string
JavaPackage
{
get
{
return
javaPackage_
;
}
set
{
javaPackage_
=
value
??
""
;
javaPackage_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2392,7 +2392,7 @@ namespace Google.Protobuf.Reflection {
internal
string
JavaOuterClassname
{
get
{
return
javaOuterClassname_
;
}
set
{
javaOuterClassname_
=
value
??
""
;
javaOuterClassname_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2437,7 +2437,7 @@ namespace Google.Protobuf.Reflection {
internal
string
GoPackage
{
get
{
return
goPackage_
;
}
set
{
goPackage_
=
value
??
""
;
goPackage_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2491,7 +2491,7 @@ namespace Google.Protobuf.Reflection {
internal
string
ObjcClassPrefix
{
get
{
return
objcClassPrefix_
;
}
set
{
objcClassPrefix_
=
value
??
""
;
objcClassPrefix_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -2500,7 +2500,7 @@ namespace Google.Protobuf.Reflection {
internal
string
CsharpNamespace
{
get
{
return
csharpNamespace_
;
}
set
{
csharpNamespace_
=
value
??
""
;
csharpNamespace_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -3853,7 +3853,7 @@ namespace Google.Protobuf.Reflection {
internal
string
IdentifierValue
{
get
{
return
identifierValue_
;
}
set
{
identifierValue_
=
value
??
""
;
identifierValue_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -3889,7 +3889,7 @@ namespace Google.Protobuf.Reflection {
internal
pb
::
ByteString
StringValue
{
get
{
return
stringValue_
;
}
set
{
stringValue_
=
value
??
pb
::
ByteString
.
Empty
;
stringValue_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -3898,7 +3898,7 @@ namespace Google.Protobuf.Reflection {
internal
string
AggregateValue
{
get
{
return
aggregateValue_
;
}
set
{
aggregateValue_
=
value
??
""
;
aggregateValue_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -4095,7 +4095,7 @@ namespace Google.Protobuf.Reflection {
internal
string
NamePart_
{
get
{
return
namePart_
;
}
set
{
namePart_
=
value
??
""
;
namePart_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -4350,7 +4350,7 @@ namespace Google.Protobuf.Reflection {
internal
string
LeadingComments
{
get
{
return
leadingComments_
;
}
set
{
leadingComments_
=
value
??
""
;
leadingComments_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -4359,7 +4359,7 @@ namespace Google.Protobuf.Reflection {
internal
string
TrailingComments
{
get
{
return
trailingComments_
;
}
set
{
trailingComments_
=
value
??
""
;
trailingComments_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
View file @
d18cc084
...
...
@@ -71,7 +71,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
TypeUrl
{
get
{
return
typeUrl_
;
}
set
{
typeUrl_
=
value
??
""
;
typeUrl_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -80,7 +80,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
set
{
value_
=
value
??
pb
::
ByteString
.
Empty
;
value_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs
View file @
d18cc084
...
...
@@ -84,7 +84,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -109,7 +109,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Version
{
get
{
return
version_
;
}
set
{
version_
=
value
??
""
;
version_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -285,7 +285,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -294,7 +294,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
RequestTypeUrl
{
get
{
return
requestTypeUrl_
;
}
set
{
requestTypeUrl_
=
value
??
""
;
requestTypeUrl_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -312,7 +312,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
ResponseTypeUrl
{
get
{
return
responseTypeUrl_
;
}
set
{
responseTypeUrl_
=
value
??
""
;
responseTypeUrl_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs
View file @
d18cc084
...
...
@@ -71,7 +71,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
FileName
{
get
{
return
fileName_
;
}
set
{
fileName_
=
value
??
""
;
fileName_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs
View file @
d18cc084
...
...
@@ -224,7 +224,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
StringValue
{
get
{
return
kindCase_
==
KindOneofCase
.
StringValue
?
(
string
)
kind_
:
""
;
}
set
{
kind_
=
value
??
""
;
kind_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
kindCase_
=
KindOneofCase
.
StringValue
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs
View file @
d18cc084
...
...
@@ -105,7 +105,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -327,7 +327,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -336,7 +336,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
TypeUrl
{
get
{
return
typeUrl_
;
}
set
{
typeUrl_
=
value
??
""
;
typeUrl_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -610,7 +610,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -783,7 +783,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -932,7 +932,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Name
{
get
{
return
name_
;
}
set
{
name_
=
value
??
""
;
name_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs
View file @
d18cc084
...
...
@@ -822,7 +822,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
string
Value
{
get
{
return
value_
;
}
set
{
value_
=
value
??
""
;
value_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
@@ -928,7 +928,7 @@ namespace Google.Protobuf.WellKnownTypes {
public
pb
::
ByteString
Value
{
get
{
return
value_
;
}
set
{
value_
=
value
??
pb
::
ByteString
.
Empty
;
value_
=
pb
::
Preconditions
.
CheckNotNull
(
value
,
"value"
)
;
}
}
...
...
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