Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SearchStats.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/constraint_solver/search_stats.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;
13
15 public static partial class SearchStatsReflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static SearchStatsReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "CixvcnRvb2xzL2NvbnN0cmFpbnRfc29sdmVyL3NlYXJjaF9zdGF0cy5wcm90",
28 "bxITb3BlcmF0aW9uc19yZXNlYXJjaCLLBwoVTG9jYWxTZWFyY2hTdGF0aXN0",
29 "aWNzEmUKGWZpcnN0X3NvbHV0aW9uX3N0YXRpc3RpY3MYBiADKAsyQi5vcGVy",
30 "YXRpb25zX3Jlc2VhcmNoLkxvY2FsU2VhcmNoU3RhdGlzdGljcy5GaXJzdFNv",
31 "bHV0aW9uU3RhdGlzdGljcxJyCiBsb2NhbF9zZWFyY2hfb3BlcmF0b3Jfc3Rh",
32 "dGlzdGljcxgBIAMoCzJILm9wZXJhdGlvbnNfcmVzZWFyY2guTG9jYWxTZWFy",
33 "Y2hTdGF0aXN0aWNzLkxvY2FsU2VhcmNoT3BlcmF0b3JTdGF0aXN0aWNzEhsK",
34 "E3RvdGFsX251bV9uZWlnaGJvcnMYAyABKAMSJAocdG90YWxfbnVtX2ZpbHRl",
35 "cmVkX25laWdoYm9ycxgEIAEoAxIkChx0b3RhbF9udW1fYWNjZXB0ZWRfbmVp",
36 "Z2hib3JzGAUgASgDEm4KHmxvY2FsX3NlYXJjaF9maWx0ZXJfc3RhdGlzdGlj",
37 "cxgCIAMoCzJGLm9wZXJhdGlvbnNfcmVzZWFyY2guTG9jYWxTZWFyY2hTdGF0",
38 "aXN0aWNzLkxvY2FsU2VhcmNoRmlsdGVyU3RhdGlzdGljcxpFChdGaXJzdFNv",
39 "bHV0aW9uU3RhdGlzdGljcxIQCghzdHJhdGVneRgBIAEoCRIYChBkdXJhdGlv",
40 "bl9zZWNvbmRzGAIgASgBGoYCCh1Mb2NhbFNlYXJjaE9wZXJhdG9yU3RhdGlz",
41 "dGljcxIdChVsb2NhbF9zZWFyY2hfb3BlcmF0b3IYASABKAkSFQoNbnVtX25l",
42 "aWdoYm9ycxgCIAEoAxIeChZudW1fZmlsdGVyZWRfbmVpZ2hib3JzGAMgASgD",
43 "Eh4KFm51bV9hY2NlcHRlZF9uZWlnaGJvcnMYBCABKAMSGAoQZHVyYXRpb25f",
44 "c2Vjb25kcxgFIAEoARIrCiNtYWtlX25leHRfbmVpZ2hib3JfZHVyYXRpb25f",
45 "c2Vjb25kcxgGIAEoARIoCiBhY2NlcHRfbmVpZ2hib3JfZHVyYXRpb25fc2Vj",
46 "b25kcxgHIAEoARqtAQobTG9jYWxTZWFyY2hGaWx0ZXJTdGF0aXN0aWNzEhsK",
47 "E2xvY2FsX3NlYXJjaF9maWx0ZXIYASABKAkSEQoJbnVtX2NhbGxzGAIgASgD",
48 "EhMKC251bV9yZWplY3RzGAMgASgDEhgKEGR1cmF0aW9uX3NlY29uZHMYBCAB",
49 "KAESHgoWbnVtX3JlamVjdHNfcGVyX3NlY29uZBgFIAEoARIPCgdjb250ZXh0",
50 "GAYgASgJIo0BChpDb25zdHJhaW50U29sdmVyU3RhdGlzdGljcxIUCgxudW1f",
51 "YnJhbmNoZXMYASABKAMSFAoMbnVtX2ZhaWx1cmVzGAIgASgDEhUKDW51bV9z",
52 "b2x1dGlvbnMYAyABKAMSEgoKYnl0ZXNfdXNlZBgEIAEoAxIYChBkdXJhdGlv",
53 "bl9zZWNvbmRzGAUgASgBIooBChNTdWJTb2x2ZXJTdGF0aXN0aWNzEicKH251",
54 "bV9nbG9wX2NhbGxzX2luX2xwX3NjaGVkdWxpbmcYASABKAMSKQohbnVtX2Nw",
55 "X3NhdF9jYWxsc19pbl9scF9zY2hlZHVsaW5nGAIgASgDEh8KF251bV9taW5f",
56 "Y29zdF9mbG93X2NhbGxzGAMgASgDIv8BChBTZWFyY2hTdGF0aXN0aWNzEksK",
57 "F2xvY2FsX3NlYXJjaF9zdGF0aXN0aWNzGAEgAygLMioub3BlcmF0aW9uc19y",
58 "ZXNlYXJjaC5Mb2NhbFNlYXJjaFN0YXRpc3RpY3MSVQocY29uc3RyYWludF9z",
59 "b2x2ZXJfc3RhdGlzdGljcxgCIAMoCzIvLm9wZXJhdGlvbnNfcmVzZWFyY2gu",
60 "Q29uc3RyYWludFNvbHZlclN0YXRpc3RpY3MSRwoVc3ViX3NvbHZlcl9zdGF0",
61 "aXN0aWNzGAMgAygLMigub3BlcmF0aW9uc19yZXNlYXJjaC5TdWJTb2x2ZXJT",
62 "dGF0aXN0aWNzQkkKI2NvbS5nb29nbGUub3J0b29scy5jb25zdHJhaW50c29s",
63 "dmVyUAGqAh9Hb29nbGUuT3JUb29scy5Db25zdHJhaW50U29sdmVyYgZwcm90",
64 "bzM="));
65 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
66 new pbr::FileDescriptor[] { },
67 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
68 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.LocalSearchStatistics), global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Parser, new[]{ "FirstSolutionStatistics", "LocalSearchOperatorStatistics", "TotalNumNeighbors", "TotalNumFilteredNeighbors", "TotalNumAcceptedNeighbors", "LocalSearchFilterStatistics" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics), global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics.Parser, new[]{ "Strategy", "DurationSeconds" }, null, null, null, null),
69 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics), global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics.Parser, new[]{ "LocalSearchOperator", "NumNeighbors", "NumFilteredNeighbors", "NumAcceptedNeighbors", "DurationSeconds", "MakeNextNeighborDurationSeconds", "AcceptNeighborDurationSeconds" }, null, null, null, null),
70 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics), global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics.Parser, new[]{ "LocalSearchFilter", "NumCalls", "NumRejects", "DurationSeconds", "NumRejectsPerSecond", "Context" }, null, null, null, null)}),
71 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics), global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics.Parser, new[]{ "NumBranches", "NumFailures", "NumSolutions", "BytesUsed", "DurationSeconds" }, null, null, null, null),
72 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.SubSolverStatistics), global::Google.OrTools.ConstraintSolver.SubSolverStatistics.Parser, new[]{ "NumGlopCallsInLpScheduling", "NumCpSatCallsInLpScheduling", "NumMinCostFlowCalls" }, null, null, null, null),
73 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.SearchStatistics), global::Google.OrTools.ConstraintSolver.SearchStatistics.Parser, new[]{ "LocalSearchStatistics", "ConstraintSolverStatistics", "SubSolverStatistics" }, null, null, null, null)
74 }));
75 }
76 #endregion
77
78 }
79 #region Messages
83 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
84 public sealed partial class LocalSearchStatistics : pb::IMessage<LocalSearchStatistics>
85 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
86 , pb::IBufferMessage
87 #endif
88 {
89 private static readonly pb::MessageParser<LocalSearchStatistics> _parser = new pb::MessageParser<LocalSearchStatistics>(() => new LocalSearchStatistics());
90 private pb::UnknownFieldSet _unknownFields;
91 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
93 public static pb::MessageParser<LocalSearchStatistics> Parser { get { return _parser; } }
94
95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
97 public static pbr::MessageDescriptor Descriptor {
98 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[0]; }
99 }
100
101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
103 pbr::MessageDescriptor pb::IMessage.Descriptor {
104 get { return Descriptor; }
105 }
106
107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
110 OnConstruction();
111 }
112
113 partial void OnConstruction();
114
115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
116 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
118 firstSolutionStatistics_ = other.firstSolutionStatistics_.Clone();
119 localSearchOperatorStatistics_ = other.localSearchOperatorStatistics_.Clone();
120 totalNumNeighbors_ = other.totalNumNeighbors_;
121 totalNumFilteredNeighbors_ = other.totalNumFilteredNeighbors_;
122 totalNumAcceptedNeighbors_ = other.totalNumAcceptedNeighbors_;
123 localSearchFilterStatistics_ = other.localSearchFilterStatistics_.Clone();
124 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
125 }
126
127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
130 return new LocalSearchStatistics(this);
131 }
132
135 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> _repeated_firstSolutionStatistics_codec
136 = pb::FieldCodec.ForMessage(50, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics.Parser);
137 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> firstSolutionStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics>();
141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
142 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
143 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> FirstSolutionStatistics {
144 get { return firstSolutionStatistics_; }
145 }
146
149 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> _repeated_localSearchOperatorStatistics_codec
150 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics.Parser);
151 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> localSearchOperatorStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics>();
155 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
156 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
157 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> LocalSearchOperatorStatistics {
158 get { return localSearchOperatorStatistics_; }
159 }
160
162 public const int TotalNumNeighborsFieldNumber = 3;
163 private long totalNumNeighbors_;
167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
169 public long TotalNumNeighbors {
170 get { return totalNumNeighbors_; }
171 set {
172 totalNumNeighbors_ = value;
173 }
174 }
175
178 private long totalNumFilteredNeighbors_;
179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
182 get { return totalNumFilteredNeighbors_; }
183 set {
184 totalNumFilteredNeighbors_ = value;
185 }
186 }
187
190 private long totalNumAcceptedNeighbors_;
191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
194 get { return totalNumAcceptedNeighbors_; }
195 set {
196 totalNumAcceptedNeighbors_ = value;
197 }
198 }
199
202 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> _repeated_localSearchFilterStatistics_codec
203 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics.Parser);
204 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> localSearchFilterStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics>();
208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
210 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> LocalSearchFilterStatistics {
211 get { return localSearchFilterStatistics_; }
212 }
213
214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
216 public override bool Equals(object other) {
217 return Equals(other as LocalSearchStatistics);
218 }
219
220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
222 public bool Equals(LocalSearchStatistics other) {
223 if (ReferenceEquals(other, null)) {
224 return false;
225 }
226 if (ReferenceEquals(other, this)) {
227 return true;
228 }
229 if(!firstSolutionStatistics_.Equals(other.firstSolutionStatistics_)) return false;
230 if(!localSearchOperatorStatistics_.Equals(other.localSearchOperatorStatistics_)) return false;
231 if (TotalNumNeighbors != other.TotalNumNeighbors) return false;
232 if (TotalNumFilteredNeighbors != other.TotalNumFilteredNeighbors) return false;
233 if (TotalNumAcceptedNeighbors != other.TotalNumAcceptedNeighbors) return false;
234 if(!localSearchFilterStatistics_.Equals(other.localSearchFilterStatistics_)) return false;
235 return Equals(_unknownFields, other._unknownFields);
236 }
237
238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
240 public override int GetHashCode() {
241 int hash = 1;
242 hash ^= firstSolutionStatistics_.GetHashCode();
243 hash ^= localSearchOperatorStatistics_.GetHashCode();
244 if (TotalNumNeighbors != 0L) hash ^= TotalNumNeighbors.GetHashCode();
245 if (TotalNumFilteredNeighbors != 0L) hash ^= TotalNumFilteredNeighbors.GetHashCode();
246 if (TotalNumAcceptedNeighbors != 0L) hash ^= TotalNumAcceptedNeighbors.GetHashCode();
247 hash ^= localSearchFilterStatistics_.GetHashCode();
248 if (_unknownFields != null) {
249 hash ^= _unknownFields.GetHashCode();
250 }
251 return hash;
252 }
253
254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
256 public override string ToString() {
257 return pb::JsonFormatter.ToDiagnosticString(this);
258 }
259
260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
261 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
262 public void WriteTo(pb::CodedOutputStream output) {
263 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
264 output.WriteRawMessage(this);
265 #else
266 localSearchOperatorStatistics_.WriteTo(output, _repeated_localSearchOperatorStatistics_codec);
267 localSearchFilterStatistics_.WriteTo(output, _repeated_localSearchFilterStatistics_codec);
268 if (TotalNumNeighbors != 0L) {
269 output.WriteRawTag(24);
270 output.WriteInt64(TotalNumNeighbors);
271 }
272 if (TotalNumFilteredNeighbors != 0L) {
273 output.WriteRawTag(32);
274 output.WriteInt64(TotalNumFilteredNeighbors);
275 }
276 if (TotalNumAcceptedNeighbors != 0L) {
277 output.WriteRawTag(40);
278 output.WriteInt64(TotalNumAcceptedNeighbors);
279 }
280 firstSolutionStatistics_.WriteTo(output, _repeated_firstSolutionStatistics_codec);
281 if (_unknownFields != null) {
282 _unknownFields.WriteTo(output);
283 }
284 #endif
285 }
286
287 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
290 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
291 localSearchOperatorStatistics_.WriteTo(ref output, _repeated_localSearchOperatorStatistics_codec);
292 localSearchFilterStatistics_.WriteTo(ref output, _repeated_localSearchFilterStatistics_codec);
293 if (TotalNumNeighbors != 0L) {
294 output.WriteRawTag(24);
295 output.WriteInt64(TotalNumNeighbors);
296 }
297 if (TotalNumFilteredNeighbors != 0L) {
298 output.WriteRawTag(32);
299 output.WriteInt64(TotalNumFilteredNeighbors);
300 }
301 if (TotalNumAcceptedNeighbors != 0L) {
302 output.WriteRawTag(40);
303 output.WriteInt64(TotalNumAcceptedNeighbors);
304 }
305 firstSolutionStatistics_.WriteTo(ref output, _repeated_firstSolutionStatistics_codec);
306 if (_unknownFields != null) {
307 _unknownFields.WriteTo(ref output);
308 }
309 }
310 #endif
311
312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
313 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
314 public int CalculateSize() {
315 int size = 0;
316 size += firstSolutionStatistics_.CalculateSize(_repeated_firstSolutionStatistics_codec);
317 size += localSearchOperatorStatistics_.CalculateSize(_repeated_localSearchOperatorStatistics_codec);
318 if (TotalNumNeighbors != 0L) {
319 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumNeighbors);
320 }
321 if (TotalNumFilteredNeighbors != 0L) {
322 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumFilteredNeighbors);
323 }
324 if (TotalNumAcceptedNeighbors != 0L) {
325 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumAcceptedNeighbors);
326 }
327 size += localSearchFilterStatistics_.CalculateSize(_repeated_localSearchFilterStatistics_codec);
328 if (_unknownFields != null) {
329 size += _unknownFields.CalculateSize();
330 }
331 return size;
332 }
333
334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
336 public void MergeFrom(LocalSearchStatistics other) {
337 if (other == null) {
338 return;
339 }
340 firstSolutionStatistics_.Add(other.firstSolutionStatistics_);
341 localSearchOperatorStatistics_.Add(other.localSearchOperatorStatistics_);
342 if (other.TotalNumNeighbors != 0L) {
344 }
345 if (other.TotalNumFilteredNeighbors != 0L) {
347 }
348 if (other.TotalNumAcceptedNeighbors != 0L) {
350 }
351 localSearchFilterStatistics_.Add(other.localSearchFilterStatistics_);
352 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
353 }
354
355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
356 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
357 public void MergeFrom(pb::CodedInputStream input) {
358 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
359 input.ReadRawMessage(this);
360 #else
361 uint tag;
362 while ((tag = input.ReadTag()) != 0) {
363 if ((tag & 7) == 4) {
364 // Abort on any end group tag.
365 return;
366 }
367 switch(tag) {
368 default:
369 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
370 break;
371 case 10: {
372 localSearchOperatorStatistics_.AddEntriesFrom(input, _repeated_localSearchOperatorStatistics_codec);
373 break;
374 }
375 case 18: {
376 localSearchFilterStatistics_.AddEntriesFrom(input, _repeated_localSearchFilterStatistics_codec);
377 break;
378 }
379 case 24: {
380 TotalNumNeighbors = input.ReadInt64();
381 break;
382 }
383 case 32: {
384 TotalNumFilteredNeighbors = input.ReadInt64();
385 break;
386 }
387 case 40: {
388 TotalNumAcceptedNeighbors = input.ReadInt64();
389 break;
390 }
391 case 50: {
392 firstSolutionStatistics_.AddEntriesFrom(input, _repeated_firstSolutionStatistics_codec);
393 break;
394 }
395 }
396 }
397 #endif
398 }
399
400 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
403 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
404 uint tag;
405 while ((tag = input.ReadTag()) != 0) {
406 if ((tag & 7) == 4) {
407 // Abort on any end group tag.
408 return;
409 }
410 switch(tag) {
411 default:
412 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
413 break;
414 case 10: {
415 localSearchOperatorStatistics_.AddEntriesFrom(ref input, _repeated_localSearchOperatorStatistics_codec);
416 break;
417 }
418 case 18: {
419 localSearchFilterStatistics_.AddEntriesFrom(ref input, _repeated_localSearchFilterStatistics_codec);
420 break;
421 }
422 case 24: {
423 TotalNumNeighbors = input.ReadInt64();
424 break;
425 }
426 case 32: {
427 TotalNumFilteredNeighbors = input.ReadInt64();
428 break;
429 }
430 case 40: {
431 TotalNumAcceptedNeighbors = input.ReadInt64();
432 break;
433 }
434 case 50: {
435 firstSolutionStatistics_.AddEntriesFrom(ref input, _repeated_firstSolutionStatistics_codec);
436 break;
437 }
438 }
439 }
440 }
441 #endif
442
443 #region Nested types
445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
447 public static partial class Types {
451 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
452 public sealed partial class FirstSolutionStatistics : pb::IMessage<FirstSolutionStatistics>
453 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
454 , pb::IBufferMessage
455 #endif
456 {
457 private static readonly pb::MessageParser<FirstSolutionStatistics> _parser = new pb::MessageParser<FirstSolutionStatistics>(() => new FirstSolutionStatistics());
458 private pb::UnknownFieldSet _unknownFields;
459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
461 public static pb::MessageParser<FirstSolutionStatistics> Parser { get { return _parser; } }
462
463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
465 public static pbr::MessageDescriptor Descriptor {
466 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[0]; }
467 }
468
469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
471 pbr::MessageDescriptor pb::IMessage.Descriptor {
472 get { return Descriptor; }
473 }
474
475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
478 OnConstruction();
479 }
480
481 partial void OnConstruction();
482
483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
486 strategy_ = other.strategy_;
487 durationSeconds_ = other.durationSeconds_;
488 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
489 }
490
491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
494 return new FirstSolutionStatistics(this);
495 }
496
498 public const int StrategyFieldNumber = 1;
499 private string strategy_ = "";
503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
505 public string Strategy {
506 get { return strategy_; }
507 set {
508 strategy_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
509 }
510 }
511
513 public const int DurationSecondsFieldNumber = 2;
514 private double durationSeconds_;
518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
520 public double DurationSeconds {
521 get { return durationSeconds_; }
522 set {
523 durationSeconds_ = value;
524 }
525 }
526
527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
528 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
529 public override bool Equals(object other) {
530 return Equals(other as FirstSolutionStatistics);
531 }
532
533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
535 public bool Equals(FirstSolutionStatistics other) {
536 if (ReferenceEquals(other, null)) {
537 return false;
538 }
539 if (ReferenceEquals(other, this)) {
540 return true;
541 }
542 if (Strategy != other.Strategy) return false;
543 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
544 return Equals(_unknownFields, other._unknownFields);
545 }
546
547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
548 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
549 public override int GetHashCode() {
550 int hash = 1;
551 if (Strategy.Length != 0) hash ^= Strategy.GetHashCode();
552 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
553 if (_unknownFields != null) {
554 hash ^= _unknownFields.GetHashCode();
555 }
556 return hash;
557 }
558
559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
561 public override string ToString() {
562 return pb::JsonFormatter.ToDiagnosticString(this);
563 }
564
565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
566 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
567 public void WriteTo(pb::CodedOutputStream output) {
568 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
569 output.WriteRawMessage(this);
570 #else
571 if (Strategy.Length != 0) {
572 output.WriteRawTag(10);
573 output.WriteString(Strategy);
574 }
575 if (DurationSeconds != 0D) {
576 output.WriteRawTag(17);
577 output.WriteDouble(DurationSeconds);
578 }
579 if (_unknownFields != null) {
580 _unknownFields.WriteTo(output);
581 }
582 #endif
583 }
584
585 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
587 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
588 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
589 if (Strategy.Length != 0) {
590 output.WriteRawTag(10);
591 output.WriteString(Strategy);
592 }
593 if (DurationSeconds != 0D) {
594 output.WriteRawTag(17);
595 output.WriteDouble(DurationSeconds);
596 }
597 if (_unknownFields != null) {
598 _unknownFields.WriteTo(ref output);
599 }
600 }
601 #endif
602
603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
605 public int CalculateSize() {
606 int size = 0;
607 if (Strategy.Length != 0) {
608 size += 1 + pb::CodedOutputStream.ComputeStringSize(Strategy);
609 }
610 if (DurationSeconds != 0D) {
611 size += 1 + 8;
612 }
613 if (_unknownFields != null) {
614 size += _unknownFields.CalculateSize();
615 }
616 return size;
617 }
618
619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
622 if (other == null) {
623 return;
624 }
625 if (other.Strategy.Length != 0) {
626 Strategy = other.Strategy;
627 }
628 if (other.DurationSeconds != 0D) {
630 }
631 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
632 }
633
634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
636 public void MergeFrom(pb::CodedInputStream input) {
637 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
638 input.ReadRawMessage(this);
639 #else
640 uint tag;
641 while ((tag = input.ReadTag()) != 0) {
642 if ((tag & 7) == 4) {
643 // Abort on any end group tag.
644 return;
645 }
646 switch(tag) {
647 default:
648 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
649 break;
650 case 10: {
651 Strategy = input.ReadString();
652 break;
653 }
654 case 17: {
655 DurationSeconds = input.ReadDouble();
656 break;
657 }
658 }
659 }
660 #endif
661 }
662
663 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
666 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
667 uint tag;
668 while ((tag = input.ReadTag()) != 0) {
669 if ((tag & 7) == 4) {
670 // Abort on any end group tag.
671 return;
672 }
673 switch(tag) {
674 default:
675 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
676 break;
677 case 10: {
678 Strategy = input.ReadString();
679 break;
680 }
681 case 17: {
682 DurationSeconds = input.ReadDouble();
683 break;
684 }
685 }
686 }
687 }
688 #endif
689
690 }
691
695 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
696 public sealed partial class LocalSearchOperatorStatistics : pb::IMessage<LocalSearchOperatorStatistics>
697 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
698 , pb::IBufferMessage
699 #endif
700 {
701 private static readonly pb::MessageParser<LocalSearchOperatorStatistics> _parser = new pb::MessageParser<LocalSearchOperatorStatistics>(() => new LocalSearchOperatorStatistics());
702 private pb::UnknownFieldSet _unknownFields;
703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
705 public static pb::MessageParser<LocalSearchOperatorStatistics> Parser { get { return _parser; } }
706
707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
709 public static pbr::MessageDescriptor Descriptor {
710 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[1]; }
711 }
712
713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
715 pbr::MessageDescriptor pb::IMessage.Descriptor {
716 get { return Descriptor; }
717 }
718
719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
722 OnConstruction();
723 }
724
725 partial void OnConstruction();
726
727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
728 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
730 localSearchOperator_ = other.localSearchOperator_;
731 numNeighbors_ = other.numNeighbors_;
732 numFilteredNeighbors_ = other.numFilteredNeighbors_;
733 numAcceptedNeighbors_ = other.numAcceptedNeighbors_;
734 durationSeconds_ = other.durationSeconds_;
735 makeNextNeighborDurationSeconds_ = other.makeNextNeighborDurationSeconds_;
736 acceptNeighborDurationSeconds_ = other.acceptNeighborDurationSeconds_;
737 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
738 }
739
740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
741 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
745
747 public const int LocalSearchOperatorFieldNumber = 1;
748 private string localSearchOperator_ = "";
752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
754 public string LocalSearchOperator {
755 get { return localSearchOperator_; }
756 set {
757 localSearchOperator_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
758 }
759 }
760
762 public const int NumNeighborsFieldNumber = 2;
763 private long numNeighbors_;
767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
768 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
769 public long NumNeighbors {
770 get { return numNeighbors_; }
771 set {
772 numNeighbors_ = value;
773 }
774 }
775
778 private long numFilteredNeighbors_;
782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
785 get { return numFilteredNeighbors_; }
786 set {
787 numFilteredNeighbors_ = value;
788 }
789 }
790
793 private long numAcceptedNeighbors_;
797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
800 get { return numAcceptedNeighbors_; }
801 set {
802 numAcceptedNeighbors_ = value;
803 }
804 }
805
807 public const int DurationSecondsFieldNumber = 5;
808 private double durationSeconds_;
812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
813 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
814 public double DurationSeconds {
815 get { return durationSeconds_; }
816 set {
817 durationSeconds_ = value;
818 }
819 }
820
823 private double makeNextNeighborDurationSeconds_;
827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
828 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
830 get { return makeNextNeighborDurationSeconds_; }
831 set {
832 makeNextNeighborDurationSeconds_ = value;
833 }
834 }
835
838 private double acceptNeighborDurationSeconds_;
843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
846 get { return acceptNeighborDurationSeconds_; }
847 set {
848 acceptNeighborDurationSeconds_ = value;
849 }
850 }
851
852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
854 public override bool Equals(object other) {
855 return Equals(other as LocalSearchOperatorStatistics);
856 }
857
858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
859 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
861 if (ReferenceEquals(other, null)) {
862 return false;
863 }
864 if (ReferenceEquals(other, this)) {
865 return true;
866 }
867 if (LocalSearchOperator != other.LocalSearchOperator) return false;
868 if (NumNeighbors != other.NumNeighbors) return false;
869 if (NumFilteredNeighbors != other.NumFilteredNeighbors) return false;
870 if (NumAcceptedNeighbors != other.NumAcceptedNeighbors) return false;
871 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
872 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MakeNextNeighborDurationSeconds, other.MakeNextNeighborDurationSeconds)) return false;
873 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AcceptNeighborDurationSeconds, other.AcceptNeighborDurationSeconds)) return false;
874 return Equals(_unknownFields, other._unknownFields);
875 }
876
877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
879 public override int GetHashCode() {
880 int hash = 1;
881 if (LocalSearchOperator.Length != 0) hash ^= LocalSearchOperator.GetHashCode();
882 if (NumNeighbors != 0L) hash ^= NumNeighbors.GetHashCode();
883 if (NumFilteredNeighbors != 0L) hash ^= NumFilteredNeighbors.GetHashCode();
884 if (NumAcceptedNeighbors != 0L) hash ^= NumAcceptedNeighbors.GetHashCode();
885 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
886 if (MakeNextNeighborDurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MakeNextNeighborDurationSeconds);
887 if (AcceptNeighborDurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AcceptNeighborDurationSeconds);
888 if (_unknownFields != null) {
889 hash ^= _unknownFields.GetHashCode();
890 }
891 return hash;
892 }
893
894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
896 public override string ToString() {
897 return pb::JsonFormatter.ToDiagnosticString(this);
898 }
899
900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
902 public void WriteTo(pb::CodedOutputStream output) {
903 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
904 output.WriteRawMessage(this);
905 #else
906 if (LocalSearchOperator.Length != 0) {
907 output.WriteRawTag(10);
908 output.WriteString(LocalSearchOperator);
909 }
910 if (NumNeighbors != 0L) {
911 output.WriteRawTag(16);
912 output.WriteInt64(NumNeighbors);
913 }
914 if (NumFilteredNeighbors != 0L) {
915 output.WriteRawTag(24);
916 output.WriteInt64(NumFilteredNeighbors);
917 }
918 if (NumAcceptedNeighbors != 0L) {
919 output.WriteRawTag(32);
920 output.WriteInt64(NumAcceptedNeighbors);
921 }
922 if (DurationSeconds != 0D) {
923 output.WriteRawTag(41);
924 output.WriteDouble(DurationSeconds);
925 }
927 output.WriteRawTag(49);
928 output.WriteDouble(MakeNextNeighborDurationSeconds);
929 }
931 output.WriteRawTag(57);
932 output.WriteDouble(AcceptNeighborDurationSeconds);
933 }
934 if (_unknownFields != null) {
935 _unknownFields.WriteTo(output);
936 }
937 #endif
938 }
939
940 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
943 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
944 if (LocalSearchOperator.Length != 0) {
945 output.WriteRawTag(10);
946 output.WriteString(LocalSearchOperator);
947 }
948 if (NumNeighbors != 0L) {
949 output.WriteRawTag(16);
950 output.WriteInt64(NumNeighbors);
951 }
952 if (NumFilteredNeighbors != 0L) {
953 output.WriteRawTag(24);
954 output.WriteInt64(NumFilteredNeighbors);
955 }
956 if (NumAcceptedNeighbors != 0L) {
957 output.WriteRawTag(32);
958 output.WriteInt64(NumAcceptedNeighbors);
959 }
960 if (DurationSeconds != 0D) {
961 output.WriteRawTag(41);
962 output.WriteDouble(DurationSeconds);
963 }
964 if (MakeNextNeighborDurationSeconds != 0D) {
965 output.WriteRawTag(49);
966 output.WriteDouble(MakeNextNeighborDurationSeconds);
967 }
968 if (AcceptNeighborDurationSeconds != 0D) {
969 output.WriteRawTag(57);
970 output.WriteDouble(AcceptNeighborDurationSeconds);
971 }
972 if (_unknownFields != null) {
973 _unknownFields.WriteTo(ref output);
974 }
975 }
976 #endif
977
978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
980 public int CalculateSize() {
981 int size = 0;
982 if (LocalSearchOperator.Length != 0) {
983 size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalSearchOperator);
984 }
985 if (NumNeighbors != 0L) {
986 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumNeighbors);
987 }
988 if (NumFilteredNeighbors != 0L) {
989 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumFilteredNeighbors);
990 }
991 if (NumAcceptedNeighbors != 0L) {
992 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumAcceptedNeighbors);
993 }
994 if (DurationSeconds != 0D) {
995 size += 1 + 8;
996 }
998 size += 1 + 8;
999 }
1001 size += 1 + 8;
1002 }
1003 if (_unknownFields != null) {
1004 size += _unknownFields.CalculateSize();
1005 }
1006 return size;
1007 }
1008
1009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1010 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1012 if (other == null) {
1013 return;
1014 }
1015 if (other.LocalSearchOperator.Length != 0) {
1017 }
1018 if (other.NumNeighbors != 0L) {
1019 NumNeighbors = other.NumNeighbors;
1020 }
1021 if (other.NumFilteredNeighbors != 0L) {
1023 }
1024 if (other.NumAcceptedNeighbors != 0L) {
1026 }
1027 if (other.DurationSeconds != 0D) {
1029 }
1030 if (other.MakeNextNeighborDurationSeconds != 0D) {
1032 }
1033 if (other.AcceptNeighborDurationSeconds != 0D) {
1035 }
1036 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1037 }
1038
1039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1041 public void MergeFrom(pb::CodedInputStream input) {
1042 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1043 input.ReadRawMessage(this);
1044 #else
1045 uint tag;
1046 while ((tag = input.ReadTag()) != 0) {
1047 if ((tag & 7) == 4) {
1048 // Abort on any end group tag.
1049 return;
1050 }
1051 switch(tag) {
1052 default:
1053 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1054 break;
1055 case 10: {
1056 LocalSearchOperator = input.ReadString();
1057 break;
1058 }
1059 case 16: {
1060 NumNeighbors = input.ReadInt64();
1061 break;
1062 }
1063 case 24: {
1064 NumFilteredNeighbors = input.ReadInt64();
1065 break;
1066 }
1067 case 32: {
1068 NumAcceptedNeighbors = input.ReadInt64();
1069 break;
1070 }
1071 case 41: {
1072 DurationSeconds = input.ReadDouble();
1073 break;
1074 }
1075 case 49: {
1076 MakeNextNeighborDurationSeconds = input.ReadDouble();
1077 break;
1078 }
1079 case 57: {
1080 AcceptNeighborDurationSeconds = input.ReadDouble();
1081 break;
1082 }
1083 }
1084 }
1085 #endif
1086 }
1087
1088 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1090 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1091 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1092 uint tag;
1093 while ((tag = input.ReadTag()) != 0) {
1094 if ((tag & 7) == 4) {
1095 // Abort on any end group tag.
1096 return;
1097 }
1098 switch(tag) {
1099 default:
1100 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1101 break;
1102 case 10: {
1103 LocalSearchOperator = input.ReadString();
1104 break;
1105 }
1106 case 16: {
1107 NumNeighbors = input.ReadInt64();
1108 break;
1109 }
1110 case 24: {
1111 NumFilteredNeighbors = input.ReadInt64();
1112 break;
1113 }
1114 case 32: {
1115 NumAcceptedNeighbors = input.ReadInt64();
1116 break;
1117 }
1118 case 41: {
1119 DurationSeconds = input.ReadDouble();
1120 break;
1121 }
1122 case 49: {
1123 MakeNextNeighborDurationSeconds = input.ReadDouble();
1124 break;
1125 }
1126 case 57: {
1127 AcceptNeighborDurationSeconds = input.ReadDouble();
1128 break;
1129 }
1130 }
1131 }
1132 }
1133 #endif
1134
1135 }
1136
1140 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1141 public sealed partial class LocalSearchFilterStatistics : pb::IMessage<LocalSearchFilterStatistics>
1142 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1143 , pb::IBufferMessage
1144 #endif
1145 {
1146 private static readonly pb::MessageParser<LocalSearchFilterStatistics> _parser = new pb::MessageParser<LocalSearchFilterStatistics>(() => new LocalSearchFilterStatistics());
1147 private pb::UnknownFieldSet _unknownFields;
1148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1149 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1150 public static pb::MessageParser<LocalSearchFilterStatistics> Parser { get { return _parser; } }
1151
1152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1154 public static pbr::MessageDescriptor Descriptor {
1155 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[2]; }
1156 }
1157
1158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1160 pbr::MessageDescriptor pb::IMessage.Descriptor {
1161 get { return Descriptor; }
1162 }
1163
1164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1167 OnConstruction();
1168 }
1169
1170 partial void OnConstruction();
1171
1172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1175 localSearchFilter_ = other.localSearchFilter_;
1176 numCalls_ = other.numCalls_;
1177 numRejects_ = other.numRejects_;
1178 durationSeconds_ = other.durationSeconds_;
1179 numRejectsPerSecond_ = other.numRejectsPerSecond_;
1180 context_ = other.context_;
1181 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1182 }
1183
1184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1185 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1187 return new LocalSearchFilterStatistics(this);
1188 }
1189
1191 public const int LocalSearchFilterFieldNumber = 1;
1192 private string localSearchFilter_ = "";
1196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1197 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1198 public string LocalSearchFilter {
1199 get { return localSearchFilter_; }
1200 set {
1201 localSearchFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1202 }
1203 }
1204
1206 public const int NumCallsFieldNumber = 2;
1207 private long numCalls_;
1211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1212 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1213 public long NumCalls {
1214 get { return numCalls_; }
1215 set {
1216 numCalls_ = value;
1217 }
1218 }
1219
1221 public const int NumRejectsFieldNumber = 3;
1222 private long numRejects_;
1226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1227 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1228 public long NumRejects {
1229 get { return numRejects_; }
1230 set {
1231 numRejects_ = value;
1232 }
1233 }
1234
1236 public const int DurationSecondsFieldNumber = 4;
1237 private double durationSeconds_;
1241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1243 public double DurationSeconds {
1244 get { return durationSeconds_; }
1245 set {
1246 durationSeconds_ = value;
1247 }
1248 }
1249
1252 private double numRejectsPerSecond_;
1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1258 public double NumRejectsPerSecond {
1259 get { return numRejectsPerSecond_; }
1260 set {
1261 numRejectsPerSecond_ = value;
1262 }
1263 }
1264
1266 public const int ContextFieldNumber = 6;
1267 private string context_ = "";
1271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1273 public string Context {
1274 get { return context_; }
1275 set {
1276 context_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1277 }
1278 }
1279
1280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1282 public override bool Equals(object other) {
1283 return Equals(other as LocalSearchFilterStatistics);
1284 }
1285
1286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1289 if (ReferenceEquals(other, null)) {
1290 return false;
1291 }
1292 if (ReferenceEquals(other, this)) {
1293 return true;
1294 }
1295 if (LocalSearchFilter != other.LocalSearchFilter) return false;
1296 if (NumCalls != other.NumCalls) return false;
1297 if (NumRejects != other.NumRejects) return false;
1298 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
1299 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NumRejectsPerSecond, other.NumRejectsPerSecond)) return false;
1300 if (Context != other.Context) return false;
1301 return Equals(_unknownFields, other._unknownFields);
1302 }
1303
1304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1306 public override int GetHashCode() {
1307 int hash = 1;
1308 if (LocalSearchFilter.Length != 0) hash ^= LocalSearchFilter.GetHashCode();
1309 if (NumCalls != 0L) hash ^= NumCalls.GetHashCode();
1310 if (NumRejects != 0L) hash ^= NumRejects.GetHashCode();
1311 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
1312 if (NumRejectsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumRejectsPerSecond);
1313 if (Context.Length != 0) hash ^= Context.GetHashCode();
1314 if (_unknownFields != null) {
1315 hash ^= _unknownFields.GetHashCode();
1316 }
1317 return hash;
1318 }
1319
1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1322 public override string ToString() {
1323 return pb::JsonFormatter.ToDiagnosticString(this);
1324 }
1325
1326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1328 public void WriteTo(pb::CodedOutputStream output) {
1329 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1330 output.WriteRawMessage(this);
1331 #else
1332 if (LocalSearchFilter.Length != 0) {
1333 output.WriteRawTag(10);
1334 output.WriteString(LocalSearchFilter);
1335 }
1336 if (NumCalls != 0L) {
1337 output.WriteRawTag(16);
1338 output.WriteInt64(NumCalls);
1339 }
1340 if (NumRejects != 0L) {
1341 output.WriteRawTag(24);
1342 output.WriteInt64(NumRejects);
1343 }
1344 if (DurationSeconds != 0D) {
1345 output.WriteRawTag(33);
1346 output.WriteDouble(DurationSeconds);
1347 }
1348 if (NumRejectsPerSecond != 0D) {
1349 output.WriteRawTag(41);
1350 output.WriteDouble(NumRejectsPerSecond);
1351 }
1352 if (Context.Length != 0) {
1353 output.WriteRawTag(50);
1354 output.WriteString(Context);
1355 }
1356 if (_unknownFields != null) {
1357 _unknownFields.WriteTo(output);
1358 }
1359 #endif
1360 }
1361
1362 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1365 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1366 if (LocalSearchFilter.Length != 0) {
1367 output.WriteRawTag(10);
1368 output.WriteString(LocalSearchFilter);
1369 }
1370 if (NumCalls != 0L) {
1371 output.WriteRawTag(16);
1372 output.WriteInt64(NumCalls);
1373 }
1374 if (NumRejects != 0L) {
1375 output.WriteRawTag(24);
1376 output.WriteInt64(NumRejects);
1377 }
1378 if (DurationSeconds != 0D) {
1379 output.WriteRawTag(33);
1380 output.WriteDouble(DurationSeconds);
1381 }
1382 if (NumRejectsPerSecond != 0D) {
1383 output.WriteRawTag(41);
1384 output.WriteDouble(NumRejectsPerSecond);
1385 }
1386 if (Context.Length != 0) {
1387 output.WriteRawTag(50);
1388 output.WriteString(Context);
1389 }
1390 if (_unknownFields != null) {
1391 _unknownFields.WriteTo(ref output);
1392 }
1393 }
1394 #endif
1395
1396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1398 public int CalculateSize() {
1399 int size = 0;
1400 if (LocalSearchFilter.Length != 0) {
1401 size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalSearchFilter);
1402 }
1403 if (NumCalls != 0L) {
1404 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumCalls);
1405 }
1406 if (NumRejects != 0L) {
1407 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumRejects);
1408 }
1409 if (DurationSeconds != 0D) {
1410 size += 1 + 8;
1411 }
1412 if (NumRejectsPerSecond != 0D) {
1413 size += 1 + 8;
1414 }
1415 if (Context.Length != 0) {
1416 size += 1 + pb::CodedOutputStream.ComputeStringSize(Context);
1417 }
1418 if (_unknownFields != null) {
1419 size += _unknownFields.CalculateSize();
1420 }
1421 return size;
1422 }
1423
1424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1427 if (other == null) {
1428 return;
1429 }
1430 if (other.LocalSearchFilter.Length != 0) {
1432 }
1433 if (other.NumCalls != 0L) {
1434 NumCalls = other.NumCalls;
1435 }
1436 if (other.NumRejects != 0L) {
1437 NumRejects = other.NumRejects;
1438 }
1439 if (other.DurationSeconds != 0D) {
1441 }
1442 if (other.NumRejectsPerSecond != 0D) {
1444 }
1445 if (other.Context.Length != 0) {
1446 Context = other.Context;
1447 }
1448 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1449 }
1450
1451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1452 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1453 public void MergeFrom(pb::CodedInputStream input) {
1454 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1455 input.ReadRawMessage(this);
1456 #else
1457 uint tag;
1458 while ((tag = input.ReadTag()) != 0) {
1459 if ((tag & 7) == 4) {
1460 // Abort on any end group tag.
1461 return;
1462 }
1463 switch(tag) {
1464 default:
1465 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1466 break;
1467 case 10: {
1468 LocalSearchFilter = input.ReadString();
1469 break;
1470 }
1471 case 16: {
1472 NumCalls = input.ReadInt64();
1473 break;
1474 }
1475 case 24: {
1476 NumRejects = input.ReadInt64();
1477 break;
1478 }
1479 case 33: {
1480 DurationSeconds = input.ReadDouble();
1481 break;
1482 }
1483 case 41: {
1484 NumRejectsPerSecond = input.ReadDouble();
1485 break;
1486 }
1487 case 50: {
1488 Context = input.ReadString();
1489 break;
1490 }
1491 }
1492 }
1493 #endif
1494 }
1495
1496 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1499 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1500 uint tag;
1501 while ((tag = input.ReadTag()) != 0) {
1502 if ((tag & 7) == 4) {
1503 // Abort on any end group tag.
1504 return;
1505 }
1506 switch(tag) {
1507 default:
1508 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1509 break;
1510 case 10: {
1511 LocalSearchFilter = input.ReadString();
1512 break;
1513 }
1514 case 16: {
1515 NumCalls = input.ReadInt64();
1516 break;
1517 }
1518 case 24: {
1519 NumRejects = input.ReadInt64();
1520 break;
1521 }
1522 case 33: {
1523 DurationSeconds = input.ReadDouble();
1524 break;
1525 }
1526 case 41: {
1527 NumRejectsPerSecond = input.ReadDouble();
1528 break;
1529 }
1530 case 50: {
1531 Context = input.ReadString();
1532 break;
1533 }
1534 }
1535 }
1536 }
1537 #endif
1538
1539 }
1540
1541 }
1542 #endregion
1543
1544 }
1545
1549 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1550 public sealed partial class ConstraintSolverStatistics : pb::IMessage<ConstraintSolverStatistics>
1551 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1552 , pb::IBufferMessage
1553 #endif
1554 {
1555 private static readonly pb::MessageParser<ConstraintSolverStatistics> _parser = new pb::MessageParser<ConstraintSolverStatistics>(() => new ConstraintSolverStatistics());
1556 private pb::UnknownFieldSet _unknownFields;
1557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1558 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1559 public static pb::MessageParser<ConstraintSolverStatistics> Parser { get { return _parser; } }
1560
1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1563 public static pbr::MessageDescriptor Descriptor {
1564 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[1]; }
1565 }
1566
1567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1569 pbr::MessageDescriptor pb::IMessage.Descriptor {
1570 get { return Descriptor; }
1571 }
1572
1573 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1574 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1576 OnConstruction();
1577 }
1578
1579 partial void OnConstruction();
1580
1581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1582 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1584 numBranches_ = other.numBranches_;
1585 numFailures_ = other.numFailures_;
1586 numSolutions_ = other.numSolutions_;
1587 bytesUsed_ = other.bytesUsed_;
1588 durationSeconds_ = other.durationSeconds_;
1589 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1590 }
1591
1592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1595 return new ConstraintSolverStatistics(this);
1596 }
1597
1599 public const int NumBranchesFieldNumber = 1;
1600 private long numBranches_;
1604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1606 public long NumBranches {
1607 get { return numBranches_; }
1608 set {
1609 numBranches_ = value;
1610 }
1611 }
1612
1614 public const int NumFailuresFieldNumber = 2;
1615 private long numFailures_;
1619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1621 public long NumFailures {
1622 get { return numFailures_; }
1623 set {
1624 numFailures_ = value;
1625 }
1626 }
1627
1629 public const int NumSolutionsFieldNumber = 3;
1630 private long numSolutions_;
1634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1635 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1636 public long NumSolutions {
1637 get { return numSolutions_; }
1638 set {
1639 numSolutions_ = value;
1640 }
1641 }
1642
1644 public const int BytesUsedFieldNumber = 4;
1645 private long bytesUsed_;
1649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1651 public long BytesUsed {
1652 get { return bytesUsed_; }
1653 set {
1654 bytesUsed_ = value;
1655 }
1656 }
1657
1659 public const int DurationSecondsFieldNumber = 5;
1660 private double durationSeconds_;
1664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1665 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1666 public double DurationSeconds {
1667 get { return durationSeconds_; }
1668 set {
1669 durationSeconds_ = value;
1670 }
1671 }
1672
1673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1675 public override bool Equals(object other) {
1676 return Equals(other as ConstraintSolverStatistics);
1677 }
1678
1679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1682 if (ReferenceEquals(other, null)) {
1683 return false;
1684 }
1685 if (ReferenceEquals(other, this)) {
1686 return true;
1687 }
1688 if (NumBranches != other.NumBranches) return false;
1689 if (NumFailures != other.NumFailures) return false;
1690 if (NumSolutions != other.NumSolutions) return false;
1691 if (BytesUsed != other.BytesUsed) return false;
1692 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
1693 return Equals(_unknownFields, other._unknownFields);
1694 }
1695
1696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1698 public override int GetHashCode() {
1699 int hash = 1;
1700 if (NumBranches != 0L) hash ^= NumBranches.GetHashCode();
1701 if (NumFailures != 0L) hash ^= NumFailures.GetHashCode();
1702 if (NumSolutions != 0L) hash ^= NumSolutions.GetHashCode();
1703 if (BytesUsed != 0L) hash ^= BytesUsed.GetHashCode();
1704 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
1705 if (_unknownFields != null) {
1706 hash ^= _unknownFields.GetHashCode();
1707 }
1708 return hash;
1709 }
1710
1711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1713 public override string ToString() {
1714 return pb::JsonFormatter.ToDiagnosticString(this);
1715 }
1716
1717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1719 public void WriteTo(pb::CodedOutputStream output) {
1720 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1721 output.WriteRawMessage(this);
1722 #else
1723 if (NumBranches != 0L) {
1724 output.WriteRawTag(8);
1725 output.WriteInt64(NumBranches);
1726 }
1727 if (NumFailures != 0L) {
1728 output.WriteRawTag(16);
1729 output.WriteInt64(NumFailures);
1730 }
1731 if (NumSolutions != 0L) {
1732 output.WriteRawTag(24);
1733 output.WriteInt64(NumSolutions);
1734 }
1735 if (BytesUsed != 0L) {
1736 output.WriteRawTag(32);
1737 output.WriteInt64(BytesUsed);
1738 }
1739 if (DurationSeconds != 0D) {
1740 output.WriteRawTag(41);
1741 output.WriteDouble(DurationSeconds);
1742 }
1743 if (_unknownFields != null) {
1744 _unknownFields.WriteTo(output);
1745 }
1746 #endif
1747 }
1748
1749 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1751 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1752 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1753 if (NumBranches != 0L) {
1754 output.WriteRawTag(8);
1755 output.WriteInt64(NumBranches);
1756 }
1757 if (NumFailures != 0L) {
1758 output.WriteRawTag(16);
1759 output.WriteInt64(NumFailures);
1760 }
1761 if (NumSolutions != 0L) {
1762 output.WriteRawTag(24);
1763 output.WriteInt64(NumSolutions);
1764 }
1765 if (BytesUsed != 0L) {
1766 output.WriteRawTag(32);
1767 output.WriteInt64(BytesUsed);
1768 }
1769 if (DurationSeconds != 0D) {
1770 output.WriteRawTag(41);
1771 output.WriteDouble(DurationSeconds);
1772 }
1773 if (_unknownFields != null) {
1774 _unknownFields.WriteTo(ref output);
1775 }
1776 }
1777 #endif
1778
1779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1781 public int CalculateSize() {
1782 int size = 0;
1783 if (NumBranches != 0L) {
1784 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBranches);
1785 }
1786 if (NumFailures != 0L) {
1787 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumFailures);
1788 }
1789 if (NumSolutions != 0L) {
1790 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumSolutions);
1791 }
1792 if (BytesUsed != 0L) {
1793 size += 1 + pb::CodedOutputStream.ComputeInt64Size(BytesUsed);
1794 }
1795 if (DurationSeconds != 0D) {
1796 size += 1 + 8;
1797 }
1798 if (_unknownFields != null) {
1799 size += _unknownFields.CalculateSize();
1800 }
1801 return size;
1802 }
1803
1804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1805 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1807 if (other == null) {
1808 return;
1809 }
1810 if (other.NumBranches != 0L) {
1811 NumBranches = other.NumBranches;
1812 }
1813 if (other.NumFailures != 0L) {
1814 NumFailures = other.NumFailures;
1815 }
1816 if (other.NumSolutions != 0L) {
1817 NumSolutions = other.NumSolutions;
1818 }
1819 if (other.BytesUsed != 0L) {
1820 BytesUsed = other.BytesUsed;
1821 }
1822 if (other.DurationSeconds != 0D) {
1824 }
1825 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1826 }
1827
1828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1829 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1830 public void MergeFrom(pb::CodedInputStream input) {
1831 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1832 input.ReadRawMessage(this);
1833 #else
1834 uint tag;
1835 while ((tag = input.ReadTag()) != 0) {
1836 if ((tag & 7) == 4) {
1837 // Abort on any end group tag.
1838 return;
1839 }
1840 switch(tag) {
1841 default:
1842 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1843 break;
1844 case 8: {
1845 NumBranches = input.ReadInt64();
1846 break;
1847 }
1848 case 16: {
1849 NumFailures = input.ReadInt64();
1850 break;
1851 }
1852 case 24: {
1853 NumSolutions = input.ReadInt64();
1854 break;
1855 }
1856 case 32: {
1857 BytesUsed = input.ReadInt64();
1858 break;
1859 }
1860 case 41: {
1861 DurationSeconds = input.ReadDouble();
1862 break;
1863 }
1864 }
1865 }
1866 #endif
1867 }
1868
1869 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1871 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1872 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1873 uint tag;
1874 while ((tag = input.ReadTag()) != 0) {
1875 if ((tag & 7) == 4) {
1876 // Abort on any end group tag.
1877 return;
1878 }
1879 switch(tag) {
1880 default:
1881 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1882 break;
1883 case 8: {
1884 NumBranches = input.ReadInt64();
1885 break;
1886 }
1887 case 16: {
1888 NumFailures = input.ReadInt64();
1889 break;
1890 }
1891 case 24: {
1892 NumSolutions = input.ReadInt64();
1893 break;
1894 }
1895 case 32: {
1896 BytesUsed = input.ReadInt64();
1897 break;
1898 }
1899 case 41: {
1900 DurationSeconds = input.ReadDouble();
1901 break;
1902 }
1903 }
1904 }
1905 }
1906 #endif
1907
1908 }
1909
1913 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1914 public sealed partial class SubSolverStatistics : pb::IMessage<SubSolverStatistics>
1915 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1916 , pb::IBufferMessage
1917 #endif
1918 {
1919 private static readonly pb::MessageParser<SubSolverStatistics> _parser = new pb::MessageParser<SubSolverStatistics>(() => new SubSolverStatistics());
1920 private pb::UnknownFieldSet _unknownFields;
1921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1923 public static pb::MessageParser<SubSolverStatistics> Parser { get { return _parser; } }
1924
1925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1927 public static pbr::MessageDescriptor Descriptor {
1928 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[2]; }
1929 }
1930
1931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1933 pbr::MessageDescriptor pb::IMessage.Descriptor {
1934 get { return Descriptor; }
1935 }
1936
1937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1938 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1940 OnConstruction();
1941 }
1942
1943 partial void OnConstruction();
1944
1945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1946 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1948 numGlopCallsInLpScheduling_ = other.numGlopCallsInLpScheduling_;
1949 numCpSatCallsInLpScheduling_ = other.numCpSatCallsInLpScheduling_;
1950 numMinCostFlowCalls_ = other.numMinCostFlowCalls_;
1951 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1952 }
1953
1954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1957 return new SubSolverStatistics(this);
1958 }
1959
1962 private long numGlopCallsInLpScheduling_;
1966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1967 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1969 get { return numGlopCallsInLpScheduling_; }
1970 set {
1971 numGlopCallsInLpScheduling_ = value;
1972 }
1973 }
1974
1977 private long numCpSatCallsInLpScheduling_;
1981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1984 get { return numCpSatCallsInLpScheduling_; }
1985 set {
1986 numCpSatCallsInLpScheduling_ = value;
1987 }
1988 }
1989
1992 private long numMinCostFlowCalls_;
1996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1997 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1999 get { return numMinCostFlowCalls_; }
2000 set {
2001 numMinCostFlowCalls_ = value;
2002 }
2003 }
2004
2005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2007 public override bool Equals(object other) {
2008 return Equals(other as SubSolverStatistics);
2009 }
2010
2011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2013 public bool Equals(SubSolverStatistics other) {
2014 if (ReferenceEquals(other, null)) {
2015 return false;
2016 }
2017 if (ReferenceEquals(other, this)) {
2018 return true;
2019 }
2020 if (NumGlopCallsInLpScheduling != other.NumGlopCallsInLpScheduling) return false;
2022 if (NumMinCostFlowCalls != other.NumMinCostFlowCalls) return false;
2023 return Equals(_unknownFields, other._unknownFields);
2024 }
2025
2026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2027 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2028 public override int GetHashCode() {
2029 int hash = 1;
2030 if (NumGlopCallsInLpScheduling != 0L) hash ^= NumGlopCallsInLpScheduling.GetHashCode();
2031 if (NumCpSatCallsInLpScheduling != 0L) hash ^= NumCpSatCallsInLpScheduling.GetHashCode();
2032 if (NumMinCostFlowCalls != 0L) hash ^= NumMinCostFlowCalls.GetHashCode();
2033 if (_unknownFields != null) {
2034 hash ^= _unknownFields.GetHashCode();
2035 }
2036 return hash;
2037 }
2038
2039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2041 public override string ToString() {
2042 return pb::JsonFormatter.ToDiagnosticString(this);
2043 }
2044
2045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2047 public void WriteTo(pb::CodedOutputStream output) {
2048 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2049 output.WriteRawMessage(this);
2050 #else
2051 if (NumGlopCallsInLpScheduling != 0L) {
2052 output.WriteRawTag(8);
2053 output.WriteInt64(NumGlopCallsInLpScheduling);
2054 }
2055 if (NumCpSatCallsInLpScheduling != 0L) {
2056 output.WriteRawTag(16);
2057 output.WriteInt64(NumCpSatCallsInLpScheduling);
2058 }
2059 if (NumMinCostFlowCalls != 0L) {
2060 output.WriteRawTag(24);
2061 output.WriteInt64(NumMinCostFlowCalls);
2062 }
2063 if (_unknownFields != null) {
2064 _unknownFields.WriteTo(output);
2065 }
2066 #endif
2067 }
2068
2069 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2071 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2072 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2073 if (NumGlopCallsInLpScheduling != 0L) {
2074 output.WriteRawTag(8);
2075 output.WriteInt64(NumGlopCallsInLpScheduling);
2076 }
2077 if (NumCpSatCallsInLpScheduling != 0L) {
2078 output.WriteRawTag(16);
2079 output.WriteInt64(NumCpSatCallsInLpScheduling);
2080 }
2081 if (NumMinCostFlowCalls != 0L) {
2082 output.WriteRawTag(24);
2083 output.WriteInt64(NumMinCostFlowCalls);
2084 }
2085 if (_unknownFields != null) {
2086 _unknownFields.WriteTo(ref output);
2087 }
2088 }
2089 #endif
2090
2091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2092 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2093 public int CalculateSize() {
2094 int size = 0;
2095 if (NumGlopCallsInLpScheduling != 0L) {
2096 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumGlopCallsInLpScheduling);
2097 }
2098 if (NumCpSatCallsInLpScheduling != 0L) {
2099 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumCpSatCallsInLpScheduling);
2100 }
2101 if (NumMinCostFlowCalls != 0L) {
2102 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumMinCostFlowCalls);
2103 }
2104 if (_unknownFields != null) {
2105 size += _unknownFields.CalculateSize();
2106 }
2107 return size;
2108 }
2109
2110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2112 public void MergeFrom(SubSolverStatistics other) {
2113 if (other == null) {
2114 return;
2115 }
2116 if (other.NumGlopCallsInLpScheduling != 0L) {
2118 }
2119 if (other.NumCpSatCallsInLpScheduling != 0L) {
2121 }
2122 if (other.NumMinCostFlowCalls != 0L) {
2124 }
2125 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2126 }
2127
2128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2130 public void MergeFrom(pb::CodedInputStream input) {
2131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2132 input.ReadRawMessage(this);
2133 #else
2134 uint tag;
2135 while ((tag = input.ReadTag()) != 0) {
2136 if ((tag & 7) == 4) {
2137 // Abort on any end group tag.
2138 return;
2139 }
2140 switch(tag) {
2141 default:
2142 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2143 break;
2144 case 8: {
2145 NumGlopCallsInLpScheduling = input.ReadInt64();
2146 break;
2147 }
2148 case 16: {
2149 NumCpSatCallsInLpScheduling = input.ReadInt64();
2150 break;
2151 }
2152 case 24: {
2153 NumMinCostFlowCalls = input.ReadInt64();
2154 break;
2155 }
2156 }
2157 }
2158 #endif
2159 }
2160
2161 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2164 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2165 uint tag;
2166 while ((tag = input.ReadTag()) != 0) {
2167 if ((tag & 7) == 4) {
2168 // Abort on any end group tag.
2169 return;
2170 }
2171 switch(tag) {
2172 default:
2173 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2174 break;
2175 case 8: {
2176 NumGlopCallsInLpScheduling = input.ReadInt64();
2177 break;
2178 }
2179 case 16: {
2180 NumCpSatCallsInLpScheduling = input.ReadInt64();
2181 break;
2182 }
2183 case 24: {
2184 NumMinCostFlowCalls = input.ReadInt64();
2185 break;
2186 }
2187 }
2188 }
2189 }
2190 #endif
2191
2192 }
2193
2197 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2198 public sealed partial class SearchStatistics : pb::IMessage<SearchStatistics>
2199 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2200 , pb::IBufferMessage
2201 #endif
2202 {
2203 private static readonly pb::MessageParser<SearchStatistics> _parser = new pb::MessageParser<SearchStatistics>(() => new SearchStatistics());
2204 private pb::UnknownFieldSet _unknownFields;
2205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2207 public static pb::MessageParser<SearchStatistics> Parser { get { return _parser; } }
2208
2209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2210 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2211 public static pbr::MessageDescriptor Descriptor {
2212 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[3]; }
2213 }
2214
2215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2217 pbr::MessageDescriptor pb::IMessage.Descriptor {
2218 get { return Descriptor; }
2219 }
2220
2221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2222 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2224 OnConstruction();
2225 }
2226
2227 partial void OnConstruction();
2228
2229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2230 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2231 public SearchStatistics(SearchStatistics other) : this() {
2232 localSearchStatistics_ = other.localSearchStatistics_.Clone();
2233 constraintSolverStatistics_ = other.constraintSolverStatistics_.Clone();
2234 subSolverStatistics_ = other.subSolverStatistics_.Clone();
2235 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2236 }
2237
2238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2239 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2241 return new SearchStatistics(this);
2242 }
2243
2246 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics> _repeated_localSearchStatistics_codec
2247 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Parser);
2248 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics> localSearchStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics>();
2252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2254 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics> LocalSearchStatistics {
2255 get { return localSearchStatistics_; }
2256 }
2257
2260 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics> _repeated_constraintSolverStatistics_codec
2261 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics.Parser);
2262 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics> constraintSolverStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics>();
2266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2268 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics> ConstraintSolverStatistics {
2269 get { return constraintSolverStatistics_; }
2270 }
2271
2274 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.SubSolverStatistics> _repeated_subSolverStatistics_codec
2275 = pb::FieldCodec.ForMessage(26, global::Google.OrTools.ConstraintSolver.SubSolverStatistics.Parser);
2276 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.SubSolverStatistics> subSolverStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.SubSolverStatistics>();
2280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2282 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.SubSolverStatistics> SubSolverStatistics {
2283 get { return subSolverStatistics_; }
2284 }
2285
2286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2288 public override bool Equals(object other) {
2289 return Equals(other as SearchStatistics);
2290 }
2291
2292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2293 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2294 public bool Equals(SearchStatistics other) {
2295 if (ReferenceEquals(other, null)) {
2296 return false;
2297 }
2298 if (ReferenceEquals(other, this)) {
2299 return true;
2300 }
2301 if(!localSearchStatistics_.Equals(other.localSearchStatistics_)) return false;
2302 if(!constraintSolverStatistics_.Equals(other.constraintSolverStatistics_)) return false;
2303 if(!subSolverStatistics_.Equals(other.subSolverStatistics_)) return false;
2304 return Equals(_unknownFields, other._unknownFields);
2305 }
2306
2307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2309 public override int GetHashCode() {
2310 int hash = 1;
2311 hash ^= localSearchStatistics_.GetHashCode();
2312 hash ^= constraintSolverStatistics_.GetHashCode();
2313 hash ^= subSolverStatistics_.GetHashCode();
2314 if (_unknownFields != null) {
2315 hash ^= _unknownFields.GetHashCode();
2316 }
2317 return hash;
2318 }
2319
2320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2322 public override string ToString() {
2323 return pb::JsonFormatter.ToDiagnosticString(this);
2324 }
2325
2326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2328 public void WriteTo(pb::CodedOutputStream output) {
2329 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2330 output.WriteRawMessage(this);
2331 #else
2332 localSearchStatistics_.WriteTo(output, _repeated_localSearchStatistics_codec);
2333 constraintSolverStatistics_.WriteTo(output, _repeated_constraintSolverStatistics_codec);
2334 subSolverStatistics_.WriteTo(output, _repeated_subSolverStatistics_codec);
2335 if (_unknownFields != null) {
2336 _unknownFields.WriteTo(output);
2337 }
2338 #endif
2339 }
2340
2341 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2343 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2344 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2345 localSearchStatistics_.WriteTo(ref output, _repeated_localSearchStatistics_codec);
2346 constraintSolverStatistics_.WriteTo(ref output, _repeated_constraintSolverStatistics_codec);
2347 subSolverStatistics_.WriteTo(ref output, _repeated_subSolverStatistics_codec);
2348 if (_unknownFields != null) {
2349 _unknownFields.WriteTo(ref output);
2350 }
2351 }
2352 #endif
2353
2354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2356 public int CalculateSize() {
2357 int size = 0;
2358 size += localSearchStatistics_.CalculateSize(_repeated_localSearchStatistics_codec);
2359 size += constraintSolverStatistics_.CalculateSize(_repeated_constraintSolverStatistics_codec);
2360 size += subSolverStatistics_.CalculateSize(_repeated_subSolverStatistics_codec);
2361 if (_unknownFields != null) {
2362 size += _unknownFields.CalculateSize();
2363 }
2364 return size;
2365 }
2366
2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2369 public void MergeFrom(SearchStatistics other) {
2370 if (other == null) {
2371 return;
2372 }
2373 localSearchStatistics_.Add(other.localSearchStatistics_);
2374 constraintSolverStatistics_.Add(other.constraintSolverStatistics_);
2375 subSolverStatistics_.Add(other.subSolverStatistics_);
2376 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2377 }
2378
2379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2381 public void MergeFrom(pb::CodedInputStream input) {
2382 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2383 input.ReadRawMessage(this);
2384 #else
2385 uint tag;
2386 while ((tag = input.ReadTag()) != 0) {
2387 if ((tag & 7) == 4) {
2388 // Abort on any end group tag.
2389 return;
2390 }
2391 switch(tag) {
2392 default:
2393 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2394 break;
2395 case 10: {
2396 localSearchStatistics_.AddEntriesFrom(input, _repeated_localSearchStatistics_codec);
2397 break;
2398 }
2399 case 18: {
2400 constraintSolverStatistics_.AddEntriesFrom(input, _repeated_constraintSolverStatistics_codec);
2401 break;
2402 }
2403 case 26: {
2404 subSolverStatistics_.AddEntriesFrom(input, _repeated_subSolverStatistics_codec);
2405 break;
2406 }
2407 }
2408 }
2409 #endif
2410 }
2411
2412 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2415 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2416 uint tag;
2417 while ((tag = input.ReadTag()) != 0) {
2418 if ((tag & 7) == 4) {
2419 // Abort on any end group tag.
2420 return;
2421 }
2422 switch(tag) {
2423 default:
2424 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2425 break;
2426 case 10: {
2427 localSearchStatistics_.AddEntriesFrom(ref input, _repeated_localSearchStatistics_codec);
2428 break;
2429 }
2430 case 18: {
2431 constraintSolverStatistics_.AddEntriesFrom(ref input, _repeated_constraintSolverStatistics_codec);
2432 break;
2433 }
2434 case 26: {
2435 subSolverStatistics_.AddEntriesFrom(ref input, _repeated_subSolverStatistics_codec);
2436 break;
2437 }
2438 }
2439 }
2440 }
2441 #endif
2442
2443 }
2444
2445 #endregion
2446
2447}
2448
2449#endregion Designer generated code
global::Google.Protobuf pb
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Statistics on the search in the constraint solver.
static pb::MessageParser< ConstraintSolverStatistics > Parser
double DurationSeconds
Total time spent in the solver.
const int DurationSecondsFieldNumber
Field number for the "duration_seconds" field.
const int NumFailuresFieldNumber
Field number for the "num_failures" field.
const int NumBranchesFieldNumber
Field number for the "num_branches" field.
const int NumSolutionsFieldNumber
Field number for the "num_solutions" field.
const int BytesUsedFieldNumber
Field number for the "bytes_used" field.
const int DurationSecondsFieldNumber
Field number for the "duration_seconds" field.
const int DurationSecondsFieldNumber
Field number for the "duration_seconds" field.
const int NumRejectsPerSecondFieldNumber
Field number for the "num_rejects_per_second" field.
const int LocalSearchFilterFieldNumber
Field number for the "local_search_filter" field.
const int NumAcceptedNeighborsFieldNumber
Field number for the "num_accepted_neighbors" field.
double MakeNextNeighborDurationSeconds
Time spent in creating neighbors (calling MakeNextNeighbor).
const int MakeNextNeighborDurationSecondsFieldNumber
Field number for the "make_next_neighbor_duration_seconds" field.
const int DurationSecondsFieldNumber
Field number for the "duration_seconds" field.
const int NumFilteredNeighborsFieldNumber
Field number for the "num_filtered_neighbors" field.
const int AcceptNeighborDurationSecondsFieldNumber
Field number for the "accept_neighbor_duration_seconds" field.
double AcceptNeighborDurationSeconds
Time spent in accepting a neighbor (restoration and storage, not including filtering).
const int LocalSearchOperatorFieldNumber
Field number for the "local_search_operator" field.
Container for nested types declared in the LocalSearchStatistics message type.
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics > LocalSearchOperatorStatistics
Statistics for each operator called during the search.
const int TotalNumNeighborsFieldNumber
Field number for the "total_num_neighbors" field.
const int LocalSearchFilterStatisticsFieldNumber
Field number for the "local_search_filter_statistics" field.
long TotalNumNeighbors
Total number of (filtered/accepted) neighbors created during the search.
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics > LocalSearchFilterStatistics
Statistics for each filter called during the search.
const int TotalNumFilteredNeighborsFieldNumber
Field number for the "total_num_filtered_neighbors" field.
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics > FirstSolutionStatistics
Statistics for each first solution called during the search.
const int TotalNumAcceptedNeighborsFieldNumber
Field number for the "total_num_accepted_neighbors" field.
const int LocalSearchOperatorStatisticsFieldNumber
Field number for the "local_search_operator_statistics" field.
const int FirstSolutionStatisticsFieldNumber
Field number for the "first_solution_statistics" field.
static pb::MessageParser< LocalSearchStatistics > Parser
const int ConstraintSolverStatisticsFieldNumber
Field number for the "constraint_solver_statistics" field.
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.SubSolverStatistics > SubSolverStatistics
Sub-solver statistics.
void WriteTo(pb::CodedOutputStream output)
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics > ConstraintSolverStatistics
Constraint solver statistics.
pbc::RepeatedField< global::Google.OrTools.ConstraintSolver.LocalSearchStatistics > LocalSearchStatistics
Local search statistics for each solver context.
const int SubSolverStatisticsFieldNumber
Field number for the "sub_solver_statistics" field.
const int LocalSearchStatisticsFieldNumber
Field number for the "local_search_statistics" field.
static pb::MessageParser< SearchStatistics > Parser
Holder for reflection information generated from ortools/constraint_solver/search_stats....
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/search_stats.proto.
long NumCpSatCallsInLpScheduling
Number of calls to CP-SAT in LP scheduling.
const int NumGlopCallsInLpSchedulingFieldNumber
Field number for the "num_glop_calls_in_lp_scheduling" field.
const int NumMinCostFlowCallsFieldNumber
Field number for the "num_min_cost_flow_calls" field.
const int NumCpSatCallsInLpSchedulingFieldNumber
Field number for the "num_cp_sat_calls_in_lp_scheduling" field.
static pb::MessageParser< SubSolverStatistics > Parser
long NumGlopCallsInLpScheduling
Number of calls to Glop in LP scheduling.
long NumMinCostFlowCalls
Number of calls to min cost flow.