|
|
|
@ -58,6 +58,11 @@ namespace Google.Protobuf.Reflection |
|
|
|
|
/// </summary> |
|
|
|
|
object GetValue(IMessage message); |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Indicates whether the field in the specified message is set. For proto3 fields, this throws an <see cref="InvalidOperationException"/> |
|
|
|
|
/// </summary> |
|
|
|
|
bool HasValue(IMessage message); |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Mutator for single "simple" fields only. |
|
|
|
|
/// </summary> |
|
|
|
@ -68,15 +73,4 @@ namespace Google.Protobuf.Reflection |
|
|
|
|
/// <exception cref="InvalidOperationException">The field is not a "simple" field.</exception> |
|
|
|
|
void SetValue(IMessage message, object value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Allows field presence to be checked reflectively. This is implemented for all single field accessors |
|
|
|
|
/// </summary> |
|
|
|
|
public interface IFieldPresenceAccessor : IFieldAccessor |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
|
/// Indicates whether the field in the specified message is set. For proto3 fields, this throws an <see cref="InvalidOperationException"/> |
|
|
|
|
/// </summary> |
|
|
|
|
bool HasValue(IMessage message); |
|
|
|
|
} |
|
|
|
|
} |