Autogenerated.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // This file contains quick hacks to represent code that will be autogenerated.
  2. namespace Google.ProtocolBuffers.DescriptorProtos {
  3. /// <summary>
  4. /// This only exists until we've got the real code...
  5. /// </summary>
  6. public abstract class TemporaryMessage<T> : IMessage<T> where T : IMessage<T> {
  7. #region IMessage<T> Members
  8. public IMessage<T> DefaultInstanceForType {
  9. get { throw new System.NotImplementedException(); }
  10. }
  11. public IBuilder<T> CreateBuilderForType() {
  12. throw new System.NotImplementedException();
  13. }
  14. #endregion
  15. #region IMessage Members
  16. public Google.ProtocolBuffers.Descriptors.MessageDescriptor DescriptorForType {
  17. get { throw new System.NotImplementedException(); }
  18. }
  19. public System.Collections.Generic.IDictionary<Google.ProtocolBuffers.Descriptors.FieldDescriptor, object> AllFields {
  20. get { throw new System.NotImplementedException(); }
  21. }
  22. public bool HasField(Google.ProtocolBuffers.Descriptors.FieldDescriptor field) {
  23. throw new System.NotImplementedException();
  24. }
  25. public object this[Google.ProtocolBuffers.Descriptors.FieldDescriptor field] {
  26. get { throw new System.NotImplementedException(); }
  27. }
  28. public int GetRepeatedFieldCount(Google.ProtocolBuffers.Descriptors.FieldDescriptor field) {
  29. throw new System.NotImplementedException();
  30. }
  31. public object this[Google.ProtocolBuffers.Descriptors.FieldDescriptor field, int index] {
  32. get { throw new System.NotImplementedException(); }
  33. }
  34. public UnknownFieldSet UnknownFields {
  35. get { throw new System.NotImplementedException(); }
  36. }
  37. public bool IsInitialized {
  38. get { throw new System.NotImplementedException(); }
  39. }
  40. public void WriteTo(CodedOutputStream output) {
  41. throw new System.NotImplementedException();
  42. }
  43. public int SerializedSize {
  44. get { throw new System.NotImplementedException(); }
  45. }
  46. public ByteString ToByteString() {
  47. throw new System.NotImplementedException();
  48. }
  49. public byte[] ToByteArray() {
  50. throw new System.NotImplementedException();
  51. }
  52. public void WriteTo(System.IO.Stream output) {
  53. throw new System.NotImplementedException();
  54. }
  55. IMessage IMessage.DefaultInstanceForType {
  56. get { throw new System.NotImplementedException(); }
  57. }
  58. IBuilder IMessage.CreateBuilderForType() {
  59. throw new System.NotImplementedException();
  60. }
  61. #endregion
  62. }
  63. public partial class MessageOptions : TemporaryMessage<MessageOptions> {
  64. public bool IsMessageSetWireFormat;
  65. }
  66. public partial class DescriptorProto : TemporaryMessage<DescriptorProto> {
  67. public string Name { get; set; }
  68. public string FullName { get; set; }
  69. public MessageOptions Options { get; set; }
  70. }
  71. public partial class EnumDescriptorProto : TemporaryMessage<EnumDescriptorProto> {
  72. public string Name { get; set; }
  73. public string FullName { get; set; }
  74. public EnumOptions Options { get; set; }
  75. }
  76. public partial class EnumOptions : TemporaryMessage<EnumOptions> { }
  77. public partial class EnumValueDescriptorProto : TemporaryMessage<EnumValueDescriptorProto> {
  78. public string Name { get; set; }
  79. public string FullName { get; set; }
  80. public EnumValueOptions Options { get; set; }
  81. }
  82. public partial class EnumValueOptions : TemporaryMessage <EnumValueOptions> { }
  83. public partial class FieldDescriptorProto : TemporaryMessage<FieldDescriptorProto> {
  84. public string Name { get; set; }
  85. public string FullName { get; set; }
  86. public FieldOptions Options { get; set; }
  87. }
  88. public partial class FieldOptions : TemporaryMessage<FieldOptions> { }
  89. public partial class FileDescriptorProto : TemporaryMessage<FileDescriptorProto> {
  90. public string Name { get; set; }
  91. public string FullName { get; set; }
  92. public FileOptions Options { get; set; }
  93. }
  94. public partial class FileOptions : TemporaryMessage<FileOptions> { }
  95. public partial class MethodDescriptorProto : TemporaryMessage<MethodDescriptorProto> {
  96. public string Name { get; set; }
  97. public string FullName { get; set; }
  98. public MethodOptions Options { get; set; }
  99. }
  100. public partial class MethodOptions : TemporaryMessage<MethodOptions> { }
  101. public partial class ServiceDescriptorProto : TemporaryMessage<ServiceDescriptorProto> {
  102. public string Name { get; set; }
  103. public string FullName { get; set; }
  104. public ServiceOptions Options { get; set; }
  105. }
  106. public partial class ServiceOptions : TemporaryMessage<ServiceOptions> { }
  107. }