Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/Empty.cs

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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()]
14 public static partial class EmptyReflection { 13 public static partial class EmptyReflection {
15 14
16 #region Descriptor 15 #region Descriptor
17 /// <summary>File descriptor for google/protobuf/empty.proto</summary> 16 /// <summary>File descriptor for google/protobuf/empty.proto</summary>
18 public static pbr::FileDescriptor Descriptor { 17 public static pbr::FileDescriptor Descriptor {
19 get { return descriptor; } 18 get { return descriptor; }
20 } 19 }
21 private static pbr::FileDescriptor descriptor; 20 private static pbr::FileDescriptor descriptor;
22 21
23 static EmptyReflection() { 22 static EmptyReflection() {
24 byte[] descriptorData = global::System.Convert.FromBase64String( 23 byte[] descriptorData = global::System.Convert.FromBase64String(
25 string.Concat( 24 string.Concat(
26 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", 25 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1",
27 "ZiIHCgVFbXB0eUJ5ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", 26 "ZiIHCgVFbXB0eUJ2ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv",
28 "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0eaAB", 27 "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0efgB",
29 "AfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", 28 "AaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJv",
30 "cHJvdG8z")); 29 "dG8z"));
31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 30 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
32 new pbr::FileDescriptor[] { }, 31 new pbr::FileDescriptor[] { },
33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { 32 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno wnTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null, null, null) 33 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno wnTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null, null, null)
35 })); 34 }));
36 } 35 }
37 #endregion 36 #endregion
38 37
39 } 38 }
40 #region Messages 39 #region Messages
41 /// <summary> 40 /// <summary>
42 /// A generic empty message that you can re-use to avoid defining duplicated 41 /// A generic empty message that you can re-use to avoid defining duplicated
43 /// empty messages in your APIs. A typical example is to use it as the reques t 42 /// empty messages in your APIs. A typical example is to use it as the request
44 /// or the response type of an API method. For instance: 43 /// or the response type of an API method. For instance:
45 /// 44 ///
46 /// service Foo { 45 /// service Foo {
47 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 46 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
48 /// } 47 /// }
49 /// 48 ///
50 /// The JSON representation for `Empty` is empty JSON object `{}`. 49 /// The JSON representation for `Empty` is empty JSON object `{}`.
51 /// </summary> 50 /// </summary>
52 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
53 public sealed partial class Empty : pb::IMessage<Empty> { 51 public sealed partial class Empty : pb::IMessage<Empty> {
54 private static readonly pb::MessageParser<Empty> _parser = new pb::MessagePa rser<Empty>(() => new Empty()); 52 private static readonly pb::MessageParser<Empty> _parser = new pb::MessagePa rser<Empty>(() => new Empty());
53 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
55 public static pb::MessageParser<Empty> Parser { get { return _parser; } } 54 public static pb::MessageParser<Empty> Parser { get { return _parser; } }
56 55
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]
61 pbr::MessageDescriptor pb::IMessage.Descriptor { 62 pbr::MessageDescriptor pb::IMessage.Descriptor {
62 get { return Descriptor; } 63 get { return Descriptor; }
63 } 64 }
64 65
66 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
65 public Empty() { 67 public Empty() {
66 OnConstruction(); 68 OnConstruction();
67 } 69 }
68 70
69 partial void OnConstruction(); 71 partial void OnConstruction();
70 72
73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
71 public Empty(Empty other) : this() { 74 public Empty(Empty other) : this() {
72 } 75 }
73 76
77 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74 public Empty Clone() { 78 public Empty Clone() {
75 return new Empty(this); 79 return new Empty(this);
76 } 80 }
77 81
82 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
78 public override bool Equals(object other) { 83 public override bool Equals(object other) {
79 return Equals(other as Empty); 84 return Equals(other as Empty);
80 } 85 }
81 86
87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
82 public bool Equals(Empty other) { 88 public bool Equals(Empty other) {
83 if (ReferenceEquals(other, null)) { 89 if (ReferenceEquals(other, null)) {
84 return false; 90 return false;
85 } 91 }
86 if (ReferenceEquals(other, this)) { 92 if (ReferenceEquals(other, this)) {
87 return true; 93 return true;
88 } 94 }
89 return true; 95 return true;
90 } 96 }
91 97
98 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92 public override int GetHashCode() { 99 public override int GetHashCode() {
93 int hash = 1; 100 int hash = 1;
94 return hash; 101 return hash;
95 } 102 }
96 103
104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
97 public override string ToString() { 105 public override string ToString() {
98 return pb::JsonFormatter.ToDiagnosticString(this); 106 return pb::JsonFormatter.ToDiagnosticString(this);
99 } 107 }
100 108
109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
101 public void WriteTo(pb::CodedOutputStream output) { 110 public void WriteTo(pb::CodedOutputStream output) {
102 } 111 }
103 112
113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
104 public int CalculateSize() { 114 public int CalculateSize() {
105 int size = 0; 115 int size = 0;
106 return size; 116 return size;
107 } 117 }
108 118
119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109 public void MergeFrom(Empty other) { 120 public void MergeFrom(Empty other) {
110 if (other == null) { 121 if (other == null) {
111 return; 122 return;
112 } 123 }
113 } 124 }
114 125
126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
115 public void MergeFrom(pb::CodedInputStream input) { 127 public void MergeFrom(pb::CodedInputStream input) {
116 uint tag; 128 uint tag;
117 while ((tag = input.ReadTag()) != 0) { 129 while ((tag = input.ReadTag()) != 0) {
118 switch(tag) { 130 switch(tag) {
119 default: 131 default:
120 input.SkipLastField(); 132 input.SkipLastField();
121 break; 133 break;
122 } 134 }
123 } 135 }
124 } 136 }
125 137
126 } 138 }
127 139
128 #endregion 140 #endregion
129 141
130 } 142 }
131 143
132 #endregion Designer generated code 144 #endregion Designer generated code
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698