aboutsummaryrefslogtreecommitdiff
path: root/csharp/ProtocolBuffers/IMessage.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2008-08-14 20:33:30 +0100
committerJon Skeet <skeet@pobox.com>2008-08-14 20:33:30 +0100
commitfe7bb26214916d0eec25e7690ff3580477ede510 (patch)
tree814fad30050df141a0a38df71adc5b3d8326ff14 /csharp/ProtocolBuffers/IMessage.cs
parentc26b43d8cd182cfb5e0317b79c90f1f3f89759ba (diff)
downloadprotobuf-fe7bb26214916d0eec25e7690ff3580477ede510.tar.gz
protobuf-fe7bb26214916d0eec25e7690ff3580477ede510.tar.bz2
protobuf-fe7bb26214916d0eec25e7690ff3580477ede510.zip
Implemented AbstractMethod and split the descriptors into a new package
Diffstat (limited to 'csharp/ProtocolBuffers/IMessage.cs')
-rw-r--r--csharp/ProtocolBuffers/IMessage.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/csharp/ProtocolBuffers/IMessage.cs b/csharp/ProtocolBuffers/IMessage.cs
index 465d4b45..cb0e7623 100644
--- a/csharp/ProtocolBuffers/IMessage.cs
+++ b/csharp/ProtocolBuffers/IMessage.cs
@@ -16,6 +16,7 @@
using System;
using System.Collections.Generic;
using System.IO;
+using Google.ProtocolBuffers.Descriptors;
namespace Google.ProtocolBuffers {
@@ -33,7 +34,7 @@ namespace Google.ProtocolBuffers {
/// method is an abstract method of IMessage whereas Descriptor is
/// a static property of a specific class. They return the same thing.
/// </summary>
- Descriptors.Descriptor DescriptorForType { get; }
+ MessageDescriptor DescriptorForType { get; }
/// <summary>
/// Returns a collection of all the fields in this message which are set
/// and their corresponding values. A singular ("required" or "optional")
@@ -91,7 +92,7 @@ namespace Google.ProtocolBuffers {
/// Returns true iff all required fields in the message and all embedded
/// messages are set.
/// </summary>
- bool Initialized { get; }
+ bool IsInitialized { get; }
/// <summary>
/// Serializes the message and writes it to the given output stream.
@@ -119,7 +120,6 @@ namespace Google.ProtocolBuffers {
/// Returns the hash code value for this message.
/// TODO(jonskeet): Specify the hash algorithm, but better than the Java one!
/// </summary>
- /// <returns></returns>
int GetHashCode();
#endregion
@@ -164,7 +164,7 @@ namespace Google.ProtocolBuffers {
/// <summary>
/// Constructs a new builder for a message of the same type as this message.
/// </summary>
- IBuilder NewBuilderForType();
+ IBuilder CreateBuilderForType();
#endregion
}
@@ -186,7 +186,7 @@ namespace Google.ProtocolBuffers {
/// <summary>
/// Constructs a new builder for a message of the same type as this message.
/// </summary>
- new IBuilder<T> NewBuilderForType();
+ new IBuilder<T> CreateBuilderForType();
#endregion
}
}