ソースを参照

Generated code changes from previous commit

Jon Skeet 9 年 前
コミット
045b528d4a

+ 3 - 3
csharp/src/AddressBook/Addressbook.cs

@@ -82,7 +82,7 @@ namespace Google.Protobuf.Examples.AddressBook {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -105,7 +105,7 @@ namespace Google.Protobuf.Examples.AddressBook {
     public string Email {
     public string Email {
       get { return email_; }
       get { return email_; }
       set {
       set {
-        email_ = pb::Preconditions.CheckNotNull(value, "value");
+        email_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -267,7 +267,7 @@ namespace Google.Protobuf.Examples.AddressBook {
         public string Number {
         public string Number {
           get { return number_; }
           get { return number_; }
           set {
           set {
-            number_ = pb::Preconditions.CheckNotNull(value, "value");
+            number_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
           }
           }
         }
         }
 
 

+ 14 - 14
csharp/src/Google.Protobuf.Conformance/Conformance.cs

@@ -261,7 +261,7 @@ namespace Conformance {
     public pb::ByteString ProtobufPayload {
     public pb::ByteString ProtobufPayload {
       get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
       get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
       set {
       set {
-        payload_ = pb::Preconditions.CheckNotNull(value, "value");
+        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         payloadCase_ = PayloadOneofCase.ProtobufPayload;
         payloadCase_ = PayloadOneofCase.ProtobufPayload;
       }
       }
     }
     }
@@ -271,7 +271,7 @@ namespace Conformance {
     public string JsonPayload {
     public string JsonPayload {
       get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
       get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
       set {
       set {
-        payload_ = pb::Preconditions.CheckNotNull(value, "value");
+        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         payloadCase_ = PayloadOneofCase.JsonPayload;
         payloadCase_ = PayloadOneofCase.JsonPayload;
       }
       }
     }
     }
@@ -471,7 +471,7 @@ namespace Conformance {
     public string ParseError {
     public string ParseError {
       get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
       get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
       set {
       set {
-        result_ = pb::Preconditions.CheckNotNull(value, "value");
+        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         resultCase_ = ResultOneofCase.ParseError;
         resultCase_ = ResultOneofCase.ParseError;
       }
       }
     }
     }
@@ -486,7 +486,7 @@ namespace Conformance {
     public string SerializeError {
     public string SerializeError {
       get { return resultCase_ == ResultOneofCase.SerializeError ? (string) result_ : ""; }
       get { return resultCase_ == ResultOneofCase.SerializeError ? (string) result_ : ""; }
       set {
       set {
-        result_ = pb::Preconditions.CheckNotNull(value, "value");
+        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         resultCase_ = ResultOneofCase.SerializeError;
         resultCase_ = ResultOneofCase.SerializeError;
       }
       }
     }
     }
@@ -501,7 +501,7 @@ namespace Conformance {
     public string RuntimeError {
     public string RuntimeError {
       get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
       get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
       set {
       set {
-        result_ = pb::Preconditions.CheckNotNull(value, "value");
+        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         resultCase_ = ResultOneofCase.RuntimeError;
         resultCase_ = ResultOneofCase.RuntimeError;
       }
       }
     }
     }
@@ -515,7 +515,7 @@ namespace Conformance {
     public pb::ByteString ProtobufPayload {
     public pb::ByteString ProtobufPayload {
       get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
       get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
       set {
       set {
-        result_ = pb::Preconditions.CheckNotNull(value, "value");
+        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         resultCase_ = ResultOneofCase.ProtobufPayload;
         resultCase_ = ResultOneofCase.ProtobufPayload;
       }
       }
     }
     }
@@ -529,7 +529,7 @@ namespace Conformance {
     public string JsonPayload {
     public string JsonPayload {
       get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
       get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
       set {
       set {
-        result_ = pb::Preconditions.CheckNotNull(value, "value");
+        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         resultCase_ = ResultOneofCase.JsonPayload;
         resultCase_ = ResultOneofCase.JsonPayload;
       }
       }
     }
     }
@@ -543,7 +543,7 @@ namespace Conformance {
     public string Skipped {
     public string Skipped {
       get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
       get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
       set {
       set {
-        result_ = pb::Preconditions.CheckNotNull(value, "value");
+        result_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         resultCase_ = ResultOneofCase.Skipped;
         resultCase_ = ResultOneofCase.Skipped;
       }
       }
     }
     }
@@ -1008,7 +1008,7 @@ namespace Conformance {
     public string OptionalString {
     public string OptionalString {
       get { return optionalString_; }
       get { return optionalString_; }
       set {
       set {
-        optionalString_ = pb::Preconditions.CheckNotNull(value, "value");
+        optionalString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1018,7 +1018,7 @@ namespace Conformance {
     public pb::ByteString OptionalBytes {
     public pb::ByteString OptionalBytes {
       get { return optionalBytes_; }
       get { return optionalBytes_; }
       set {
       set {
-        optionalBytes_ = pb::Preconditions.CheckNotNull(value, "value");
+        optionalBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1068,7 +1068,7 @@ namespace Conformance {
     public string OptionalStringPiece {
     public string OptionalStringPiece {
       get { return optionalStringPiece_; }
       get { return optionalStringPiece_; }
       set {
       set {
-        optionalStringPiece_ = pb::Preconditions.CheckNotNull(value, "value");
+        optionalStringPiece_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1078,7 +1078,7 @@ namespace Conformance {
     public string OptionalCord {
     public string OptionalCord {
       get { return optionalCord_; }
       get { return optionalCord_; }
       set {
       set {
-        optionalCord_ = pb::Preconditions.CheckNotNull(value, "value");
+        optionalCord_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1483,7 +1483,7 @@ namespace Conformance {
     public string OneofString {
     public string OneofString {
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
       set {
       set {
-        oneofField_ = pb::Preconditions.CheckNotNull(value, "value");
+        oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
       }
       }
     }
     }
@@ -1493,7 +1493,7 @@ namespace Conformance {
     public pb::ByteString OneofBytes {
     public pb::ByteString OneofBytes {
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
       set {
       set {
-        oneofField_ = pb::Preconditions.CheckNotNull(value, "value");
+        oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
       }
       }
     }
     }

+ 3 - 3
csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs

@@ -1164,7 +1164,7 @@ namespace UnitTest.Issues.TestProtos {
     public string O1String {
     public string O1String {
       get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; }
       get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; }
       set {
       set {
-        o1_ = pb::Preconditions.CheckNotNull(value, "value");
+        o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         o1Case_ = O1OneofCase.O1String;
         o1Case_ = O1OneofCase.O1String;
       }
       }
     }
     }
@@ -1185,7 +1185,7 @@ namespace UnitTest.Issues.TestProtos {
     public string PlainString {
     public string PlainString {
       get { return plainString_; }
       get { return plainString_; }
       set {
       set {
-        plainString_ = pb::Preconditions.CheckNotNull(value, "value");
+        plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1204,7 +1204,7 @@ namespace UnitTest.Issues.TestProtos {
     public string O2String {
     public string O2String {
       get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; }
       get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; }
       set {
       set {
-        o2_ = pb::Preconditions.CheckNotNull(value, "value");
+        o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         o2Case_ = O2OneofCase.O2String;
         o2Case_ = O2OneofCase.O2String;
       }
       }
     }
     }

+ 11 - 11
csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs

@@ -459,7 +459,7 @@ namespace Google.Protobuf.TestProtos {
     public string SingleString {
     public string SingleString {
       get { return singleString_; }
       get { return singleString_; }
       set {
       set {
-        singleString_ = pb::Preconditions.CheckNotNull(value, "value");
+        singleString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -469,7 +469,7 @@ namespace Google.Protobuf.TestProtos {
     public pb::ByteString SingleBytes {
     public pb::ByteString SingleBytes {
       get { return singleBytes_; }
       get { return singleBytes_; }
       set {
       set {
-        singleBytes_ = pb::Preconditions.CheckNotNull(value, "value");
+        singleBytes_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -775,7 +775,7 @@ namespace Google.Protobuf.TestProtos {
     public string OneofString {
     public string OneofString {
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
       set {
       set {
-        oneofField_ = pb::Preconditions.CheckNotNull(value, "value");
+        oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
         oneofFieldCase_ = OneofFieldOneofCase.OneofString;
       }
       }
     }
     }
@@ -785,7 +785,7 @@ namespace Google.Protobuf.TestProtos {
     public pb::ByteString OneofBytes {
     public pb::ByteString OneofBytes {
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
       get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
       set {
       set {
-        oneofField_ = pb::Preconditions.CheckNotNull(value, "value");
+        oneofField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
         oneofFieldCase_ = OneofFieldOneofCase.OneofBytes;
       }
       }
     }
     }
@@ -2787,7 +2787,7 @@ namespace Google.Protobuf.TestProtos {
     public string StringField {
     public string StringField {
       get { return stringField_; }
       get { return stringField_; }
       set {
       set {
-        stringField_ = pb::Preconditions.CheckNotNull(value, "value");
+        stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -3045,7 +3045,7 @@ namespace Google.Protobuf.TestProtos {
     public string MyString {
     public string MyString {
       get { return myString_; }
       get { return myString_; }
       set {
       set {
-        myString_ = pb::Preconditions.CheckNotNull(value, "value");
+        myString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -3480,7 +3480,7 @@ namespace Google.Protobuf.TestProtos {
     public string Data {
     public string Data {
       get { return data_; }
       get { return data_; }
       set {
       set {
-        data_ = pb::Preconditions.CheckNotNull(value, "value");
+        data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -3678,7 +3678,7 @@ namespace Google.Protobuf.TestProtos {
     public pb::ByteString Data {
     public pb::ByteString Data {
       get { return data_; }
       get { return data_; }
       set {
       set {
-        data_ = pb::Preconditions.CheckNotNull(value, "value");
+        data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -3781,7 +3781,7 @@ namespace Google.Protobuf.TestProtos {
     public pb::ByteString Data {
     public pb::ByteString Data {
       get { return data_; }
       get { return data_; }
       set {
       set {
-        data_ = pb::Preconditions.CheckNotNull(value, "value");
+        data_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -4425,7 +4425,7 @@ namespace Google.Protobuf.TestProtos {
     public string FooString {
     public string FooString {
       get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
       get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
       set {
       set {
-        foo_ = pb::Preconditions.CheckNotNull(value, "value");
+        foo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         fooCase_ = FooOneofCase.FooString;
         fooCase_ = FooOneofCase.FooString;
       }
       }
     }
     }
@@ -5528,7 +5528,7 @@ namespace Google.Protobuf.TestProtos {
     public string A {
     public string A {
       get { return a_; }
       get { return a_; }
       set {
       set {
-        a_ = pb::Preconditions.CheckNotNull(value, "value");
+        a_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 

+ 1 - 1
csharp/src/Google.Protobuf/Reflection/Descriptor.cs

@@ -5301,7 +5301,7 @@ namespace Google.Protobuf.Reflection {
         public string SourceFile {
         public string SourceFile {
           get { return sourceFile_; }
           get { return sourceFile_; }
           set {
           set {
-            sourceFile_ = pb::Preconditions.CheckNotNull(value, "value");
+            sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
           }
           }
         }
         }
 
 

+ 2 - 2
csharp/src/Google.Protobuf/WellKnownTypes/Any.cs

@@ -124,7 +124,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string TypeUrl {
     public string TypeUrl {
       get { return typeUrl_; }
       get { return typeUrl_; }
       set {
       set {
-        typeUrl_ = pb::Preconditions.CheckNotNull(value, "value");
+        typeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -137,7 +137,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public pb::ByteString Value {
     public pb::ByteString Value {
       get { return value_; }
       get { return value_; }
       set {
       set {
-        value_ = pb::Preconditions.CheckNotNull(value, "value");
+        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 

+ 7 - 7
csharp/src/Google.Protobuf/WellKnownTypes/Api.cs

@@ -97,7 +97,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -153,7 +153,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Version {
     public string Version {
       get { return version_; }
       get { return version_; }
       set {
       set {
-        version_ = pb::Preconditions.CheckNotNull(value, "value");
+        version_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -388,7 +388,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -401,7 +401,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string RequestTypeUrl {
     public string RequestTypeUrl {
       get { return requestTypeUrl_; }
       get { return requestTypeUrl_; }
       set {
       set {
-        requestTypeUrl_ = pb::Preconditions.CheckNotNull(value, "value");
+        requestTypeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -427,7 +427,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string ResponseTypeUrl {
     public string ResponseTypeUrl {
       get { return responseTypeUrl_; }
       get { return responseTypeUrl_; }
       set {
       set {
-        responseTypeUrl_ = pb::Preconditions.CheckNotNull(value, "value");
+        responseTypeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -740,7 +740,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -754,7 +754,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Root {
     public string Root {
       get { return root_; }
       get { return root_; }
       set {
       set {
-        root_ = pb::Preconditions.CheckNotNull(value, "value");
+        root_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 

+ 1 - 1
csharp/src/Google.Protobuf/WellKnownTypes/SourceContext.cs

@@ -79,7 +79,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string FileName {
     public string FileName {
       get { return fileName_; }
       get { return fileName_; }
       set {
       set {
-        fileName_ = pb::Preconditions.CheckNotNull(value, "value");
+        fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 

+ 1 - 1
csharp/src/Google.Protobuf/WellKnownTypes/Struct.cs

@@ -262,7 +262,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string StringValue {
     public string StringValue {
       get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; }
       get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; }
       set {
       set {
-        kind_ = pb::Preconditions.CheckNotNull(value, "value");
+        kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
         kindCase_ = KindOneofCase.StringValue;
         kindCase_ = KindOneofCase.StringValue;
       }
       }
     }
     }

+ 8 - 8
csharp/src/Google.Protobuf/WellKnownTypes/Type.cs

@@ -133,7 +133,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -417,7 +417,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -431,7 +431,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string TypeUrl {
     public string TypeUrl {
       get { return typeUrl_; }
       get { return typeUrl_; }
       set {
       set {
-        typeUrl_ = pb::Preconditions.CheckNotNull(value, "value");
+        typeUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -483,7 +483,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string JsonName {
     public string JsonName {
       get { return jsonName_; }
       get { return jsonName_; }
       set {
       set {
-        jsonName_ = pb::Preconditions.CheckNotNull(value, "value");
+        jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -496,7 +496,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string DefaultValue {
     public string DefaultValue {
       get { return defaultValue_; }
       get { return defaultValue_; }
       set {
       set {
-        defaultValue_ = pb::Preconditions.CheckNotNull(value, "value");
+        defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -857,7 +857,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1074,7 +1074,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -1235,7 +1235,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Name {
     public string Name {
       get { return name_; }
       get { return name_; }
       set {
       set {
-        name_ = pb::Preconditions.CheckNotNull(value, "value");
+        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 

+ 2 - 2
csharp/src/Google.Protobuf/WellKnownTypes/Wrappers.cs

@@ -869,7 +869,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public string Value {
     public string Value {
       get { return value_; }
       get { return value_; }
       set {
       set {
-        value_ = pb::Preconditions.CheckNotNull(value, "value");
+        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }
 
 
@@ -980,7 +980,7 @@ namespace Google.Protobuf.WellKnownTypes {
     public pb::ByteString Value {
     public pb::ByteString Value {
       get { return value_; }
       get { return value_; }
       set {
       set {
-        value_ = pb::Preconditions.CheckNotNull(value, "value");
+        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
       }
       }
     }
     }