diff options
Diffstat (limited to 'src/ProtocolBuffers/IMessage.cs')
-rw-r--r-- | src/ProtocolBuffers/IMessage.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ProtocolBuffers/IMessage.cs b/src/ProtocolBuffers/IMessage.cs index a29313fb..e87bb52c 100644 --- a/src/ProtocolBuffers/IMessage.cs +++ b/src/ProtocolBuffers/IMessage.cs @@ -168,11 +168,18 @@ namespace Google.ProtocolBuffers { /// <summary> /// Creates a builder for the type, but in a weakly typed manner. This - /// is typically implemented by strongly typed builders by just returning + /// is typically implemented by strongly typed messages by just returning /// the result of CreateBuilderForType. /// </summary> IBuilder WeakCreateBuilderForType(); + /// <summary> + /// Creates a builder with the same contents as this message. This + /// is typically implemented by strongly typed messages by just returning + /// the result of ToBuilder. + /// </summary> + IBuilder WeakToBuilder(); + IMessage WeakDefaultInstanceForType { get; } } @@ -198,6 +205,12 @@ namespace Google.ProtocolBuffers { /// Constructs a new builder for a message of the same type as this message. /// </summary> TBuilder CreateBuilderForType(); + /// <summary> + /// Creates a builder with the same contents as this current instance. + /// This is typically implemented by strongly typed messages by just + /// returning the result of ToBuilder(). + /// </summary> + TBuilder ToBuilder(); #endregion } } |