| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/empty.proto | 2 // source: google/protobuf/empty.proto |
| 3 #pragma warning disable 1591, 0612, 3021 | 3 #pragma warning disable 1591, 0612, 3021 |
| 4 #region Designer generated code | 4 #region Designer generated code |
| 5 | 5 |
| 6 using pb = global::Google.Protobuf; | 6 using pb = global::Google.Protobuf; |
| 7 using pbc = global::Google.Protobuf.Collections; | 7 using pbc = global::Google.Protobuf.Collections; |
| 8 using pbr = global::Google.Protobuf.Reflection; | 8 using pbr = global::Google.Protobuf.Reflection; |
| 9 using scg = global::System.Collections.Generic; | 9 using scg = global::System.Collections.Generic; |
| 10 namespace Google.Protobuf.WellKnownTypes { | 10 namespace Google.Protobuf.WellKnownTypes { |
| 11 | 11 |
| 12 /// <summary>Holder for reflection information generated from google/protobuf/
empty.proto</summary> | 12 /// <summary>Holder for reflection information generated from google/protobuf/
empty.proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 13 public static partial class EmptyReflection { | 14 public static partial class EmptyReflection { |
| 14 | 15 |
| 15 #region Descriptor | 16 #region Descriptor |
| 16 /// <summary>File descriptor for google/protobuf/empty.proto</summary> | 17 /// <summary>File descriptor for google/protobuf/empty.proto</summary> |
| 17 public static pbr::FileDescriptor Descriptor { | 18 public static pbr::FileDescriptor Descriptor { |
| 18 get { return descriptor; } | 19 get { return descriptor; } |
| 19 } | 20 } |
| 20 private static pbr::FileDescriptor descriptor; | 21 private static pbr::FileDescriptor descriptor; |
| 21 | 22 |
| 22 static EmptyReflection() { | 23 static EmptyReflection() { |
| 23 byte[] descriptorData = global::System.Convert.FromBase64String( | 24 byte[] descriptorData = global::System.Convert.FromBase64String( |
| 24 string.Concat( | 25 string.Concat( |
| 25 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", | 26 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", |
| 26 "ZiIHCgVFbXB0eUJ2ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", | 27 "ZiIHCgVFbXB0eUJ5ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", |
| 27 "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0efgB", | 28 "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0eaAB", |
| 28 "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv", | 29 "AfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", |
| 29 "dG8z")); | 30 "cHJvdG8z")); |
| 30 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | 31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 31 new pbr::FileDescriptor[] { }, | 32 new pbr::FileDescriptor[] { }, |
| 32 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { | 33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 33 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null,
null, null) | 34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno
wnTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null,
null, null) |
| 34 })); | 35 })); |
| 35 } | 36 } |
| 36 #endregion | 37 #endregion |
| 37 | 38 |
| 38 } | 39 } |
| 39 #region Messages | 40 #region Messages |
| 40 /// <summary> | 41 /// <summary> |
| 41 /// A generic empty message that you can re-use to avoid defining duplicated | 42 /// A generic empty message that you can re-use to avoid defining duplicated |
| 42 /// empty messages in your APIs. A typical example is to use it as the request | 43 /// empty messages in your APIs. A typical example is to use it as the reques
t |
| 43 /// or the response type of an API method. For instance: | 44 /// or the response type of an API method. For instance: |
| 44 /// | 45 /// |
| 45 /// service Foo { | 46 /// service Foo { |
| 46 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 47 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 47 /// } | 48 /// } |
| 48 /// | 49 /// |
| 49 /// The JSON representation for `Empty` is empty JSON object `{}`. | 50 /// The JSON representation for `Empty` is empty JSON object `{}`. |
| 50 /// </summary> | 51 /// </summary> |
| 52 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 51 public sealed partial class Empty : pb::IMessage<Empty> { | 53 public sealed partial class Empty : pb::IMessage<Empty> { |
| 52 private static readonly pb::MessageParser<Empty> _parser = new pb::MessagePa
rser<Empty>(() => new Empty()); | 54 private static readonly pb::MessageParser<Empty> _parser = new pb::MessagePa
rser<Empty>(() => new Empty()); |
| 53 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 54 public static pb::MessageParser<Empty> Parser { get { return _parser; } } | 55 public static pb::MessageParser<Empty> Parser { get { return _parser; } } |
| 55 | 56 |
| 56 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 57 public static pbr::MessageDescriptor Descriptor { | 57 public static pbr::MessageDescriptor Descriptor { |
| 58 get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descri
ptor.MessageTypes[0]; } | 58 get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descri
ptor.MessageTypes[0]; } |
| 59 } | 59 } |
| 60 | 60 |
| 61 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 62 pbr::MessageDescriptor pb::IMessage.Descriptor { | 61 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 63 get { return Descriptor; } | 62 get { return Descriptor; } |
| 64 } | 63 } |
| 65 | 64 |
| 66 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 67 public Empty() { | 65 public Empty() { |
| 68 OnConstruction(); | 66 OnConstruction(); |
| 69 } | 67 } |
| 70 | 68 |
| 71 partial void OnConstruction(); | 69 partial void OnConstruction(); |
| 72 | 70 |
| 73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 74 public Empty(Empty other) : this() { | 71 public Empty(Empty other) : this() { |
| 75 } | 72 } |
| 76 | 73 |
| 77 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 78 public Empty Clone() { | 74 public Empty Clone() { |
| 79 return new Empty(this); | 75 return new Empty(this); |
| 80 } | 76 } |
| 81 | 77 |
| 82 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 83 public override bool Equals(object other) { | 78 public override bool Equals(object other) { |
| 84 return Equals(other as Empty); | 79 return Equals(other as Empty); |
| 85 } | 80 } |
| 86 | 81 |
| 87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 88 public bool Equals(Empty other) { | 82 public bool Equals(Empty other) { |
| 89 if (ReferenceEquals(other, null)) { | 83 if (ReferenceEquals(other, null)) { |
| 90 return false; | 84 return false; |
| 91 } | 85 } |
| 92 if (ReferenceEquals(other, this)) { | 86 if (ReferenceEquals(other, this)) { |
| 93 return true; | 87 return true; |
| 94 } | 88 } |
| 95 return true; | 89 return true; |
| 96 } | 90 } |
| 97 | 91 |
| 98 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 99 public override int GetHashCode() { | 92 public override int GetHashCode() { |
| 100 int hash = 1; | 93 int hash = 1; |
| 101 return hash; | 94 return hash; |
| 102 } | 95 } |
| 103 | 96 |
| 104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 105 public override string ToString() { | 97 public override string ToString() { |
| 106 return pb::JsonFormatter.ToDiagnosticString(this); | 98 return pb::JsonFormatter.ToDiagnosticString(this); |
| 107 } | 99 } |
| 108 | 100 |
| 109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 110 public void WriteTo(pb::CodedOutputStream output) { | 101 public void WriteTo(pb::CodedOutputStream output) { |
| 111 } | 102 } |
| 112 | 103 |
| 113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 114 public int CalculateSize() { | 104 public int CalculateSize() { |
| 115 int size = 0; | 105 int size = 0; |
| 116 return size; | 106 return size; |
| 117 } | 107 } |
| 118 | 108 |
| 119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 120 public void MergeFrom(Empty other) { | 109 public void MergeFrom(Empty other) { |
| 121 if (other == null) { | 110 if (other == null) { |
| 122 return; | 111 return; |
| 123 } | 112 } |
| 124 } | 113 } |
| 125 | 114 |
| 126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] | |
| 127 public void MergeFrom(pb::CodedInputStream input) { | 115 public void MergeFrom(pb::CodedInputStream input) { |
| 128 uint tag; | 116 uint tag; |
| 129 while ((tag = input.ReadTag()) != 0) { | 117 while ((tag = input.ReadTag()) != 0) { |
| 130 switch(tag) { | 118 switch(tag) { |
| 131 default: | 119 default: |
| 132 input.SkipLastField(); | 120 input.SkipLastField(); |
| 133 break; | 121 break; |
| 134 } | 122 } |
| 135 } | 123 } |
| 136 } | 124 } |
| 137 | 125 |
| 138 } | 126 } |
| 139 | 127 |
| 140 #endregion | 128 #endregion |
| 141 | 129 |
| 142 } | 130 } |
| 143 | 131 |
| 144 #endregion Designer generated code | 132 #endregion Designer generated code |
| OLD | NEW |