Google OR-Tools v9.12
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 "bl9zZWNvbmRzGAUgASgBIrYBChBTZWFyY2hTdGF0aXN0aWNzEksKF2xvY2Fs",
54 "X3NlYXJjaF9zdGF0aXN0aWNzGAEgAygLMioub3BlcmF0aW9uc19yZXNlYXJj",
55 "aC5Mb2NhbFNlYXJjaFN0YXRpc3RpY3MSVQocY29uc3RyYWludF9zb2x2ZXJf",
56 "c3RhdGlzdGljcxgCIAMoCzIvLm9wZXJhdGlvbnNfcmVzZWFyY2guQ29uc3Ry",
57 "YWludFNvbHZlclN0YXRpc3RpY3NCSQojY29tLmdvb2dsZS5vcnRvb2xzLmNv",
58 "bnN0cmFpbnRzb2x2ZXJQAaoCH0dvb2dsZS5PclRvb2xzLkNvbnN0cmFpbnRT",
59 "b2x2ZXJiBnByb3RvMw=="));
60 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
61 new pbr::FileDescriptor[] { },
62 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
63 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),
64 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),
65 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)}),
66 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),
67 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.SearchStatistics), global::Google.OrTools.ConstraintSolver.SearchStatistics.Parser, new[]{ "LocalSearchStatistics", "ConstraintSolverStatistics" }, null, null, null, null)
68 }));
69 }
70 #endregion
71
72 }
73 #region Messages
77 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
78 public sealed partial class LocalSearchStatistics : pb::IMessage<LocalSearchStatistics>
79 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
80 , pb::IBufferMessage
81 #endif
82 {
83 private static readonly pb::MessageParser<LocalSearchStatistics> _parser = new pb::MessageParser<LocalSearchStatistics>(() => new LocalSearchStatistics());
84 private pb::UnknownFieldSet _unknownFields;
85 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
87 public static pb::MessageParser<LocalSearchStatistics> Parser { get { return _parser; } }
88
89 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
90 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
91 public static pbr::MessageDescriptor Descriptor {
92 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[0]; }
93 }
94
95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
97 pbr::MessageDescriptor pb::IMessage.Descriptor {
98 get { return Descriptor; }
99 }
100
101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
102 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
104 OnConstruction();
105 }
106
107 partial void OnConstruction();
108
109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
110 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
112 firstSolutionStatistics_ = other.firstSolutionStatistics_.Clone();
113 localSearchOperatorStatistics_ = other.localSearchOperatorStatistics_.Clone();
114 totalNumNeighbors_ = other.totalNumNeighbors_;
115 totalNumFilteredNeighbors_ = other.totalNumFilteredNeighbors_;
116 totalNumAcceptedNeighbors_ = other.totalNumAcceptedNeighbors_;
117 localSearchFilterStatistics_ = other.localSearchFilterStatistics_.Clone();
118 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
119 }
120
121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
122 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
124 return new LocalSearchStatistics(this);
125 }
126
129 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> _repeated_firstSolutionStatistics_codec
130 = pb::FieldCodec.ForMessage(50, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics.Parser);
131 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> firstSolutionStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics>();
135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
137 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> FirstSolutionStatistics {
138 get { return firstSolutionStatistics_; }
139 }
140
143 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> _repeated_localSearchOperatorStatistics_codec
144 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics.Parser);
145 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> localSearchOperatorStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics>();
149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
150 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
151 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> LocalSearchOperatorStatistics {
152 get { return localSearchOperatorStatistics_; }
153 }
154
156 public const int TotalNumNeighborsFieldNumber = 3;
157 private long totalNumNeighbors_;
161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
162 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
163 public long TotalNumNeighbors {
164 get { return totalNumNeighbors_; }
165 set {
166 totalNumNeighbors_ = value;
167 }
168 }
169
172 private long totalNumFilteredNeighbors_;
173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
176 get { return totalNumFilteredNeighbors_; }
177 set {
178 totalNumFilteredNeighbors_ = value;
179 }
180 }
181
184 private long totalNumAcceptedNeighbors_;
185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
188 get { return totalNumAcceptedNeighbors_; }
189 set {
190 totalNumAcceptedNeighbors_ = value;
191 }
192 }
193
196 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> _repeated_localSearchFilterStatistics_codec
197 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics.Parser);
198 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> localSearchFilterStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics>();
202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
204 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> LocalSearchFilterStatistics {
205 get { return localSearchFilterStatistics_; }
206 }
207
208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
209 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
210 public override bool Equals(object other) {
211 return Equals(other as LocalSearchStatistics);
212 }
213
214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
215 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
216 public bool Equals(LocalSearchStatistics other) {
217 if (ReferenceEquals(other, null)) {
218 return false;
219 }
220 if (ReferenceEquals(other, this)) {
221 return true;
222 }
223 if(!firstSolutionStatistics_.Equals(other.firstSolutionStatistics_)) return false;
224 if(!localSearchOperatorStatistics_.Equals(other.localSearchOperatorStatistics_)) return false;
225 if (TotalNumNeighbors != other.TotalNumNeighbors) return false;
226 if (TotalNumFilteredNeighbors != other.TotalNumFilteredNeighbors) return false;
227 if (TotalNumAcceptedNeighbors != other.TotalNumAcceptedNeighbors) return false;
228 if(!localSearchFilterStatistics_.Equals(other.localSearchFilterStatistics_)) return false;
229 return Equals(_unknownFields, other._unknownFields);
230 }
231
232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
234 public override int GetHashCode() {
235 int hash = 1;
236 hash ^= firstSolutionStatistics_.GetHashCode();
237 hash ^= localSearchOperatorStatistics_.GetHashCode();
238 if (TotalNumNeighbors != 0L) hash ^= TotalNumNeighbors.GetHashCode();
239 if (TotalNumFilteredNeighbors != 0L) hash ^= TotalNumFilteredNeighbors.GetHashCode();
240 if (TotalNumAcceptedNeighbors != 0L) hash ^= TotalNumAcceptedNeighbors.GetHashCode();
241 hash ^= localSearchFilterStatistics_.GetHashCode();
242 if (_unknownFields != null) {
243 hash ^= _unknownFields.GetHashCode();
244 }
245 return hash;
246 }
247
248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
249 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
250 public override string ToString() {
251 return pb::JsonFormatter.ToDiagnosticString(this);
252 }
253
254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
256 public void WriteTo(pb::CodedOutputStream output) {
257 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
258 output.WriteRawMessage(this);
259 #else
260 localSearchOperatorStatistics_.WriteTo(output, _repeated_localSearchOperatorStatistics_codec);
261 localSearchFilterStatistics_.WriteTo(output, _repeated_localSearchFilterStatistics_codec);
262 if (TotalNumNeighbors != 0L) {
263 output.WriteRawTag(24);
264 output.WriteInt64(TotalNumNeighbors);
265 }
266 if (TotalNumFilteredNeighbors != 0L) {
267 output.WriteRawTag(32);
268 output.WriteInt64(TotalNumFilteredNeighbors);
269 }
270 if (TotalNumAcceptedNeighbors != 0L) {
271 output.WriteRawTag(40);
272 output.WriteInt64(TotalNumAcceptedNeighbors);
273 }
274 firstSolutionStatistics_.WriteTo(output, _repeated_firstSolutionStatistics_codec);
275 if (_unknownFields != null) {
276 _unknownFields.WriteTo(output);
277 }
278 #endif
279 }
280
281 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
284 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
285 localSearchOperatorStatistics_.WriteTo(ref output, _repeated_localSearchOperatorStatistics_codec);
286 localSearchFilterStatistics_.WriteTo(ref output, _repeated_localSearchFilterStatistics_codec);
287 if (TotalNumNeighbors != 0L) {
288 output.WriteRawTag(24);
289 output.WriteInt64(TotalNumNeighbors);
290 }
291 if (TotalNumFilteredNeighbors != 0L) {
292 output.WriteRawTag(32);
293 output.WriteInt64(TotalNumFilteredNeighbors);
294 }
295 if (TotalNumAcceptedNeighbors != 0L) {
296 output.WriteRawTag(40);
297 output.WriteInt64(TotalNumAcceptedNeighbors);
298 }
299 firstSolutionStatistics_.WriteTo(ref output, _repeated_firstSolutionStatistics_codec);
300 if (_unknownFields != null) {
301 _unknownFields.WriteTo(ref output);
302 }
303 }
304 #endif
305
306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
307 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
308 public int CalculateSize() {
309 int size = 0;
310 size += firstSolutionStatistics_.CalculateSize(_repeated_firstSolutionStatistics_codec);
311 size += localSearchOperatorStatistics_.CalculateSize(_repeated_localSearchOperatorStatistics_codec);
312 if (TotalNumNeighbors != 0L) {
313 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumNeighbors);
314 }
315 if (TotalNumFilteredNeighbors != 0L) {
316 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumFilteredNeighbors);
317 }
318 if (TotalNumAcceptedNeighbors != 0L) {
319 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumAcceptedNeighbors);
320 }
321 size += localSearchFilterStatistics_.CalculateSize(_repeated_localSearchFilterStatistics_codec);
322 if (_unknownFields != null) {
323 size += _unknownFields.CalculateSize();
324 }
325 return size;
326 }
327
328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
330 public void MergeFrom(LocalSearchStatistics other) {
331 if (other == null) {
332 return;
333 }
334 firstSolutionStatistics_.Add(other.firstSolutionStatistics_);
335 localSearchOperatorStatistics_.Add(other.localSearchOperatorStatistics_);
336 if (other.TotalNumNeighbors != 0L) {
338 }
339 if (other.TotalNumFilteredNeighbors != 0L) {
341 }
342 if (other.TotalNumAcceptedNeighbors != 0L) {
344 }
345 localSearchFilterStatistics_.Add(other.localSearchFilterStatistics_);
346 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
347 }
348
349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
350 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
351 public void MergeFrom(pb::CodedInputStream input) {
352 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
353 input.ReadRawMessage(this);
354 #else
355 uint tag;
356 while ((tag = input.ReadTag()) != 0) {
357 if ((tag & 7) == 4) {
358 // Abort on any end group tag.
359 return;
360 }
361 switch(tag) {
362 default:
363 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
364 break;
365 case 10: {
366 localSearchOperatorStatistics_.AddEntriesFrom(input, _repeated_localSearchOperatorStatistics_codec);
367 break;
368 }
369 case 18: {
370 localSearchFilterStatistics_.AddEntriesFrom(input, _repeated_localSearchFilterStatistics_codec);
371 break;
372 }
373 case 24: {
374 TotalNumNeighbors = input.ReadInt64();
375 break;
376 }
377 case 32: {
378 TotalNumFilteredNeighbors = input.ReadInt64();
379 break;
380 }
381 case 40: {
382 TotalNumAcceptedNeighbors = input.ReadInt64();
383 break;
384 }
385 case 50: {
386 firstSolutionStatistics_.AddEntriesFrom(input, _repeated_firstSolutionStatistics_codec);
387 break;
388 }
389 }
390 }
391 #endif
392 }
393
394 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
396 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
397 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
398 uint tag;
399 while ((tag = input.ReadTag()) != 0) {
400 if ((tag & 7) == 4) {
401 // Abort on any end group tag.
402 return;
403 }
404 switch(tag) {
405 default:
406 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
407 break;
408 case 10: {
409 localSearchOperatorStatistics_.AddEntriesFrom(ref input, _repeated_localSearchOperatorStatistics_codec);
410 break;
411 }
412 case 18: {
413 localSearchFilterStatistics_.AddEntriesFrom(ref input, _repeated_localSearchFilterStatistics_codec);
414 break;
415 }
416 case 24: {
417 TotalNumNeighbors = input.ReadInt64();
418 break;
419 }
420 case 32: {
421 TotalNumFilteredNeighbors = input.ReadInt64();
422 break;
423 }
424 case 40: {
425 TotalNumAcceptedNeighbors = input.ReadInt64();
426 break;
427 }
428 case 50: {
429 firstSolutionStatistics_.AddEntriesFrom(ref input, _repeated_firstSolutionStatistics_codec);
430 break;
431 }
432 }
433 }
434 }
435 #endif
436
437 #region Nested types
439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
441 public static partial class Types {
445 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
446 public sealed partial class FirstSolutionStatistics : pb::IMessage<FirstSolutionStatistics>
447 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
448 , pb::IBufferMessage
449 #endif
450 {
451 private static readonly pb::MessageParser<FirstSolutionStatistics> _parser = new pb::MessageParser<FirstSolutionStatistics>(() => new FirstSolutionStatistics());
452 private pb::UnknownFieldSet _unknownFields;
453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
455 public static pb::MessageParser<FirstSolutionStatistics> Parser { get { return _parser; } }
456
457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
459 public static pbr::MessageDescriptor Descriptor {
460 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[0]; }
461 }
462
463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
464 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
465 pbr::MessageDescriptor pb::IMessage.Descriptor {
466 get { return Descriptor; }
467 }
468
469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
472 OnConstruction();
473 }
474
475 partial void OnConstruction();
476
477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
478 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
480 strategy_ = other.strategy_;
481 durationSeconds_ = other.durationSeconds_;
482 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
483 }
484
485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
486 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
488 return new FirstSolutionStatistics(this);
489 }
490
492 public const int StrategyFieldNumber = 1;
493 private string strategy_ = "";
497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
498 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
499 public string Strategy {
500 get { return strategy_; }
501 set {
502 strategy_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
503 }
504 }
505
507 public const int DurationSecondsFieldNumber = 2;
508 private double durationSeconds_;
512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
514 public double DurationSeconds {
515 get { return durationSeconds_; }
516 set {
517 durationSeconds_ = value;
518 }
519 }
520
521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
523 public override bool Equals(object other) {
524 return Equals(other as FirstSolutionStatistics);
525 }
526
527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
528 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
529 public bool Equals(FirstSolutionStatistics other) {
530 if (ReferenceEquals(other, null)) {
531 return false;
532 }
533 if (ReferenceEquals(other, this)) {
534 return true;
535 }
536 if (Strategy != other.Strategy) return false;
537 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
538 return Equals(_unknownFields, other._unknownFields);
539 }
540
541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
543 public override int GetHashCode() {
544 int hash = 1;
545 if (Strategy.Length != 0) hash ^= Strategy.GetHashCode();
546 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
547 if (_unknownFields != null) {
548 hash ^= _unknownFields.GetHashCode();
549 }
550 return hash;
551 }
552
553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
555 public override string ToString() {
556 return pb::JsonFormatter.ToDiagnosticString(this);
557 }
558
559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
560 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
561 public void WriteTo(pb::CodedOutputStream output) {
562 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
563 output.WriteRawMessage(this);
564 #else
565 if (Strategy.Length != 0) {
566 output.WriteRawTag(10);
567 output.WriteString(Strategy);
568 }
569 if (DurationSeconds != 0D) {
570 output.WriteRawTag(17);
571 output.WriteDouble(DurationSeconds);
572 }
573 if (_unknownFields != null) {
574 _unknownFields.WriteTo(output);
575 }
576 #endif
577 }
578
579 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
581 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
582 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
583 if (Strategy.Length != 0) {
584 output.WriteRawTag(10);
585 output.WriteString(Strategy);
586 }
587 if (DurationSeconds != 0D) {
588 output.WriteRawTag(17);
589 output.WriteDouble(DurationSeconds);
590 }
591 if (_unknownFields != null) {
592 _unknownFields.WriteTo(ref output);
593 }
594 }
595 #endif
596
597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
599 public int CalculateSize() {
600 int size = 0;
601 if (Strategy.Length != 0) {
602 size += 1 + pb::CodedOutputStream.ComputeStringSize(Strategy);
603 }
604 if (DurationSeconds != 0D) {
605 size += 1 + 8;
606 }
607 if (_unknownFields != null) {
608 size += _unknownFields.CalculateSize();
609 }
610 return size;
611 }
612
613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
616 if (other == null) {
617 return;
618 }
619 if (other.Strategy.Length != 0) {
620 Strategy = other.Strategy;
621 }
622 if (other.DurationSeconds != 0D) {
624 }
625 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
626 }
627
628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
630 public void MergeFrom(pb::CodedInputStream input) {
631 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
632 input.ReadRawMessage(this);
633 #else
634 uint tag;
635 while ((tag = input.ReadTag()) != 0) {
636 if ((tag & 7) == 4) {
637 // Abort on any end group tag.
638 return;
639 }
640 switch(tag) {
641 default:
642 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
643 break;
644 case 10: {
645 Strategy = input.ReadString();
646 break;
647 }
648 case 17: {
649 DurationSeconds = input.ReadDouble();
650 break;
651 }
652 }
653 }
654 #endif
655 }
656
657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
660 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
661 uint tag;
662 while ((tag = input.ReadTag()) != 0) {
663 if ((tag & 7) == 4) {
664 // Abort on any end group tag.
665 return;
666 }
667 switch(tag) {
668 default:
669 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
670 break;
671 case 10: {
672 Strategy = input.ReadString();
673 break;
674 }
675 case 17: {
676 DurationSeconds = input.ReadDouble();
677 break;
678 }
679 }
680 }
681 }
682 #endif
683
684 }
685
689 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
690 public sealed partial class LocalSearchOperatorStatistics : pb::IMessage<LocalSearchOperatorStatistics>
691 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
692 , pb::IBufferMessage
693 #endif
694 {
695 private static readonly pb::MessageParser<LocalSearchOperatorStatistics> _parser = new pb::MessageParser<LocalSearchOperatorStatistics>(() => new LocalSearchOperatorStatistics());
696 private pb::UnknownFieldSet _unknownFields;
697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
699 public static pb::MessageParser<LocalSearchOperatorStatistics> Parser { get { return _parser; } }
700
701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
703 public static pbr::MessageDescriptor Descriptor {
704 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[1]; }
705 }
706
707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
709 pbr::MessageDescriptor pb::IMessage.Descriptor {
710 get { return Descriptor; }
711 }
712
713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
716 OnConstruction();
717 }
718
719 partial void OnConstruction();
720
721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
722 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
724 localSearchOperator_ = other.localSearchOperator_;
725 numNeighbors_ = other.numNeighbors_;
726 numFilteredNeighbors_ = other.numFilteredNeighbors_;
727 numAcceptedNeighbors_ = other.numAcceptedNeighbors_;
728 durationSeconds_ = other.durationSeconds_;
729 makeNextNeighborDurationSeconds_ = other.makeNextNeighborDurationSeconds_;
730 acceptNeighborDurationSeconds_ = other.acceptNeighborDurationSeconds_;
731 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
732 }
733
734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
735 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
739
741 public const int LocalSearchOperatorFieldNumber = 1;
742 private string localSearchOperator_ = "";
746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
747 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
748 public string LocalSearchOperator {
749 get { return localSearchOperator_; }
750 set {
751 localSearchOperator_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
752 }
753 }
754
756 public const int NumNeighborsFieldNumber = 2;
757 private long numNeighbors_;
761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
762 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
763 public long NumNeighbors {
764 get { return numNeighbors_; }
765 set {
766 numNeighbors_ = value;
767 }
768 }
769
772 private long numFilteredNeighbors_;
776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
779 get { return numFilteredNeighbors_; }
780 set {
781 numFilteredNeighbors_ = value;
782 }
783 }
784
787 private long numAcceptedNeighbors_;
791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
792 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
794 get { return numAcceptedNeighbors_; }
795 set {
796 numAcceptedNeighbors_ = value;
797 }
798 }
799
801 public const int DurationSecondsFieldNumber = 5;
802 private double durationSeconds_;
806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
807 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
808 public double DurationSeconds {
809 get { return durationSeconds_; }
810 set {
811 durationSeconds_ = value;
812 }
813 }
814
817 private double makeNextNeighborDurationSeconds_;
821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
822 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
824 get { return makeNextNeighborDurationSeconds_; }
825 set {
826 makeNextNeighborDurationSeconds_ = value;
827 }
828 }
829
832 private double acceptNeighborDurationSeconds_;
837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
840 get { return acceptNeighborDurationSeconds_; }
841 set {
842 acceptNeighborDurationSeconds_ = value;
843 }
844 }
845
846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
847 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
848 public override bool Equals(object other) {
849 return Equals(other as LocalSearchOperatorStatistics);
850 }
851
852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
855 if (ReferenceEquals(other, null)) {
856 return false;
857 }
858 if (ReferenceEquals(other, this)) {
859 return true;
860 }
861 if (LocalSearchOperator != other.LocalSearchOperator) return false;
862 if (NumNeighbors != other.NumNeighbors) return false;
863 if (NumFilteredNeighbors != other.NumFilteredNeighbors) return false;
864 if (NumAcceptedNeighbors != other.NumAcceptedNeighbors) return false;
865 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
866 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(MakeNextNeighborDurationSeconds, other.MakeNextNeighborDurationSeconds)) return false;
867 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AcceptNeighborDurationSeconds, other.AcceptNeighborDurationSeconds)) return false;
868 return Equals(_unknownFields, other._unknownFields);
869 }
870
871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
872 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
873 public override int GetHashCode() {
874 int hash = 1;
875 if (LocalSearchOperator.Length != 0) hash ^= LocalSearchOperator.GetHashCode();
876 if (NumNeighbors != 0L) hash ^= NumNeighbors.GetHashCode();
877 if (NumFilteredNeighbors != 0L) hash ^= NumFilteredNeighbors.GetHashCode();
878 if (NumAcceptedNeighbors != 0L) hash ^= NumAcceptedNeighbors.GetHashCode();
879 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
880 if (MakeNextNeighborDurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(MakeNextNeighborDurationSeconds);
881 if (AcceptNeighborDurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AcceptNeighborDurationSeconds);
882 if (_unknownFields != null) {
883 hash ^= _unknownFields.GetHashCode();
884 }
885 return hash;
886 }
887
888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
889 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
890 public override string ToString() {
891 return pb::JsonFormatter.ToDiagnosticString(this);
892 }
893
894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
896 public void WriteTo(pb::CodedOutputStream output) {
897 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
898 output.WriteRawMessage(this);
899 #else
900 if (LocalSearchOperator.Length != 0) {
901 output.WriteRawTag(10);
902 output.WriteString(LocalSearchOperator);
903 }
904 if (NumNeighbors != 0L) {
905 output.WriteRawTag(16);
906 output.WriteInt64(NumNeighbors);
907 }
908 if (NumFilteredNeighbors != 0L) {
909 output.WriteRawTag(24);
910 output.WriteInt64(NumFilteredNeighbors);
911 }
912 if (NumAcceptedNeighbors != 0L) {
913 output.WriteRawTag(32);
914 output.WriteInt64(NumAcceptedNeighbors);
915 }
916 if (DurationSeconds != 0D) {
917 output.WriteRawTag(41);
918 output.WriteDouble(DurationSeconds);
919 }
921 output.WriteRawTag(49);
922 output.WriteDouble(MakeNextNeighborDurationSeconds);
923 }
925 output.WriteRawTag(57);
926 output.WriteDouble(AcceptNeighborDurationSeconds);
927 }
928 if (_unknownFields != null) {
929 _unknownFields.WriteTo(output);
930 }
931 #endif
932 }
933
934 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
935 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
936 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
937 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
938 if (LocalSearchOperator.Length != 0) {
939 output.WriteRawTag(10);
940 output.WriteString(LocalSearchOperator);
941 }
942 if (NumNeighbors != 0L) {
943 output.WriteRawTag(16);
944 output.WriteInt64(NumNeighbors);
945 }
946 if (NumFilteredNeighbors != 0L) {
947 output.WriteRawTag(24);
948 output.WriteInt64(NumFilteredNeighbors);
949 }
950 if (NumAcceptedNeighbors != 0L) {
951 output.WriteRawTag(32);
952 output.WriteInt64(NumAcceptedNeighbors);
953 }
954 if (DurationSeconds != 0D) {
955 output.WriteRawTag(41);
956 output.WriteDouble(DurationSeconds);
957 }
958 if (MakeNextNeighborDurationSeconds != 0D) {
959 output.WriteRawTag(49);
960 output.WriteDouble(MakeNextNeighborDurationSeconds);
961 }
962 if (AcceptNeighborDurationSeconds != 0D) {
963 output.WriteRawTag(57);
964 output.WriteDouble(AcceptNeighborDurationSeconds);
965 }
966 if (_unknownFields != null) {
967 _unknownFields.WriteTo(ref output);
968 }
969 }
970 #endif
971
972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
973 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
974 public int CalculateSize() {
975 int size = 0;
976 if (LocalSearchOperator.Length != 0) {
977 size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalSearchOperator);
978 }
979 if (NumNeighbors != 0L) {
980 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumNeighbors);
981 }
982 if (NumFilteredNeighbors != 0L) {
983 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumFilteredNeighbors);
984 }
985 if (NumAcceptedNeighbors != 0L) {
986 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumAcceptedNeighbors);
987 }
988 if (DurationSeconds != 0D) {
989 size += 1 + 8;
990 }
992 size += 1 + 8;
993 }
995 size += 1 + 8;
996 }
997 if (_unknownFields != null) {
998 size += _unknownFields.CalculateSize();
999 }
1000 return size;
1001 }
1002
1003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1006 if (other == null) {
1007 return;
1008 }
1009 if (other.LocalSearchOperator.Length != 0) {
1011 }
1012 if (other.NumNeighbors != 0L) {
1013 NumNeighbors = other.NumNeighbors;
1014 }
1015 if (other.NumFilteredNeighbors != 0L) {
1017 }
1018 if (other.NumAcceptedNeighbors != 0L) {
1020 }
1021 if (other.DurationSeconds != 0D) {
1023 }
1024 if (other.MakeNextNeighborDurationSeconds != 0D) {
1026 }
1027 if (other.AcceptNeighborDurationSeconds != 0D) {
1029 }
1030 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1031 }
1032
1033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1035 public void MergeFrom(pb::CodedInputStream input) {
1036 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1037 input.ReadRawMessage(this);
1038 #else
1039 uint tag;
1040 while ((tag = input.ReadTag()) != 0) {
1041 if ((tag & 7) == 4) {
1042 // Abort on any end group tag.
1043 return;
1044 }
1045 switch(tag) {
1046 default:
1047 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1048 break;
1049 case 10: {
1050 LocalSearchOperator = input.ReadString();
1051 break;
1052 }
1053 case 16: {
1054 NumNeighbors = input.ReadInt64();
1055 break;
1056 }
1057 case 24: {
1058 NumFilteredNeighbors = input.ReadInt64();
1059 break;
1060 }
1061 case 32: {
1062 NumAcceptedNeighbors = input.ReadInt64();
1063 break;
1064 }
1065 case 41: {
1066 DurationSeconds = input.ReadDouble();
1067 break;
1068 }
1069 case 49: {
1070 MakeNextNeighborDurationSeconds = input.ReadDouble();
1071 break;
1072 }
1073 case 57: {
1074 AcceptNeighborDurationSeconds = input.ReadDouble();
1075 break;
1076 }
1077 }
1078 }
1079 #endif
1080 }
1081
1082 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1085 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1086 uint tag;
1087 while ((tag = input.ReadTag()) != 0) {
1088 if ((tag & 7) == 4) {
1089 // Abort on any end group tag.
1090 return;
1091 }
1092 switch(tag) {
1093 default:
1094 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1095 break;
1096 case 10: {
1097 LocalSearchOperator = input.ReadString();
1098 break;
1099 }
1100 case 16: {
1101 NumNeighbors = input.ReadInt64();
1102 break;
1103 }
1104 case 24: {
1105 NumFilteredNeighbors = input.ReadInt64();
1106 break;
1107 }
1108 case 32: {
1109 NumAcceptedNeighbors = input.ReadInt64();
1110 break;
1111 }
1112 case 41: {
1113 DurationSeconds = input.ReadDouble();
1114 break;
1115 }
1116 case 49: {
1117 MakeNextNeighborDurationSeconds = input.ReadDouble();
1118 break;
1119 }
1120 case 57: {
1121 AcceptNeighborDurationSeconds = input.ReadDouble();
1122 break;
1123 }
1124 }
1125 }
1126 }
1127 #endif
1128
1129 }
1130
1134 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1135 public sealed partial class LocalSearchFilterStatistics : pb::IMessage<LocalSearchFilterStatistics>
1136 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1137 , pb::IBufferMessage
1138 #endif
1139 {
1140 private static readonly pb::MessageParser<LocalSearchFilterStatistics> _parser = new pb::MessageParser<LocalSearchFilterStatistics>(() => new LocalSearchFilterStatistics());
1141 private pb::UnknownFieldSet _unknownFields;
1142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1144 public static pb::MessageParser<LocalSearchFilterStatistics> Parser { get { return _parser; } }
1145
1146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1148 public static pbr::MessageDescriptor Descriptor {
1149 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[2]; }
1150 }
1151
1152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1154 pbr::MessageDescriptor pb::IMessage.Descriptor {
1155 get { return Descriptor; }
1156 }
1157
1158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1161 OnConstruction();
1162 }
1163
1164 partial void OnConstruction();
1165
1166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1169 localSearchFilter_ = other.localSearchFilter_;
1170 numCalls_ = other.numCalls_;
1171 numRejects_ = other.numRejects_;
1172 durationSeconds_ = other.durationSeconds_;
1173 numRejectsPerSecond_ = other.numRejectsPerSecond_;
1174 context_ = other.context_;
1175 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1176 }
1177
1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1179 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1181 return new LocalSearchFilterStatistics(this);
1182 }
1183
1185 public const int LocalSearchFilterFieldNumber = 1;
1186 private string localSearchFilter_ = "";
1190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1192 public string LocalSearchFilter {
1193 get { return localSearchFilter_; }
1194 set {
1195 localSearchFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1196 }
1197 }
1198
1200 public const int NumCallsFieldNumber = 2;
1201 private long numCalls_;
1205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1207 public long NumCalls {
1208 get { return numCalls_; }
1209 set {
1210 numCalls_ = value;
1211 }
1212 }
1213
1215 public const int NumRejectsFieldNumber = 3;
1216 private long numRejects_;
1220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1222 public long NumRejects {
1223 get { return numRejects_; }
1224 set {
1225 numRejects_ = value;
1226 }
1227 }
1228
1230 public const int DurationSecondsFieldNumber = 4;
1231 private double durationSeconds_;
1235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1237 public double DurationSeconds {
1238 get { return durationSeconds_; }
1239 set {
1240 durationSeconds_ = value;
1241 }
1242 }
1243
1246 private double numRejectsPerSecond_;
1250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1252 public double NumRejectsPerSecond {
1253 get { return numRejectsPerSecond_; }
1254 set {
1255 numRejectsPerSecond_ = value;
1256 }
1257 }
1258
1260 public const int ContextFieldNumber = 6;
1261 private string context_ = "";
1265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1267 public string Context {
1268 get { return context_; }
1269 set {
1270 context_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1271 }
1272 }
1273
1274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1275 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1276 public override bool Equals(object other) {
1277 return Equals(other as LocalSearchFilterStatistics);
1278 }
1279
1280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1283 if (ReferenceEquals(other, null)) {
1284 return false;
1285 }
1286 if (ReferenceEquals(other, this)) {
1287 return true;
1288 }
1289 if (LocalSearchFilter != other.LocalSearchFilter) return false;
1290 if (NumCalls != other.NumCalls) return false;
1291 if (NumRejects != other.NumRejects) return false;
1292 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
1293 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NumRejectsPerSecond, other.NumRejectsPerSecond)) return false;
1294 if (Context != other.Context) return false;
1295 return Equals(_unknownFields, other._unknownFields);
1296 }
1297
1298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1299 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1300 public override int GetHashCode() {
1301 int hash = 1;
1302 if (LocalSearchFilter.Length != 0) hash ^= LocalSearchFilter.GetHashCode();
1303 if (NumCalls != 0L) hash ^= NumCalls.GetHashCode();
1304 if (NumRejects != 0L) hash ^= NumRejects.GetHashCode();
1305 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
1306 if (NumRejectsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumRejectsPerSecond);
1307 if (Context.Length != 0) hash ^= Context.GetHashCode();
1308 if (_unknownFields != null) {
1309 hash ^= _unknownFields.GetHashCode();
1310 }
1311 return hash;
1312 }
1313
1314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1316 public override string ToString() {
1317 return pb::JsonFormatter.ToDiagnosticString(this);
1318 }
1319
1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1322 public void WriteTo(pb::CodedOutputStream output) {
1323 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1324 output.WriteRawMessage(this);
1325 #else
1326 if (LocalSearchFilter.Length != 0) {
1327 output.WriteRawTag(10);
1328 output.WriteString(LocalSearchFilter);
1329 }
1330 if (NumCalls != 0L) {
1331 output.WriteRawTag(16);
1332 output.WriteInt64(NumCalls);
1333 }
1334 if (NumRejects != 0L) {
1335 output.WriteRawTag(24);
1336 output.WriteInt64(NumRejects);
1337 }
1338 if (DurationSeconds != 0D) {
1339 output.WriteRawTag(33);
1340 output.WriteDouble(DurationSeconds);
1341 }
1342 if (NumRejectsPerSecond != 0D) {
1343 output.WriteRawTag(41);
1344 output.WriteDouble(NumRejectsPerSecond);
1345 }
1346 if (Context.Length != 0) {
1347 output.WriteRawTag(50);
1348 output.WriteString(Context);
1349 }
1350 if (_unknownFields != null) {
1351 _unknownFields.WriteTo(output);
1352 }
1353 #endif
1354 }
1355
1356 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1359 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1360 if (LocalSearchFilter.Length != 0) {
1361 output.WriteRawTag(10);
1362 output.WriteString(LocalSearchFilter);
1363 }
1364 if (NumCalls != 0L) {
1365 output.WriteRawTag(16);
1366 output.WriteInt64(NumCalls);
1367 }
1368 if (NumRejects != 0L) {
1369 output.WriteRawTag(24);
1370 output.WriteInt64(NumRejects);
1371 }
1372 if (DurationSeconds != 0D) {
1373 output.WriteRawTag(33);
1374 output.WriteDouble(DurationSeconds);
1375 }
1376 if (NumRejectsPerSecond != 0D) {
1377 output.WriteRawTag(41);
1378 output.WriteDouble(NumRejectsPerSecond);
1379 }
1380 if (Context.Length != 0) {
1381 output.WriteRawTag(50);
1382 output.WriteString(Context);
1383 }
1384 if (_unknownFields != null) {
1385 _unknownFields.WriteTo(ref output);
1386 }
1387 }
1388 #endif
1389
1390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1392 public int CalculateSize() {
1393 int size = 0;
1394 if (LocalSearchFilter.Length != 0) {
1395 size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalSearchFilter);
1396 }
1397 if (NumCalls != 0L) {
1398 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumCalls);
1399 }
1400 if (NumRejects != 0L) {
1401 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumRejects);
1402 }
1403 if (DurationSeconds != 0D) {
1404 size += 1 + 8;
1405 }
1406 if (NumRejectsPerSecond != 0D) {
1407 size += 1 + 8;
1408 }
1409 if (Context.Length != 0) {
1410 size += 1 + pb::CodedOutputStream.ComputeStringSize(Context);
1411 }
1412 if (_unknownFields != null) {
1413 size += _unknownFields.CalculateSize();
1414 }
1415 return size;
1416 }
1417
1418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1419 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1421 if (other == null) {
1422 return;
1423 }
1424 if (other.LocalSearchFilter.Length != 0) {
1426 }
1427 if (other.NumCalls != 0L) {
1428 NumCalls = other.NumCalls;
1429 }
1430 if (other.NumRejects != 0L) {
1431 NumRejects = other.NumRejects;
1432 }
1433 if (other.DurationSeconds != 0D) {
1435 }
1436 if (other.NumRejectsPerSecond != 0D) {
1438 }
1439 if (other.Context.Length != 0) {
1440 Context = other.Context;
1441 }
1442 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1443 }
1444
1445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1446 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1447 public void MergeFrom(pb::CodedInputStream input) {
1448 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1449 input.ReadRawMessage(this);
1450 #else
1451 uint tag;
1452 while ((tag = input.ReadTag()) != 0) {
1453 if ((tag & 7) == 4) {
1454 // Abort on any end group tag.
1455 return;
1456 }
1457 switch(tag) {
1458 default:
1459 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1460 break;
1461 case 10: {
1462 LocalSearchFilter = input.ReadString();
1463 break;
1464 }
1465 case 16: {
1466 NumCalls = input.ReadInt64();
1467 break;
1468 }
1469 case 24: {
1470 NumRejects = input.ReadInt64();
1471 break;
1472 }
1473 case 33: {
1474 DurationSeconds = input.ReadDouble();
1475 break;
1476 }
1477 case 41: {
1478 NumRejectsPerSecond = input.ReadDouble();
1479 break;
1480 }
1481 case 50: {
1482 Context = input.ReadString();
1483 break;
1484 }
1485 }
1486 }
1487 #endif
1488 }
1489
1490 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1493 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1494 uint tag;
1495 while ((tag = input.ReadTag()) != 0) {
1496 if ((tag & 7) == 4) {
1497 // Abort on any end group tag.
1498 return;
1499 }
1500 switch(tag) {
1501 default:
1502 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1503 break;
1504 case 10: {
1505 LocalSearchFilter = input.ReadString();
1506 break;
1507 }
1508 case 16: {
1509 NumCalls = input.ReadInt64();
1510 break;
1511 }
1512 case 24: {
1513 NumRejects = input.ReadInt64();
1514 break;
1515 }
1516 case 33: {
1517 DurationSeconds = input.ReadDouble();
1518 break;
1519 }
1520 case 41: {
1521 NumRejectsPerSecond = input.ReadDouble();
1522 break;
1523 }
1524 case 50: {
1525 Context = input.ReadString();
1526 break;
1527 }
1528 }
1529 }
1530 }
1531 #endif
1532
1533 }
1534
1535 }
1536 #endregion
1537
1538 }
1539
1543 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1544 public sealed partial class ConstraintSolverStatistics : pb::IMessage<ConstraintSolverStatistics>
1545 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1546 , pb::IBufferMessage
1547 #endif
1548 {
1549 private static readonly pb::MessageParser<ConstraintSolverStatistics> _parser = new pb::MessageParser<ConstraintSolverStatistics>(() => new ConstraintSolverStatistics());
1550 private pb::UnknownFieldSet _unknownFields;
1551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1552 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1553 public static pb::MessageParser<ConstraintSolverStatistics> Parser { get { return _parser; } }
1554
1555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1556 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1557 public static pbr::MessageDescriptor Descriptor {
1558 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[1]; }
1559 }
1560
1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1563 pbr::MessageDescriptor pb::IMessage.Descriptor {
1564 get { return Descriptor; }
1565 }
1566
1567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1568 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1570 OnConstruction();
1571 }
1572
1573 partial void OnConstruction();
1574
1575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1578 numBranches_ = other.numBranches_;
1579 numFailures_ = other.numFailures_;
1580 numSolutions_ = other.numSolutions_;
1581 bytesUsed_ = other.bytesUsed_;
1582 durationSeconds_ = other.durationSeconds_;
1583 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1584 }
1585
1586 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1587 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1589 return new ConstraintSolverStatistics(this);
1590 }
1591
1593 public const int NumBranchesFieldNumber = 1;
1594 private long numBranches_;
1598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1600 public long NumBranches {
1601 get { return numBranches_; }
1602 set {
1603 numBranches_ = value;
1604 }
1605 }
1606
1608 public const int NumFailuresFieldNumber = 2;
1609 private long numFailures_;
1613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1615 public long NumFailures {
1616 get { return numFailures_; }
1617 set {
1618 numFailures_ = value;
1619 }
1620 }
1621
1623 public const int NumSolutionsFieldNumber = 3;
1624 private long numSolutions_;
1628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1629 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1630 public long NumSolutions {
1631 get { return numSolutions_; }
1632 set {
1633 numSolutions_ = value;
1634 }
1635 }
1636
1638 public const int BytesUsedFieldNumber = 4;
1639 private long bytesUsed_;
1643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1644 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1645 public long BytesUsed {
1646 get { return bytesUsed_; }
1647 set {
1648 bytesUsed_ = value;
1649 }
1650 }
1651
1653 public const int DurationSecondsFieldNumber = 5;
1654 private double durationSeconds_;
1658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1660 public double DurationSeconds {
1661 get { return durationSeconds_; }
1662 set {
1663 durationSeconds_ = value;
1664 }
1665 }
1666
1667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1668 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1669 public override bool Equals(object other) {
1670 return Equals(other as ConstraintSolverStatistics);
1671 }
1672
1673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1674 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1676 if (ReferenceEquals(other, null)) {
1677 return false;
1678 }
1679 if (ReferenceEquals(other, this)) {
1680 return true;
1681 }
1682 if (NumBranches != other.NumBranches) return false;
1683 if (NumFailures != other.NumFailures) return false;
1684 if (NumSolutions != other.NumSolutions) return false;
1685 if (BytesUsed != other.BytesUsed) return false;
1686 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
1687 return Equals(_unknownFields, other._unknownFields);
1688 }
1689
1690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1692 public override int GetHashCode() {
1693 int hash = 1;
1694 if (NumBranches != 0L) hash ^= NumBranches.GetHashCode();
1695 if (NumFailures != 0L) hash ^= NumFailures.GetHashCode();
1696 if (NumSolutions != 0L) hash ^= NumSolutions.GetHashCode();
1697 if (BytesUsed != 0L) hash ^= BytesUsed.GetHashCode();
1698 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
1699 if (_unknownFields != null) {
1700 hash ^= _unknownFields.GetHashCode();
1701 }
1702 return hash;
1703 }
1704
1705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1707 public override string ToString() {
1708 return pb::JsonFormatter.ToDiagnosticString(this);
1709 }
1710
1711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1713 public void WriteTo(pb::CodedOutputStream output) {
1714 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1715 output.WriteRawMessage(this);
1716 #else
1717 if (NumBranches != 0L) {
1718 output.WriteRawTag(8);
1719 output.WriteInt64(NumBranches);
1720 }
1721 if (NumFailures != 0L) {
1722 output.WriteRawTag(16);
1723 output.WriteInt64(NumFailures);
1724 }
1725 if (NumSolutions != 0L) {
1726 output.WriteRawTag(24);
1727 output.WriteInt64(NumSolutions);
1728 }
1729 if (BytesUsed != 0L) {
1730 output.WriteRawTag(32);
1731 output.WriteInt64(BytesUsed);
1732 }
1733 if (DurationSeconds != 0D) {
1734 output.WriteRawTag(41);
1735 output.WriteDouble(DurationSeconds);
1736 }
1737 if (_unknownFields != null) {
1738 _unknownFields.WriteTo(output);
1739 }
1740 #endif
1741 }
1742
1743 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1745 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1746 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1747 if (NumBranches != 0L) {
1748 output.WriteRawTag(8);
1749 output.WriteInt64(NumBranches);
1750 }
1751 if (NumFailures != 0L) {
1752 output.WriteRawTag(16);
1753 output.WriteInt64(NumFailures);
1754 }
1755 if (NumSolutions != 0L) {
1756 output.WriteRawTag(24);
1757 output.WriteInt64(NumSolutions);
1758 }
1759 if (BytesUsed != 0L) {
1760 output.WriteRawTag(32);
1761 output.WriteInt64(BytesUsed);
1762 }
1763 if (DurationSeconds != 0D) {
1764 output.WriteRawTag(41);
1765 output.WriteDouble(DurationSeconds);
1766 }
1767 if (_unknownFields != null) {
1768 _unknownFields.WriteTo(ref output);
1769 }
1770 }
1771 #endif
1772
1773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1774 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1775 public int CalculateSize() {
1776 int size = 0;
1777 if (NumBranches != 0L) {
1778 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBranches);
1779 }
1780 if (NumFailures != 0L) {
1781 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumFailures);
1782 }
1783 if (NumSolutions != 0L) {
1784 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumSolutions);
1785 }
1786 if (BytesUsed != 0L) {
1787 size += 1 + pb::CodedOutputStream.ComputeInt64Size(BytesUsed);
1788 }
1789 if (DurationSeconds != 0D) {
1790 size += 1 + 8;
1791 }
1792 if (_unknownFields != null) {
1793 size += _unknownFields.CalculateSize();
1794 }
1795 return size;
1796 }
1797
1798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1801 if (other == null) {
1802 return;
1803 }
1804 if (other.NumBranches != 0L) {
1805 NumBranches = other.NumBranches;
1806 }
1807 if (other.NumFailures != 0L) {
1808 NumFailures = other.NumFailures;
1809 }
1810 if (other.NumSolutions != 0L) {
1811 NumSolutions = other.NumSolutions;
1812 }
1813 if (other.BytesUsed != 0L) {
1814 BytesUsed = other.BytesUsed;
1815 }
1816 if (other.DurationSeconds != 0D) {
1818 }
1819 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1820 }
1821
1822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1823 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1824 public void MergeFrom(pb::CodedInputStream input) {
1825 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1826 input.ReadRawMessage(this);
1827 #else
1828 uint tag;
1829 while ((tag = input.ReadTag()) != 0) {
1830 if ((tag & 7) == 4) {
1831 // Abort on any end group tag.
1832 return;
1833 }
1834 switch(tag) {
1835 default:
1836 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1837 break;
1838 case 8: {
1839 NumBranches = input.ReadInt64();
1840 break;
1841 }
1842 case 16: {
1843 NumFailures = input.ReadInt64();
1844 break;
1845 }
1846 case 24: {
1847 NumSolutions = input.ReadInt64();
1848 break;
1849 }
1850 case 32: {
1851 BytesUsed = input.ReadInt64();
1852 break;
1853 }
1854 case 41: {
1855 DurationSeconds = input.ReadDouble();
1856 break;
1857 }
1858 }
1859 }
1860 #endif
1861 }
1862
1863 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1865 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1866 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1867 uint tag;
1868 while ((tag = input.ReadTag()) != 0) {
1869 if ((tag & 7) == 4) {
1870 // Abort on any end group tag.
1871 return;
1872 }
1873 switch(tag) {
1874 default:
1875 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1876 break;
1877 case 8: {
1878 NumBranches = input.ReadInt64();
1879 break;
1880 }
1881 case 16: {
1882 NumFailures = input.ReadInt64();
1883 break;
1884 }
1885 case 24: {
1886 NumSolutions = input.ReadInt64();
1887 break;
1888 }
1889 case 32: {
1890 BytesUsed = input.ReadInt64();
1891 break;
1892 }
1893 case 41: {
1894 DurationSeconds = input.ReadDouble();
1895 break;
1896 }
1897 }
1898 }
1899 }
1900 #endif
1901
1902 }
1903
1907 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1908 public sealed partial class SearchStatistics : pb::IMessage<SearchStatistics>
1909 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1910 , pb::IBufferMessage
1911 #endif
1912 {
1913 private static readonly pb::MessageParser<SearchStatistics> _parser = new pb::MessageParser<SearchStatistics>(() => new SearchStatistics());
1914 private pb::UnknownFieldSet _unknownFields;
1915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1917 public static pb::MessageParser<SearchStatistics> Parser { get { return _parser; } }
1918
1919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1921 public static pbr::MessageDescriptor Descriptor {
1922 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[2]; }
1923 }
1924
1925 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1926 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1927 pbr::MessageDescriptor pb::IMessage.Descriptor {
1928 get { return Descriptor; }
1929 }
1930
1931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1934 OnConstruction();
1935 }
1936
1937 partial void OnConstruction();
1938
1939 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1940 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1941 public SearchStatistics(SearchStatistics other) : this() {
1942 localSearchStatistics_ = other.localSearchStatistics_.Clone();
1943 constraintSolverStatistics_ = other.constraintSolverStatistics_.Clone();
1944 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1945 }
1946
1947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1948 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1950 return new SearchStatistics(this);
1951 }
1952
1955 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics> _repeated_localSearchStatistics_codec
1956 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Parser);
1957 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics> localSearchStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics>();
1961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1963 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics> LocalSearchStatistics {
1964 get { return localSearchStatistics_; }
1965 }
1966
1969 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics> _repeated_constraintSolverStatistics_codec
1970 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics.Parser);
1971 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics> constraintSolverStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics>();
1975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1976 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1977 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics> ConstraintSolverStatistics {
1978 get { return constraintSolverStatistics_; }
1979 }
1980
1981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1982 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1983 public override bool Equals(object other) {
1984 return Equals(other as SearchStatistics);
1985 }
1986
1987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1989 public bool Equals(SearchStatistics other) {
1990 if (ReferenceEquals(other, null)) {
1991 return false;
1992 }
1993 if (ReferenceEquals(other, this)) {
1994 return true;
1995 }
1996 if(!localSearchStatistics_.Equals(other.localSearchStatistics_)) return false;
1997 if(!constraintSolverStatistics_.Equals(other.constraintSolverStatistics_)) return false;
1998 return Equals(_unknownFields, other._unknownFields);
1999 }
2000
2001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2002 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2003 public override int GetHashCode() {
2004 int hash = 1;
2005 hash ^= localSearchStatistics_.GetHashCode();
2006 hash ^= constraintSolverStatistics_.GetHashCode();
2007 if (_unknownFields != null) {
2008 hash ^= _unknownFields.GetHashCode();
2009 }
2010 return hash;
2011 }
2012
2013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2014 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2015 public override string ToString() {
2016 return pb::JsonFormatter.ToDiagnosticString(this);
2017 }
2018
2019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2020 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2021 public void WriteTo(pb::CodedOutputStream output) {
2022 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2023 output.WriteRawMessage(this);
2024 #else
2025 localSearchStatistics_.WriteTo(output, _repeated_localSearchStatistics_codec);
2026 constraintSolverStatistics_.WriteTo(output, _repeated_constraintSolverStatistics_codec);
2027 if (_unknownFields != null) {
2028 _unknownFields.WriteTo(output);
2029 }
2030 #endif
2031 }
2032
2033 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2036 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2037 localSearchStatistics_.WriteTo(ref output, _repeated_localSearchStatistics_codec);
2038 constraintSolverStatistics_.WriteTo(ref output, _repeated_constraintSolverStatistics_codec);
2039 if (_unknownFields != null) {
2040 _unknownFields.WriteTo(ref output);
2041 }
2042 }
2043 #endif
2044
2045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2047 public int CalculateSize() {
2048 int size = 0;
2049 size += localSearchStatistics_.CalculateSize(_repeated_localSearchStatistics_codec);
2050 size += constraintSolverStatistics_.CalculateSize(_repeated_constraintSolverStatistics_codec);
2051 if (_unknownFields != null) {
2052 size += _unknownFields.CalculateSize();
2053 }
2054 return size;
2055 }
2056
2057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2059 public void MergeFrom(SearchStatistics other) {
2060 if (other == null) {
2061 return;
2062 }
2063 localSearchStatistics_.Add(other.localSearchStatistics_);
2064 constraintSolverStatistics_.Add(other.constraintSolverStatistics_);
2065 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2066 }
2067
2068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2070 public void MergeFrom(pb::CodedInputStream input) {
2071 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2072 input.ReadRawMessage(this);
2073 #else
2074 uint tag;
2075 while ((tag = input.ReadTag()) != 0) {
2076 if ((tag & 7) == 4) {
2077 // Abort on any end group tag.
2078 return;
2079 }
2080 switch(tag) {
2081 default:
2082 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2083 break;
2084 case 10: {
2085 localSearchStatistics_.AddEntriesFrom(input, _repeated_localSearchStatistics_codec);
2086 break;
2087 }
2088 case 18: {
2089 constraintSolverStatistics_.AddEntriesFrom(input, _repeated_constraintSolverStatistics_codec);
2090 break;
2091 }
2092 }
2093 }
2094 #endif
2095 }
2096
2097 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2100 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2101 uint tag;
2102 while ((tag = input.ReadTag()) != 0) {
2103 if ((tag & 7) == 4) {
2104 // Abort on any end group tag.
2105 return;
2106 }
2107 switch(tag) {
2108 default:
2109 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2110 break;
2111 case 10: {
2112 localSearchStatistics_.AddEntriesFrom(ref input, _repeated_localSearchStatistics_codec);
2113 break;
2114 }
2115 case 18: {
2116 constraintSolverStatistics_.AddEntriesFrom(ref input, _repeated_constraintSolverStatistics_codec);
2117 break;
2118 }
2119 }
2120 }
2121 }
2122 #endif
2123
2124 }
2125
2126 #endregion
2127
2128}
2129
2130#endregion Designer generated code
global::Google.Protobuf pb
Definition SetCover.pb.cs:8
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Definition SetCover.pb.cs:9
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.
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 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.