Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
706 B
25 lines
706 B
17 years ago
|
using Google.ProtocolBuffers.Descriptors;
|
||
|
|
||
|
namespace Google.ProtocolBuffers
|
||
|
{
|
||
|
public sealed class ExtensionInfo {
|
||
|
/// <summary>
|
||
|
/// The extension's descriptor
|
||
|
/// </summary>
|
||
|
public FieldDescriptor Descriptor { get; private set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// A default instance of the extensions's type, if it has a message type,
|
||
|
/// or null otherwise.
|
||
|
/// </summary>
|
||
|
public IMessage DefaultInstance { get; private set; }
|
||
|
|
||
|
internal ExtensionInfo(FieldDescriptor descriptor) : this(descriptor, null) {
|
||
|
}
|
||
|
|
||
|
internal ExtensionInfo(FieldDescriptor descriptor, IMessage defaultInstance) {
|
||
|
Descriptor = descriptor;
|
||
|
DefaultInstance = defaultInstance;
|
||
|
}
|
||
|
}
|
||
|
}
|