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.
31 lines
972 B
31 lines
972 B
using Google.ProtocolBuffers.Descriptors; |
|
|
|
namespace Google.ProtocolBuffers { |
|
|
|
/// <summary> |
|
/// Base class for all generated extensions. |
|
/// </summary> |
|
/// <remarks> |
|
/// The protocol compiler generates a static singleton instance of this |
|
/// class for each extension. For exmaple, imagine a .proto file with: |
|
/// <code> |
|
/// message Foo { |
|
/// extensions 1000 to max |
|
/// } |
|
/// |
|
/// extend Foo { |
|
/// optional int32 bar; |
|
/// } |
|
/// </code> |
|
/// Then MyProto.Foo.Bar has type GeneratedExtension<MyProto.Foo,int>. |
|
/// <para /> |
|
/// In general, users should ignore the details of this type, and |
|
/// simply use the static singletons as parmaeters to the extension accessors |
|
/// in ExtendableMessage and ExtendableBuilder. |
|
/// </remarks> |
|
public class GeneratedExtension<TContainer, TExtension> where TContainer : IMessage<TContainer> { |
|
public FieldDescriptor Descriptor; |
|
|
|
public IMessage MessageDefaultInstance; |
|
} |
|
}
|
|
|