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

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

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 months 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/source_context.proto 2 // source: google/protobuf/source_context.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/ source_context.proto</summary> 12 /// <summary>Holder for reflection information generated from google/protobuf/ source_context.proto</summary>
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13 public static partial class SourceContextReflection { 14 public static partial class SourceContextReflection {
14 15
15 #region Descriptor 16 #region Descriptor
16 /// <summary>File descriptor for google/protobuf/source_context.proto</summa ry> 17 /// <summary>File descriptor for google/protobuf/source_context.proto</summa ry>
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 SourceContextReflection() { 23 static SourceContextReflection() {
23 byte[] descriptorData = global::System.Convert.FromBase64String( 24 byte[] descriptorData = global::System.Convert.FromBase64String(
24 string.Concat( 25 string.Concat(
25 "CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds", 26 "CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds",
26 "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo", 27 "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo",
27 "CUKVAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3Rv", 28 "CUJVChNjb20uZ29vZ2xlLnByb3RvYnVmQhJTb3VyY2VDb250ZXh0UHJvdG9Q",
28 "UAFaQWdvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL3Byb3RvYnVmL3NvdXJj", 29 "AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG",
29 "ZV9jb250ZXh0O3NvdXJjZV9jb250ZXh0ogIDR1BCqgIeR29vZ2xlLlByb3Rv", 30 "cHJvdG8z"));
30 "YnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM="));
31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
32 new pbr::FileDescriptor[] { }, 32 new pbr::FileDescriptor[] { },
33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { 33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno wnTypes.SourceContext), global::Google.Protobuf.WellKnownTypes.SourceContext.Par ser, new[]{ "FileName" }, null, null, null) 34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKno wnTypes.SourceContext), global::Google.Protobuf.WellKnownTypes.SourceContext.Par ser, new[]{ "FileName" }, null, null, null)
35 })); 35 }));
36 } 36 }
37 #endregion 37 #endregion
38 38
39 } 39 }
40 #region Messages 40 #region Messages
41 /// <summary> 41 /// <summary>
42 /// `SourceContext` represents information about the source of a 42 /// `SourceContext` represents information about the source of a
43 /// protobuf element, like the file in which it is defined. 43 /// protobuf element, like the file in which it is defined.
44 /// </summary> 44 /// </summary>
45 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
45 public sealed partial class SourceContext : pb::IMessage<SourceContext> { 46 public sealed partial class SourceContext : pb::IMessage<SourceContext> {
46 private static readonly pb::MessageParser<SourceContext> _parser = new pb::M essageParser<SourceContext>(() => new SourceContext()); 47 private static readonly pb::MessageParser<SourceContext> _parser = new pb::M essageParser<SourceContext>(() => new SourceContext());
47 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
48 public static pb::MessageParser<SourceContext> Parser { get { return _parser ; } } 48 public static pb::MessageParser<SourceContext> Parser { get { return _parser ; } }
49 49
50 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
51 public static pbr::MessageDescriptor Descriptor { 50 public static pbr::MessageDescriptor Descriptor {
52 get { return global::Google.Protobuf.WellKnownTypes.SourceContextReflectio n.Descriptor.MessageTypes[0]; } 51 get { return global::Google.Protobuf.WellKnownTypes.SourceContextReflectio n.Descriptor.MessageTypes[0]; }
53 } 52 }
54 53
55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56 pbr::MessageDescriptor pb::IMessage.Descriptor { 54 pbr::MessageDescriptor pb::IMessage.Descriptor {
57 get { return Descriptor; } 55 get { return Descriptor; }
58 } 56 }
59 57
60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
61 public SourceContext() { 58 public SourceContext() {
62 OnConstruction(); 59 OnConstruction();
63 } 60 }
64 61
65 partial void OnConstruction(); 62 partial void OnConstruction();
66 63
67 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
68 public SourceContext(SourceContext other) : this() { 64 public SourceContext(SourceContext other) : this() {
69 fileName_ = other.fileName_; 65 fileName_ = other.fileName_;
70 } 66 }
71 67
72 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
73 public SourceContext Clone() { 68 public SourceContext Clone() {
74 return new SourceContext(this); 69 return new SourceContext(this);
75 } 70 }
76 71
77 /// <summary>Field number for the "file_name" field.</summary> 72 /// <summary>Field number for the "file_name" field.</summary>
78 public const int FileNameFieldNumber = 1; 73 public const int FileNameFieldNumber = 1;
79 private string fileName_ = ""; 74 private string fileName_ = "";
80 /// <summary> 75 /// <summary>
81 /// The path-qualified name of the .proto file that contained the associated 76 /// The path-qualified name of the .proto file that contained the associate d
82 /// protobuf element. For example: `"google/protobuf/source_context.proto"` . 77 /// protobuf element. For example: `"google/protobuf/source.proto"`.
83 /// </summary> 78 /// </summary>
84 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
85 public string FileName { 79 public string FileName {
86 get { return fileName_; } 80 get { return fileName_; }
87 set { 81 set {
88 fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 82 fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
89 } 83 }
90 } 84 }
91 85
92 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
93 public override bool Equals(object other) { 86 public override bool Equals(object other) {
94 return Equals(other as SourceContext); 87 return Equals(other as SourceContext);
95 } 88 }
96 89
97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98 public bool Equals(SourceContext other) { 90 public bool Equals(SourceContext other) {
99 if (ReferenceEquals(other, null)) { 91 if (ReferenceEquals(other, null)) {
100 return false; 92 return false;
101 } 93 }
102 if (ReferenceEquals(other, this)) { 94 if (ReferenceEquals(other, this)) {
103 return true; 95 return true;
104 } 96 }
105 if (FileName != other.FileName) return false; 97 if (FileName != other.FileName) return false;
106 return true; 98 return true;
107 } 99 }
108 100
109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
110 public override int GetHashCode() { 101 public override int GetHashCode() {
111 int hash = 1; 102 int hash = 1;
112 if (FileName.Length != 0) hash ^= FileName.GetHashCode(); 103 if (FileName.Length != 0) hash ^= FileName.GetHashCode();
113 return hash; 104 return hash;
114 } 105 }
115 106
116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
117 public override string ToString() { 107 public override string ToString() {
118 return pb::JsonFormatter.ToDiagnosticString(this); 108 return pb::JsonFormatter.ToDiagnosticString(this);
119 } 109 }
120 110
121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
122 public void WriteTo(pb::CodedOutputStream output) { 111 public void WriteTo(pb::CodedOutputStream output) {
123 if (FileName.Length != 0) { 112 if (FileName.Length != 0) {
124 output.WriteRawTag(10); 113 output.WriteRawTag(10);
125 output.WriteString(FileName); 114 output.WriteString(FileName);
126 } 115 }
127 } 116 }
128 117
129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
130 public int CalculateSize() { 118 public int CalculateSize() {
131 int size = 0; 119 int size = 0;
132 if (FileName.Length != 0) { 120 if (FileName.Length != 0) {
133 size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); 121 size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName);
134 } 122 }
135 return size; 123 return size;
136 } 124 }
137 125
138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
139 public void MergeFrom(SourceContext other) { 126 public void MergeFrom(SourceContext other) {
140 if (other == null) { 127 if (other == null) {
141 return; 128 return;
142 } 129 }
143 if (other.FileName.Length != 0) { 130 if (other.FileName.Length != 0) {
144 FileName = other.FileName; 131 FileName = other.FileName;
145 } 132 }
146 } 133 }
147 134
148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
149 public void MergeFrom(pb::CodedInputStream input) { 135 public void MergeFrom(pb::CodedInputStream input) {
150 uint tag; 136 uint tag;
151 while ((tag = input.ReadTag()) != 0) { 137 while ((tag = input.ReadTag()) != 0) {
152 switch(tag) { 138 switch(tag) {
153 default: 139 default:
154 input.SkipLastField(); 140 input.SkipLastField();
155 break; 141 break;
156 case 10: { 142 case 10: {
157 FileName = input.ReadString(); 143 FileName = input.ReadString();
158 break; 144 break;
159 } 145 }
160 } 146 }
161 } 147 }
162 } 148 }
163 149
164 } 150 }
165 151
166 #endregion 152 #endregion
167 153
168 } 154 }
169 155
170 #endregion Designer generated code 156 #endregion Designer generated code
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698