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

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: 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/unittest_import_public_proto3.proto 2 // source: google/protobuf/unittest_import_public_proto3.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.TestProtos { 10 namespace Google.Protobuf.TestProtos {
11 11
12 /// <summary>Holder for reflection information generated from google/protobuf/ unittest_import_public_proto3.proto</summary> 12 /// <summary>Holder for reflection information generated from google/protobuf/ unittest_import_public_proto3.proto</summary>
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13 public static partial class UnittestImportPublicProto3Reflection { 14 public static partial class UnittestImportPublicProto3Reflection {
14 15
15 #region Descriptor 16 #region Descriptor
16 /// <summary>File descriptor for google/protobuf/unittest_import_public_prot o3.proto</summary> 17 /// <summary>File descriptor for google/protobuf/unittest_import_public_prot o3.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 UnittestImportPublicProto3Reflection() { 23 static UnittestImportPublicProto3Reflection() {
23 byte[] descriptorData = global::System.Convert.FromBase64String( 24 byte[] descriptorData = global::System.Convert.FromBase64String(
24 string.Concat( 25 string.Concat(
25 "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90", 26 "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90",
26 "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ", 27 "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ",
27 "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1", 28 "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1",
28 "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); 29 "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
29 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 30 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
30 new pbr::FileDescriptor[] { }, 31 new pbr::FileDescriptor[] { },
31 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { 32 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
32 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage .Parser, new[]{ "E" }, null, null, null) 33 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage .Parser, new[]{ "E" }, null, null, null)
33 })); 34 }));
34 } 35 }
35 #endregion 36 #endregion
36 37
37 } 38 }
38 #region Messages 39 #region Messages
40 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
39 public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMes sage> { 41 public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMes sage> {
40 private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage()); 42 private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
41 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
42 public static pb::MessageParser<PublicImportMessage> Parser { get { return _ parser; } } 43 public static pb::MessageParser<PublicImportMessage> Parser { get { return _ parser; } }
43 44
44 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
45 public static pbr::MessageDescriptor Descriptor { 45 public static pbr::MessageDescriptor Descriptor {
46 get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3 Reflection.Descriptor.MessageTypes[0]; } 46 get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3 Reflection.Descriptor.MessageTypes[0]; }
47 } 47 }
48 48
49 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
50 pbr::MessageDescriptor pb::IMessage.Descriptor { 49 pbr::MessageDescriptor pb::IMessage.Descriptor {
51 get { return Descriptor; } 50 get { return Descriptor; }
52 } 51 }
53 52
54 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
55 public PublicImportMessage() { 53 public PublicImportMessage() {
56 OnConstruction(); 54 OnConstruction();
57 } 55 }
58 56
59 partial void OnConstruction(); 57 partial void OnConstruction();
60 58
61 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
62 public PublicImportMessage(PublicImportMessage other) : this() { 59 public PublicImportMessage(PublicImportMessage other) : this() {
63 e_ = other.e_; 60 e_ = other.e_;
64 } 61 }
65 62
66 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
67 public PublicImportMessage Clone() { 63 public PublicImportMessage Clone() {
68 return new PublicImportMessage(this); 64 return new PublicImportMessage(this);
69 } 65 }
70 66
71 /// <summary>Field number for the "e" field.</summary> 67 /// <summary>Field number for the "e" field.</summary>
72 public const int EFieldNumber = 1; 68 public const int EFieldNumber = 1;
73 private int e_; 69 private int e_;
74 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
75 public int E { 70 public int E {
76 get { return e_; } 71 get { return e_; }
77 set { 72 set {
78 e_ = value; 73 e_ = value;
79 } 74 }
80 } 75 }
81 76
82 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
83 public override bool Equals(object other) { 77 public override bool Equals(object other) {
84 return Equals(other as PublicImportMessage); 78 return Equals(other as PublicImportMessage);
85 } 79 }
86 80
87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88 public bool Equals(PublicImportMessage other) { 81 public bool Equals(PublicImportMessage other) {
89 if (ReferenceEquals(other, null)) { 82 if (ReferenceEquals(other, null)) {
90 return false; 83 return false;
91 } 84 }
92 if (ReferenceEquals(other, this)) { 85 if (ReferenceEquals(other, this)) {
93 return true; 86 return true;
94 } 87 }
95 if (E != other.E) return false; 88 if (E != other.E) return false;
96 return true; 89 return true;
97 } 90 }
98 91
99 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
100 public override int GetHashCode() { 92 public override int GetHashCode() {
101 int hash = 1; 93 int hash = 1;
102 if (E != 0) hash ^= E.GetHashCode(); 94 if (E != 0) hash ^= E.GetHashCode();
103 return hash; 95 return hash;
104 } 96 }
105 97
106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
107 public override string ToString() { 98 public override string ToString() {
108 return pb::JsonFormatter.ToDiagnosticString(this); 99 return pb::JsonFormatter.ToDiagnosticString(this);
109 } 100 }
110 101
111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
112 public void WriteTo(pb::CodedOutputStream output) { 102 public void WriteTo(pb::CodedOutputStream output) {
113 if (E != 0) { 103 if (E != 0) {
114 output.WriteRawTag(8); 104 output.WriteRawTag(8);
115 output.WriteInt32(E); 105 output.WriteInt32(E);
116 } 106 }
117 } 107 }
118 108
119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120 public int CalculateSize() { 109 public int CalculateSize() {
121 int size = 0; 110 int size = 0;
122 if (E != 0) { 111 if (E != 0) {
123 size += 1 + pb::CodedOutputStream.ComputeInt32Size(E); 112 size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
124 } 113 }
125 return size; 114 return size;
126 } 115 }
127 116
128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129 public void MergeFrom(PublicImportMessage other) { 117 public void MergeFrom(PublicImportMessage other) {
130 if (other == null) { 118 if (other == null) {
131 return; 119 return;
132 } 120 }
133 if (other.E != 0) { 121 if (other.E != 0) {
134 E = other.E; 122 E = other.E;
135 } 123 }
136 } 124 }
137 125
138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
139 public void MergeFrom(pb::CodedInputStream input) { 126 public void MergeFrom(pb::CodedInputStream input) {
140 uint tag; 127 uint tag;
141 while ((tag = input.ReadTag()) != 0) { 128 while ((tag = input.ReadTag()) != 0) {
142 switch(tag) { 129 switch(tag) {
143 default: 130 default:
144 input.SkipLastField(); 131 input.SkipLastField();
145 break; 132 break;
146 case 8: { 133 case 8: {
147 E = input.ReadInt32(); 134 E = input.ReadInt32();
148 break; 135 break;
149 } 136 }
150 } 137 }
151 } 138 }
152 } 139 }
153 140
154 } 141 }
155 142
156 #endregion 143 #endregion
157 144
158 } 145 }
159 146
160 #endregion Designer generated code 147 #endregion Designer generated code
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698