Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Int128.pb.cs
Go to the documentation of this file.
1// <auto-generated>
2// Generated by the protocol buffer compiler. DO NOT EDIT!
3// source: ortools/util/int128.proto
4// </auto-generated>
5#pragma warning disable 1591, 0612, 3021, 8981
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
12namespace Google.OrTools.Util {
13
15 public static partial class Int128Reflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static Int128Reflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "ChlvcnRvb2xzL3V0aWwvaW50MTI4LnByb3RvEhNvcGVyYXRpb25zX3Jlc2Vh",
28 "cmNoIiMKBkludDEyOBIMCgRoaWdoGAEgASgDEgsKA2xvdxgCIAEoBEIxChdj",
29 "b20uZ29vZ2xlLm9ydG9vbHMudXRpbFABqgITR29vZ2xlLk9yVG9vbHMuVXRp",
30 "bGIGcHJvdG8z"));
31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
32 new pbr::FileDescriptor[] { },
33 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Util.Int128), global::Google.OrTools.Util.Int128.Parser, new[]{ "High", "Low" }, null, null, null, null)
35 }));
36 }
37 #endregion
38
39 }
40 #region Messages
45 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
46 public sealed partial class Int128 : pb::IMessage<Int128>
47 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
48 , pb::IBufferMessage
49 #endif
50 {
51 private static readonly pb::MessageParser<Int128> _parser = new pb::MessageParser<Int128>(() => new Int128());
52 private pb::UnknownFieldSet _unknownFields;
53 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
54 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
55 public static pb::MessageParser<Int128> Parser { get { return _parser; } }
56
57 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
58 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
59 public static pbr::MessageDescriptor Descriptor {
60 get { return global::Google.OrTools.Util.Int128Reflection.Descriptor.MessageTypes[0]; }
61 }
62
63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
65 pbr::MessageDescriptor pb::IMessage.Descriptor {
66 get { return Descriptor; }
67 }
68
69 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
71 public Int128() {
72 OnConstruction();
73 }
74
75 partial void OnConstruction();
76
77 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
78 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
79 public Int128(Int128 other) : this() {
80 high_ = other.high_;
81 low_ = other.low_;
82 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
83 }
84
85 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
87 public Int128 Clone() {
88 return new Int128(this);
89 }
90
92 public const int HighFieldNumber = 1;
93 private long high_;
94 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
95 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
96 public long High {
97 get { return high_; }
98 set {
99 high_ = value;
100 }
101 }
102
104 public const int LowFieldNumber = 2;
105 private ulong low_;
106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
107 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
108 public ulong Low {
109 get { return low_; }
110 set {
111 low_ = value;
112 }
113 }
114
115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
117 public override bool Equals(object other) {
118 return Equals(other as Int128);
119 }
120
121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
123 public bool Equals(Int128 other) {
124 if (ReferenceEquals(other, null)) {
125 return false;
126 }
127 if (ReferenceEquals(other, this)) {
128 return true;
129 }
130 if (High != other.High) return false;
131 if (Low != other.Low) return false;
132 return Equals(_unknownFields, other._unknownFields);
133 }
134
135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
137 public override int GetHashCode() {
138 int hash = 1;
139 if (High != 0L) hash ^= High.GetHashCode();
140 if (Low != 0UL) hash ^= Low.GetHashCode();
141 if (_unknownFields != null) {
142 hash ^= _unknownFields.GetHashCode();
143 }
144 return hash;
145 }
146
147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
149 public override string ToString() {
150 return pb::JsonFormatter.ToDiagnosticString(this);
151 }
152
153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
155 public void WriteTo(pb::CodedOutputStream output) {
156 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
157 output.WriteRawMessage(this);
158 #else
159 if (High != 0L) {
160 output.WriteRawTag(8);
161 output.WriteInt64(High);
162 }
163 if (Low != 0UL) {
164 output.WriteRawTag(16);
165 output.WriteUInt64(Low);
166 }
167 if (_unknownFields != null) {
168 _unknownFields.WriteTo(output);
169 }
170 #endif
171 }
172
173 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
175 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
176 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
177 if (High != 0L) {
178 output.WriteRawTag(8);
179 output.WriteInt64(High);
180 }
181 if (Low != 0UL) {
182 output.WriteRawTag(16);
183 output.WriteUInt64(Low);
184 }
185 if (_unknownFields != null) {
186 _unknownFields.WriteTo(ref output);
187 }
188 }
189 #endif
190
191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
193 public int CalculateSize() {
194 int size = 0;
195 if (High != 0L) {
196 size += 1 + pb::CodedOutputStream.ComputeInt64Size(High);
197 }
198 if (Low != 0UL) {
199 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Low);
200 }
201 if (_unknownFields != null) {
202 size += _unknownFields.CalculateSize();
203 }
204 return size;
205 }
206
207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
209 public void MergeFrom(Int128 other) {
210 if (other == null) {
211 return;
212 }
213 if (other.High != 0L) {
214 High = other.High;
215 }
216 if (other.Low != 0UL) {
217 Low = other.Low;
218 }
219 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
220 }
221
222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
223 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
224 public void MergeFrom(pb::CodedInputStream input) {
225 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
226 input.ReadRawMessage(this);
227 #else
228 uint tag;
229 while ((tag = input.ReadTag()) != 0) {
230 switch(tag) {
231 default:
232 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
233 break;
234 case 8: {
235 High = input.ReadInt64();
236 break;
237 }
238 case 16: {
239 Low = input.ReadUInt64();
240 break;
241 }
242 }
243 }
244 #endif
245 }
246
247 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
250 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
251 uint tag;
252 while ((tag = input.ReadTag()) != 0) {
253 switch(tag) {
254 default:
255 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
256 break;
257 case 8: {
258 High = input.ReadInt64();
259 break;
260 }
261 case 16: {
262 Low = input.ReadUInt64();
263 break;
264 }
265 }
266 }
267 }
268 #endif
269
270 }
271
272 #endregion
273
274}
275
276#endregion Designer generated code
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Definition SetCover.pb.cs:9
global::Google.Protobuf pb
Definition SetCover.pb.cs:8
Holder for reflection information generated from ortools/util/int128.proto.
Definition Int128.pb.cs:15
static pbr::FileDescriptor Descriptor
File descriptor for ortools/util/int128.proto.
Definition Int128.pb.cs:19
The low 64 bits are stored in "low", and the high 64-bits (including the sign) are stored in "high".
Definition Int128.pb.cs:50
override string ToString()
Definition Int128.pb.cs:149
override bool Equals(object other)
Definition Int128.pb.cs:117
const int HighFieldNumber
Field number for the "high" field.
Definition Int128.pb.cs:92
override int GetHashCode()
Definition Int128.pb.cs:137
void WriteTo(pb::CodedOutputStream output)
Definition Int128.pb.cs:155
bool Equals(Int128 other)
Definition Int128.pb.cs:123
void MergeFrom(pb::CodedInputStream input)
Definition Int128.pb.cs:224
const int LowFieldNumber
Field number for the "low" field.
Definition Int128.pb.cs:104
static pbr::MessageDescriptor Descriptor
Definition Int128.pb.cs:59
void MergeFrom(Int128 other)
Definition Int128.pb.cs:209
static pb::MessageParser< Int128 > Parser
Definition Int128.pb.cs:55