aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-07-30 13:50:02 +0100
committerJon Skeet <jonskeet@google.com>2015-07-30 13:50:02 +0100
commitd18cc0845606c32e01e044ae5411c7053b1c73ec (patch)
tree6e09e402e5422bc5959ec1032a9fb5b83f14d1e8 /csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
parent3980cf9df1ca9c66718f1fe9817011134f87bbcd (diff)
downloadprotobuf-d18cc0845606c32e01e044ae5411c7053b1c73ec.tar.gz
protobuf-d18cc0845606c32e01e044ae5411c7053b1c73ec.tar.bz2
protobuf-d18cc0845606c32e01e044ae5411c7053b1c73ec.zip
Generated code for previous commit.
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs52
1 files changed, 26 insertions, 26 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs b/csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
index 213863e2..e40472cb 100644
--- a/csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
+++ b/csharp/src/Google.Protobuf/Reflection/DescriptorProtoFile.cs
@@ -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");
}
}