diff options
author | Jon Skeet <jonskeet@google.com> | 2015-07-30 13:50:02 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-07-30 13:50:02 +0100 |
commit | d18cc0845606c32e01e044ae5411c7053b1c73ec (patch) | |
tree | 6e09e402e5422bc5959ec1032a9fb5b83f14d1e8 /csharp/src/Google.Protobuf/WellKnownTypes/Api.cs | |
parent | 3980cf9df1ca9c66718f1fe9817011134f87bbcd (diff) | |
download | protobuf-d18cc0845606c32e01e044ae5411c7053b1c73ec.tar.gz protobuf-d18cc0845606c32e01e044ae5411c7053b1c73ec.tar.bz2 protobuf-d18cc0845606c32e01e044ae5411c7053b1c73ec.zip |
Generated code for previous commit.
Diffstat (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Api.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/WellKnownTypes/Api.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs index a8d4942a..366bba21 100644 --- a/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs +++ b/csharp/src/Google.Protobuf/WellKnownTypes/Api.cs @@ -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"); } } |