Google OR-Tools v9.11
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 "bxITb3BlcmF0aW9uc19yZXNlYXJjaCL0BgoVTG9jYWxTZWFyY2hTdGF0aXN0",
29 "aWNzEmUKGWZpcnN0X3NvbHV0aW9uX3N0YXRpc3RpY3MYBiADKAsyQi5vcGVy",
30 "YXRpb25zX3Jlc2VhcmNoLkxvY2FsU2VhcmNoU3RhdGlzdGljcy5GaXJzdFNv",
31 "bHV0aW9uU3RhdGlzdGljcxJyCiBsb2NhbF9zZWFyY2hfb3BlcmF0b3Jfc3Rh",
32 "dGlzdGljcxgBIAMoCzJILm9wZXJhdGlvbnNfcmVzZWFyY2guTG9jYWxTZWFy",
33 "Y2hTdGF0aXN0aWNzLkxvY2FsU2VhcmNoT3BlcmF0b3JTdGF0aXN0aWNzEhsK",
34 "E3RvdGFsX251bV9uZWlnaGJvcnMYAyABKAMSJAocdG90YWxfbnVtX2ZpbHRl",
35 "cmVkX25laWdoYm9ycxgEIAEoAxIkChx0b3RhbF9udW1fYWNjZXB0ZWRfbmVp",
36 "Z2hib3JzGAUgASgDEm4KHmxvY2FsX3NlYXJjaF9maWx0ZXJfc3RhdGlzdGlj",
37 "cxgCIAMoCzJGLm9wZXJhdGlvbnNfcmVzZWFyY2guTG9jYWxTZWFyY2hTdGF0",
38 "aXN0aWNzLkxvY2FsU2VhcmNoRmlsdGVyU3RhdGlzdGljcxpFChdGaXJzdFNv",
39 "bHV0aW9uU3RhdGlzdGljcxIQCghzdHJhdGVneRgBIAEoCRIYChBkdXJhdGlv",
40 "bl9zZWNvbmRzGAIgASgBGq8BCh1Mb2NhbFNlYXJjaE9wZXJhdG9yU3RhdGlz",
41 "dGljcxIdChVsb2NhbF9zZWFyY2hfb3BlcmF0b3IYASABKAkSFQoNbnVtX25l",
42 "aWdoYm9ycxgCIAEoAxIeChZudW1fZmlsdGVyZWRfbmVpZ2hib3JzGAMgASgD",
43 "Eh4KFm51bV9hY2NlcHRlZF9uZWlnaGJvcnMYBCABKAMSGAoQZHVyYXRpb25f",
44 "c2Vjb25kcxgFIAEoARqtAQobTG9jYWxTZWFyY2hGaWx0ZXJTdGF0aXN0aWNz",
45 "EhsKE2xvY2FsX3NlYXJjaF9maWx0ZXIYASABKAkSEQoJbnVtX2NhbGxzGAIg",
46 "ASgDEhMKC251bV9yZWplY3RzGAMgASgDEhgKEGR1cmF0aW9uX3NlY29uZHMY",
47 "BCABKAESHgoWbnVtX3JlamVjdHNfcGVyX3NlY29uZBgFIAEoARIPCgdjb250",
48 "ZXh0GAYgASgJIo0BChpDb25zdHJhaW50U29sdmVyU3RhdGlzdGljcxIUCgxu",
49 "dW1fYnJhbmNoZXMYASABKAMSFAoMbnVtX2ZhaWx1cmVzGAIgASgDEhUKDW51",
50 "bV9zb2x1dGlvbnMYAyABKAMSEgoKYnl0ZXNfdXNlZBgEIAEoAxIYChBkdXJh",
51 "dGlvbl9zZWNvbmRzGAUgASgBIrYBChBTZWFyY2hTdGF0aXN0aWNzEksKF2xv",
52 "Y2FsX3NlYXJjaF9zdGF0aXN0aWNzGAEgASgLMioub3BlcmF0aW9uc19yZXNl",
53 "YXJjaC5Mb2NhbFNlYXJjaFN0YXRpc3RpY3MSVQocY29uc3RyYWludF9zb2x2",
54 "ZXJfc3RhdGlzdGljcxgCIAEoCzIvLm9wZXJhdGlvbnNfcmVzZWFyY2guQ29u",
55 "c3RyYWludFNvbHZlclN0YXRpc3RpY3NCSQojY29tLmdvb2dsZS5vcnRvb2xz",
56 "LmNvbnN0cmFpbnRzb2x2ZXJQAaoCH0dvb2dsZS5PclRvb2xzLkNvbnN0cmFp",
57 "bnRTb2x2ZXJiBnByb3RvMw=="));
58 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
59 new pbr::FileDescriptor[] { },
60 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
61 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),
62 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" }, null, null, null, null),
63 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)}),
64 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),
65 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.SearchStatistics), global::Google.OrTools.ConstraintSolver.SearchStatistics.Parser, new[]{ "LocalSearchStatistics", "ConstraintSolverStatistics" }, null, null, null, null)
66 }));
67 }
68 #endregion
69
70 }
71 #region Messages
75 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
76 public sealed partial class LocalSearchStatistics : pb::IMessage<LocalSearchStatistics>
77 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
78 , pb::IBufferMessage
79 #endif
80 {
81 private static readonly pb::MessageParser<LocalSearchStatistics> _parser = new pb::MessageParser<LocalSearchStatistics>(() => new LocalSearchStatistics());
82 private pb::UnknownFieldSet _unknownFields;
83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
85 public static pb::MessageParser<LocalSearchStatistics> Parser { get { return _parser; } }
86
87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
89 public static pbr::MessageDescriptor Descriptor {
90 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[0]; }
91 }
92
93 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
94 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
95 pbr::MessageDescriptor pb::IMessage.Descriptor {
96 get { return Descriptor; }
97 }
98
99 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
100 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
102 OnConstruction();
103 }
104
105 partial void OnConstruction();
106
107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
110 firstSolutionStatistics_ = other.firstSolutionStatistics_.Clone();
111 localSearchOperatorStatistics_ = other.localSearchOperatorStatistics_.Clone();
112 totalNumNeighbors_ = other.totalNumNeighbors_;
113 totalNumFilteredNeighbors_ = other.totalNumFilteredNeighbors_;
114 totalNumAcceptedNeighbors_ = other.totalNumAcceptedNeighbors_;
115 localSearchFilterStatistics_ = other.localSearchFilterStatistics_.Clone();
116 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
117 }
118
119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
122 return new LocalSearchStatistics(this);
123 }
124
126 public const int FirstSolutionStatisticsFieldNumber = 6;
127 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> _repeated_firstSolutionStatistics_codec
128 = pb::FieldCodec.ForMessage(50, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics.Parser);
129 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> firstSolutionStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics>();
133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
135 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.FirstSolutionStatistics> FirstSolutionStatistics {
136 get { return firstSolutionStatistics_; }
137 }
138
140 public const int LocalSearchOperatorStatisticsFieldNumber = 1;
141 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> _repeated_localSearchOperatorStatistics_codec
142 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics.Parser);
143 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> localSearchOperatorStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics>();
147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
149 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchOperatorStatistics> LocalSearchOperatorStatistics {
150 get { return localSearchOperatorStatistics_; }
151 }
152
154 public const int TotalNumNeighborsFieldNumber = 3;
155 private long totalNumNeighbors_;
159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
161 public long TotalNumNeighbors {
162 get { return totalNumNeighbors_; }
163 set {
164 totalNumNeighbors_ = value;
165 }
166 }
167
169 public const int TotalNumFilteredNeighborsFieldNumber = 4;
170 private long totalNumFilteredNeighbors_;
171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
172 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
173 public long TotalNumFilteredNeighbors {
174 get { return totalNumFilteredNeighbors_; }
175 set {
176 totalNumFilteredNeighbors_ = value;
177 }
178 }
179
181 public const int TotalNumAcceptedNeighborsFieldNumber = 5;
182 private long totalNumAcceptedNeighbors_;
183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
184 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
185 public long TotalNumAcceptedNeighbors {
186 get { return totalNumAcceptedNeighbors_; }
187 set {
188 totalNumAcceptedNeighbors_ = value;
189 }
190 }
191
193 public const int LocalSearchFilterStatisticsFieldNumber = 2;
194 private static readonly pb::FieldCodec<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> _repeated_localSearchFilterStatistics_codec
195 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics.Parser);
196 private readonly pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> localSearchFilterStatistics_ = new pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics>();
200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
202 public pbc::RepeatedField<global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Types.LocalSearchFilterStatistics> LocalSearchFilterStatistics {
203 get { return localSearchFilterStatistics_; }
204 }
205
206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
208 public override bool Equals(object other) {
209 return Equals(other as LocalSearchStatistics);
210 }
211
212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
213 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
214 public bool Equals(LocalSearchStatistics other) {
215 if (ReferenceEquals(other, null)) {
216 return false;
217 }
218 if (ReferenceEquals(other, this)) {
219 return true;
220 }
221 if(!firstSolutionStatistics_.Equals(other.firstSolutionStatistics_)) return false;
222 if(!localSearchOperatorStatistics_.Equals(other.localSearchOperatorStatistics_)) return false;
223 if (TotalNumNeighbors != other.TotalNumNeighbors) return false;
224 if (TotalNumFilteredNeighbors != other.TotalNumFilteredNeighbors) return false;
225 if (TotalNumAcceptedNeighbors != other.TotalNumAcceptedNeighbors) return false;
226 if(!localSearchFilterStatistics_.Equals(other.localSearchFilterStatistics_)) return false;
227 return Equals(_unknownFields, other._unknownFields);
228 }
229
230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
232 public override int GetHashCode() {
233 int hash = 1;
234 hash ^= firstSolutionStatistics_.GetHashCode();
235 hash ^= localSearchOperatorStatistics_.GetHashCode();
236 if (TotalNumNeighbors != 0L) hash ^= TotalNumNeighbors.GetHashCode();
237 if (TotalNumFilteredNeighbors != 0L) hash ^= TotalNumFilteredNeighbors.GetHashCode();
238 if (TotalNumAcceptedNeighbors != 0L) hash ^= TotalNumAcceptedNeighbors.GetHashCode();
239 hash ^= localSearchFilterStatistics_.GetHashCode();
240 if (_unknownFields != null) {
241 hash ^= _unknownFields.GetHashCode();
242 }
243 return hash;
244 }
245
246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
248 public override string ToString() {
249 return pb::JsonFormatter.ToDiagnosticString(this);
250 }
251
252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
253 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
254 public void WriteTo(pb::CodedOutputStream output) {
255 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
256 output.WriteRawMessage(this);
257 #else
258 localSearchOperatorStatistics_.WriteTo(output, _repeated_localSearchOperatorStatistics_codec);
259 localSearchFilterStatistics_.WriteTo(output, _repeated_localSearchFilterStatistics_codec);
260 if (TotalNumNeighbors != 0L) {
261 output.WriteRawTag(24);
262 output.WriteInt64(TotalNumNeighbors);
263 }
264 if (TotalNumFilteredNeighbors != 0L) {
265 output.WriteRawTag(32);
266 output.WriteInt64(TotalNumFilteredNeighbors);
267 }
268 if (TotalNumAcceptedNeighbors != 0L) {
269 output.WriteRawTag(40);
270 output.WriteInt64(TotalNumAcceptedNeighbors);
271 }
272 firstSolutionStatistics_.WriteTo(output, _repeated_firstSolutionStatistics_codec);
273 if (_unknownFields != null) {
274 _unknownFields.WriteTo(output);
275 }
276 #endif
277 }
278
279 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
282 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
283 localSearchOperatorStatistics_.WriteTo(ref output, _repeated_localSearchOperatorStatistics_codec);
284 localSearchFilterStatistics_.WriteTo(ref output, _repeated_localSearchFilterStatistics_codec);
285 if (TotalNumNeighbors != 0L) {
286 output.WriteRawTag(24);
287 output.WriteInt64(TotalNumNeighbors);
288 }
289 if (TotalNumFilteredNeighbors != 0L) {
290 output.WriteRawTag(32);
291 output.WriteInt64(TotalNumFilteredNeighbors);
292 }
293 if (TotalNumAcceptedNeighbors != 0L) {
294 output.WriteRawTag(40);
295 output.WriteInt64(TotalNumAcceptedNeighbors);
296 }
297 firstSolutionStatistics_.WriteTo(ref output, _repeated_firstSolutionStatistics_codec);
298 if (_unknownFields != null) {
299 _unknownFields.WriteTo(ref output);
300 }
301 }
302 #endif
303
304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
306 public int CalculateSize() {
307 int size = 0;
308 size += firstSolutionStatistics_.CalculateSize(_repeated_firstSolutionStatistics_codec);
309 size += localSearchOperatorStatistics_.CalculateSize(_repeated_localSearchOperatorStatistics_codec);
310 if (TotalNumNeighbors != 0L) {
311 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumNeighbors);
312 }
313 if (TotalNumFilteredNeighbors != 0L) {
314 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumFilteredNeighbors);
315 }
316 if (TotalNumAcceptedNeighbors != 0L) {
317 size += 1 + pb::CodedOutputStream.ComputeInt64Size(TotalNumAcceptedNeighbors);
318 }
319 size += localSearchFilterStatistics_.CalculateSize(_repeated_localSearchFilterStatistics_codec);
320 if (_unknownFields != null) {
321 size += _unknownFields.CalculateSize();
322 }
323 return size;
324 }
325
326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
327 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
328 public void MergeFrom(LocalSearchStatistics other) {
329 if (other == null) {
330 return;
331 }
332 firstSolutionStatistics_.Add(other.firstSolutionStatistics_);
333 localSearchOperatorStatistics_.Add(other.localSearchOperatorStatistics_);
334 if (other.TotalNumNeighbors != 0L) {
335 TotalNumNeighbors = other.TotalNumNeighbors;
336 }
337 if (other.TotalNumFilteredNeighbors != 0L) {
338 TotalNumFilteredNeighbors = other.TotalNumFilteredNeighbors;
339 }
340 if (other.TotalNumAcceptedNeighbors != 0L) {
341 TotalNumAcceptedNeighbors = other.TotalNumAcceptedNeighbors;
342 }
343 localSearchFilterStatistics_.Add(other.localSearchFilterStatistics_);
344 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
345 }
346
347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
348 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
349 public void MergeFrom(pb::CodedInputStream input) {
350 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
351 input.ReadRawMessage(this);
352 #else
353 uint tag;
354 while ((tag = input.ReadTag()) != 0) {
355 switch(tag) {
356 default:
357 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
358 break;
359 case 10: {
360 localSearchOperatorStatistics_.AddEntriesFrom(input, _repeated_localSearchOperatorStatistics_codec);
361 break;
362 }
363 case 18: {
364 localSearchFilterStatistics_.AddEntriesFrom(input, _repeated_localSearchFilterStatistics_codec);
365 break;
366 }
367 case 24: {
368 TotalNumNeighbors = input.ReadInt64();
369 break;
370 }
371 case 32: {
372 TotalNumFilteredNeighbors = input.ReadInt64();
373 break;
374 }
375 case 40: {
376 TotalNumAcceptedNeighbors = input.ReadInt64();
377 break;
378 }
379 case 50: {
380 firstSolutionStatistics_.AddEntriesFrom(input, _repeated_firstSolutionStatistics_codec);
381 break;
382 }
383 }
384 }
385 #endif
386 }
387
388 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
391 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
392 uint tag;
393 while ((tag = input.ReadTag()) != 0) {
394 switch(tag) {
395 default:
396 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
397 break;
398 case 10: {
399 localSearchOperatorStatistics_.AddEntriesFrom(ref input, _repeated_localSearchOperatorStatistics_codec);
400 break;
401 }
402 case 18: {
403 localSearchFilterStatistics_.AddEntriesFrom(ref input, _repeated_localSearchFilterStatistics_codec);
404 break;
405 }
406 case 24: {
407 TotalNumNeighbors = input.ReadInt64();
408 break;
409 }
410 case 32: {
411 TotalNumFilteredNeighbors = input.ReadInt64();
412 break;
413 }
414 case 40: {
415 TotalNumAcceptedNeighbors = input.ReadInt64();
416 break;
417 }
418 case 50: {
419 firstSolutionStatistics_.AddEntriesFrom(ref input, _repeated_firstSolutionStatistics_codec);
420 break;
421 }
422 }
423 }
424 }
425 #endif
426
427 #region Nested types
429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
431 public static partial class Types {
435 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
436 public sealed partial class FirstSolutionStatistics : pb::IMessage<FirstSolutionStatistics>
437 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
438 , pb::IBufferMessage
439 #endif
440 {
441 private static readonly pb::MessageParser<FirstSolutionStatistics> _parser = new pb::MessageParser<FirstSolutionStatistics>(() => new FirstSolutionStatistics());
442 private pb::UnknownFieldSet _unknownFields;
443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
445 public static pb::MessageParser<FirstSolutionStatistics> Parser { get { return _parser; } }
446
447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
448 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
449 public static pbr::MessageDescriptor Descriptor {
450 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[0]; }
451 }
452
453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
455 pbr::MessageDescriptor pb::IMessage.Descriptor {
456 get { return Descriptor; }
457 }
458
459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
462 OnConstruction();
463 }
464
465 partial void OnConstruction();
466
467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
470 strategy_ = other.strategy_;
471 durationSeconds_ = other.durationSeconds_;
472 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
473 }
474
475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
478 return new FirstSolutionStatistics(this);
479 }
480
482 public const int StrategyFieldNumber = 1;
483 private string strategy_ = "";
487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
488 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
489 public string Strategy {
490 get { return strategy_; }
491 set {
492 strategy_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
493 }
494 }
495
497 public const int DurationSecondsFieldNumber = 2;
498 private double durationSeconds_;
502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
504 public double DurationSeconds {
505 get { return durationSeconds_; }
506 set {
507 durationSeconds_ = value;
508 }
509 }
510
511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
512 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
513 public override bool Equals(object other) {
514 return Equals(other as FirstSolutionStatistics);
515 }
516
517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
519 public bool Equals(FirstSolutionStatistics other) {
520 if (ReferenceEquals(other, null)) {
521 return false;
522 }
523 if (ReferenceEquals(other, this)) {
524 return true;
525 }
526 if (Strategy != other.Strategy) return false;
527 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
528 return Equals(_unknownFields, other._unknownFields);
529 }
530
531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
532 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
533 public override int GetHashCode() {
534 int hash = 1;
535 if (Strategy.Length != 0) hash ^= Strategy.GetHashCode();
536 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
537 if (_unknownFields != null) {
538 hash ^= _unknownFields.GetHashCode();
539 }
540 return hash;
541 }
542
543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
545 public override string ToString() {
546 return pb::JsonFormatter.ToDiagnosticString(this);
547 }
548
549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
551 public void WriteTo(pb::CodedOutputStream output) {
552 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
553 output.WriteRawMessage(this);
554 #else
555 if (Strategy.Length != 0) {
556 output.WriteRawTag(10);
557 output.WriteString(Strategy);
558 }
559 if (DurationSeconds != 0D) {
560 output.WriteRawTag(17);
561 output.WriteDouble(DurationSeconds);
562 }
563 if (_unknownFields != null) {
564 _unknownFields.WriteTo(output);
565 }
566 #endif
567 }
568
569 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
572 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
573 if (Strategy.Length != 0) {
574 output.WriteRawTag(10);
575 output.WriteString(Strategy);
576 }
577 if (DurationSeconds != 0D) {
578 output.WriteRawTag(17);
579 output.WriteDouble(DurationSeconds);
580 }
581 if (_unknownFields != null) {
582 _unknownFields.WriteTo(ref output);
583 }
584 }
585 #endif
586
587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
589 public int CalculateSize() {
590 int size = 0;
591 if (Strategy.Length != 0) {
592 size += 1 + pb::CodedOutputStream.ComputeStringSize(Strategy);
593 }
594 if (DurationSeconds != 0D) {
595 size += 1 + 8;
596 }
597 if (_unknownFields != null) {
598 size += _unknownFields.CalculateSize();
599 }
600 return size;
601 }
602
603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
606 if (other == null) {
607 return;
608 }
609 if (other.Strategy.Length != 0) {
610 Strategy = other.Strategy;
611 }
612 if (other.DurationSeconds != 0D) {
613 DurationSeconds = other.DurationSeconds;
614 }
615 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
616 }
617
618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
619 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
620 public void MergeFrom(pb::CodedInputStream input) {
621 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
622 input.ReadRawMessage(this);
623 #else
624 uint tag;
625 while ((tag = input.ReadTag()) != 0) {
626 switch(tag) {
627 default:
628 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
629 break;
630 case 10: {
631 Strategy = input.ReadString();
632 break;
633 }
634 case 17: {
635 DurationSeconds = input.ReadDouble();
636 break;
637 }
638 }
639 }
640 #endif
641 }
642
643 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
646 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
647 uint tag;
648 while ((tag = input.ReadTag()) != 0) {
649 switch(tag) {
650 default:
651 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
652 break;
653 case 10: {
654 Strategy = input.ReadString();
655 break;
656 }
657 case 17: {
658 DurationSeconds = input.ReadDouble();
659 break;
660 }
661 }
662 }
663 }
664 #endif
665
666 }
667
671 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
672 public sealed partial class LocalSearchOperatorStatistics : pb::IMessage<LocalSearchOperatorStatistics>
673 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
674 , pb::IBufferMessage
675 #endif
676 {
677 private static readonly pb::MessageParser<LocalSearchOperatorStatistics> _parser = new pb::MessageParser<LocalSearchOperatorStatistics>(() => new LocalSearchOperatorStatistics());
678 private pb::UnknownFieldSet _unknownFields;
679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
680 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
681 public static pb::MessageParser<LocalSearchOperatorStatistics> Parser { get { return _parser; } }
682
683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
685 public static pbr::MessageDescriptor Descriptor {
686 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[1]; }
687 }
688
689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
691 pbr::MessageDescriptor pb::IMessage.Descriptor {
692 get { return Descriptor; }
693 }
694
695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
698 OnConstruction();
699 }
700
701 partial void OnConstruction();
702
703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
706 localSearchOperator_ = other.localSearchOperator_;
707 numNeighbors_ = other.numNeighbors_;
708 numFilteredNeighbors_ = other.numFilteredNeighbors_;
709 numAcceptedNeighbors_ = other.numAcceptedNeighbors_;
710 durationSeconds_ = other.durationSeconds_;
711 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
712 }
713
714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
719
721 public const int LocalSearchOperatorFieldNumber = 1;
722 private string localSearchOperator_ = "";
726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
728 public string LocalSearchOperator {
729 get { return localSearchOperator_; }
730 set {
731 localSearchOperator_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
732 }
733 }
734
736 public const int NumNeighborsFieldNumber = 2;
737 private long numNeighbors_;
741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
742 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
743 public long NumNeighbors {
744 get { return numNeighbors_; }
745 set {
746 numNeighbors_ = value;
747 }
748 }
749
751 public const int NumFilteredNeighborsFieldNumber = 3;
752 private long numFilteredNeighbors_;
756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
757 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
758 public long NumFilteredNeighbors {
759 get { return numFilteredNeighbors_; }
760 set {
761 numFilteredNeighbors_ = value;
762 }
763 }
764
766 public const int NumAcceptedNeighborsFieldNumber = 4;
767 private long numAcceptedNeighbors_;
771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
773 public long NumAcceptedNeighbors {
774 get { return numAcceptedNeighbors_; }
775 set {
776 numAcceptedNeighbors_ = value;
777 }
778 }
779
781 public const int DurationSecondsFieldNumber = 5;
782 private double durationSeconds_;
786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
788 public double DurationSeconds {
789 get { return durationSeconds_; }
790 set {
791 durationSeconds_ = value;
792 }
793 }
794
795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
796 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
797 public override bool Equals(object other) {
798 return Equals(other as LocalSearchOperatorStatistics);
799 }
800
801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
802 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
804 if (ReferenceEquals(other, null)) {
805 return false;
806 }
807 if (ReferenceEquals(other, this)) {
808 return true;
809 }
810 if (LocalSearchOperator != other.LocalSearchOperator) return false;
811 if (NumNeighbors != other.NumNeighbors) return false;
812 if (NumFilteredNeighbors != other.NumFilteredNeighbors) return false;
813 if (NumAcceptedNeighbors != other.NumAcceptedNeighbors) return false;
814 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
815 return Equals(_unknownFields, other._unknownFields);
816 }
817
818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
819 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
820 public override int GetHashCode() {
821 int hash = 1;
822 if (LocalSearchOperator.Length != 0) hash ^= LocalSearchOperator.GetHashCode();
823 if (NumNeighbors != 0L) hash ^= NumNeighbors.GetHashCode();
824 if (NumFilteredNeighbors != 0L) hash ^= NumFilteredNeighbors.GetHashCode();
825 if (NumAcceptedNeighbors != 0L) hash ^= NumAcceptedNeighbors.GetHashCode();
826 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
827 if (_unknownFields != null) {
828 hash ^= _unknownFields.GetHashCode();
829 }
830 return hash;
831 }
832
833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
834 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
835 public override string ToString() {
836 return pb::JsonFormatter.ToDiagnosticString(this);
837 }
838
839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
840 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
841 public void WriteTo(pb::CodedOutputStream output) {
842 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
843 output.WriteRawMessage(this);
844 #else
845 if (LocalSearchOperator.Length != 0) {
846 output.WriteRawTag(10);
847 output.WriteString(LocalSearchOperator);
848 }
849 if (NumNeighbors != 0L) {
850 output.WriteRawTag(16);
851 output.WriteInt64(NumNeighbors);
852 }
853 if (NumFilteredNeighbors != 0L) {
854 output.WriteRawTag(24);
855 output.WriteInt64(NumFilteredNeighbors);
856 }
857 if (NumAcceptedNeighbors != 0L) {
858 output.WriteRawTag(32);
859 output.WriteInt64(NumAcceptedNeighbors);
860 }
861 if (DurationSeconds != 0D) {
862 output.WriteRawTag(41);
863 output.WriteDouble(DurationSeconds);
864 }
865 if (_unknownFields != null) {
866 _unknownFields.WriteTo(output);
867 }
868 #endif
869 }
870
871 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
873 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
874 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
875 if (LocalSearchOperator.Length != 0) {
876 output.WriteRawTag(10);
877 output.WriteString(LocalSearchOperator);
878 }
879 if (NumNeighbors != 0L) {
880 output.WriteRawTag(16);
881 output.WriteInt64(NumNeighbors);
882 }
883 if (NumFilteredNeighbors != 0L) {
884 output.WriteRawTag(24);
885 output.WriteInt64(NumFilteredNeighbors);
886 }
887 if (NumAcceptedNeighbors != 0L) {
888 output.WriteRawTag(32);
889 output.WriteInt64(NumAcceptedNeighbors);
890 }
891 if (DurationSeconds != 0D) {
892 output.WriteRawTag(41);
893 output.WriteDouble(DurationSeconds);
894 }
895 if (_unknownFields != null) {
896 _unknownFields.WriteTo(ref output);
897 }
898 }
899 #endif
900
901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
903 public int CalculateSize() {
904 int size = 0;
905 if (LocalSearchOperator.Length != 0) {
906 size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalSearchOperator);
907 }
908 if (NumNeighbors != 0L) {
909 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumNeighbors);
910 }
911 if (NumFilteredNeighbors != 0L) {
912 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumFilteredNeighbors);
913 }
914 if (NumAcceptedNeighbors != 0L) {
915 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumAcceptedNeighbors);
916 }
917 if (DurationSeconds != 0D) {
918 size += 1 + 8;
919 }
920 if (_unknownFields != null) {
921 size += _unknownFields.CalculateSize();
922 }
923 return size;
924 }
925
926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
927 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
929 if (other == null) {
930 return;
931 }
932 if (other.LocalSearchOperator.Length != 0) {
934 }
935 if (other.NumNeighbors != 0L) {
936 NumNeighbors = other.NumNeighbors;
937 }
938 if (other.NumFilteredNeighbors != 0L) {
939 NumFilteredNeighbors = other.NumFilteredNeighbors;
940 }
941 if (other.NumAcceptedNeighbors != 0L) {
942 NumAcceptedNeighbors = other.NumAcceptedNeighbors;
943 }
944 if (other.DurationSeconds != 0D) {
945 DurationSeconds = other.DurationSeconds;
946 }
947 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
948 }
949
950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
952 public void MergeFrom(pb::CodedInputStream input) {
953 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
954 input.ReadRawMessage(this);
955 #else
956 uint tag;
957 while ((tag = input.ReadTag()) != 0) {
958 switch(tag) {
959 default:
960 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
961 break;
962 case 10: {
963 LocalSearchOperator = input.ReadString();
964 break;
965 }
966 case 16: {
967 NumNeighbors = input.ReadInt64();
968 break;
969 }
970 case 24: {
971 NumFilteredNeighbors = input.ReadInt64();
972 break;
973 }
974 case 32: {
975 NumAcceptedNeighbors = input.ReadInt64();
976 break;
977 }
978 case 41: {
979 DurationSeconds = input.ReadDouble();
980 break;
981 }
982 }
983 }
984 #endif
985 }
986
987 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
989 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
990 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
991 uint tag;
992 while ((tag = input.ReadTag()) != 0) {
993 switch(tag) {
994 default:
995 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
996 break;
997 case 10: {
998 LocalSearchOperator = input.ReadString();
999 break;
1000 }
1001 case 16: {
1002 NumNeighbors = input.ReadInt64();
1003 break;
1004 }
1005 case 24: {
1006 NumFilteredNeighbors = input.ReadInt64();
1007 break;
1008 }
1009 case 32: {
1010 NumAcceptedNeighbors = input.ReadInt64();
1011 break;
1012 }
1013 case 41: {
1014 DurationSeconds = input.ReadDouble();
1015 break;
1016 }
1017 }
1018 }
1019 }
1020 #endif
1021
1022 }
1023
1027 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1028 public sealed partial class LocalSearchFilterStatistics : pb::IMessage<LocalSearchFilterStatistics>
1029 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1030 , pb::IBufferMessage
1031 #endif
1032 {
1033 private static readonly pb::MessageParser<LocalSearchFilterStatistics> _parser = new pb::MessageParser<LocalSearchFilterStatistics>(() => new LocalSearchFilterStatistics());
1034 private pb::UnknownFieldSet _unknownFields;
1035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1037 public static pb::MessageParser<LocalSearchFilterStatistics> Parser { get { return _parser; } }
1038
1039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1041 public static pbr::MessageDescriptor Descriptor {
1042 get { return global::Google.OrTools.ConstraintSolver.LocalSearchStatistics.Descriptor.NestedTypes[2]; }
1043 }
1044
1045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1047 pbr::MessageDescriptor pb::IMessage.Descriptor {
1048 get { return Descriptor; }
1049 }
1050
1051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1052 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1054 OnConstruction();
1055 }
1056
1057 partial void OnConstruction();
1058
1059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1060 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1062 localSearchFilter_ = other.localSearchFilter_;
1063 numCalls_ = other.numCalls_;
1064 numRejects_ = other.numRejects_;
1065 durationSeconds_ = other.durationSeconds_;
1066 numRejectsPerSecond_ = other.numRejectsPerSecond_;
1067 context_ = other.context_;
1068 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1069 }
1070
1071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1072 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1074 return new LocalSearchFilterStatistics(this);
1075 }
1076
1078 public const int LocalSearchFilterFieldNumber = 1;
1079 private string localSearchFilter_ = "";
1083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1084 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1085 public string LocalSearchFilter {
1086 get { return localSearchFilter_; }
1087 set {
1088 localSearchFilter_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1089 }
1090 }
1091
1093 public const int NumCallsFieldNumber = 2;
1094 private long numCalls_;
1098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1100 public long NumCalls {
1101 get { return numCalls_; }
1102 set {
1103 numCalls_ = value;
1104 }
1105 }
1106
1108 public const int NumRejectsFieldNumber = 3;
1109 private long numRejects_;
1113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1114 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1115 public long NumRejects {
1116 get { return numRejects_; }
1117 set {
1118 numRejects_ = value;
1119 }
1120 }
1121
1123 public const int DurationSecondsFieldNumber = 4;
1124 private double durationSeconds_;
1128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1130 public double DurationSeconds {
1131 get { return durationSeconds_; }
1132 set {
1133 durationSeconds_ = value;
1134 }
1135 }
1136
1138 public const int NumRejectsPerSecondFieldNumber = 5;
1139 private double numRejectsPerSecond_;
1143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1144 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1145 public double NumRejectsPerSecond {
1146 get { return numRejectsPerSecond_; }
1147 set {
1148 numRejectsPerSecond_ = value;
1149 }
1150 }
1151
1153 public const int ContextFieldNumber = 6;
1154 private string context_ = "";
1158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1159 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1160 public string Context {
1161 get { return context_; }
1162 set {
1163 context_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1164 }
1165 }
1166
1167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1168 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1169 public override bool Equals(object other) {
1170 return Equals(other as LocalSearchFilterStatistics);
1171 }
1172
1173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1176 if (ReferenceEquals(other, null)) {
1177 return false;
1178 }
1179 if (ReferenceEquals(other, this)) {
1180 return true;
1181 }
1182 if (LocalSearchFilter != other.LocalSearchFilter) return false;
1183 if (NumCalls != other.NumCalls) return false;
1184 if (NumRejects != other.NumRejects) return false;
1185 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
1186 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NumRejectsPerSecond, other.NumRejectsPerSecond)) return false;
1187 if (Context != other.Context) return false;
1188 return Equals(_unknownFields, other._unknownFields);
1189 }
1190
1191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1193 public override int GetHashCode() {
1194 int hash = 1;
1195 if (LocalSearchFilter.Length != 0) hash ^= LocalSearchFilter.GetHashCode();
1196 if (NumCalls != 0L) hash ^= NumCalls.GetHashCode();
1197 if (NumRejects != 0L) hash ^= NumRejects.GetHashCode();
1198 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
1199 if (NumRejectsPerSecond != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumRejectsPerSecond);
1200 if (Context.Length != 0) hash ^= Context.GetHashCode();
1201 if (_unknownFields != null) {
1202 hash ^= _unknownFields.GetHashCode();
1203 }
1204 return hash;
1205 }
1206
1207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1209 public override string ToString() {
1210 return pb::JsonFormatter.ToDiagnosticString(this);
1211 }
1212
1213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1215 public void WriteTo(pb::CodedOutputStream output) {
1216 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1217 output.WriteRawMessage(this);
1218 #else
1219 if (LocalSearchFilter.Length != 0) {
1220 output.WriteRawTag(10);
1221 output.WriteString(LocalSearchFilter);
1222 }
1223 if (NumCalls != 0L) {
1224 output.WriteRawTag(16);
1225 output.WriteInt64(NumCalls);
1226 }
1227 if (NumRejects != 0L) {
1228 output.WriteRawTag(24);
1229 output.WriteInt64(NumRejects);
1230 }
1231 if (DurationSeconds != 0D) {
1232 output.WriteRawTag(33);
1233 output.WriteDouble(DurationSeconds);
1234 }
1235 if (NumRejectsPerSecond != 0D) {
1236 output.WriteRawTag(41);
1237 output.WriteDouble(NumRejectsPerSecond);
1238 }
1239 if (Context.Length != 0) {
1240 output.WriteRawTag(50);
1241 output.WriteString(Context);
1242 }
1243 if (_unknownFields != null) {
1244 _unknownFields.WriteTo(output);
1245 }
1246 #endif
1247 }
1248
1249 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1252 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1253 if (LocalSearchFilter.Length != 0) {
1254 output.WriteRawTag(10);
1255 output.WriteString(LocalSearchFilter);
1256 }
1257 if (NumCalls != 0L) {
1258 output.WriteRawTag(16);
1259 output.WriteInt64(NumCalls);
1260 }
1261 if (NumRejects != 0L) {
1262 output.WriteRawTag(24);
1263 output.WriteInt64(NumRejects);
1264 }
1265 if (DurationSeconds != 0D) {
1266 output.WriteRawTag(33);
1267 output.WriteDouble(DurationSeconds);
1268 }
1269 if (NumRejectsPerSecond != 0D) {
1270 output.WriteRawTag(41);
1271 output.WriteDouble(NumRejectsPerSecond);
1272 }
1273 if (Context.Length != 0) {
1274 output.WriteRawTag(50);
1275 output.WriteString(Context);
1276 }
1277 if (_unknownFields != null) {
1278 _unknownFields.WriteTo(ref output);
1279 }
1280 }
1281 #endif
1282
1283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1285 public int CalculateSize() {
1286 int size = 0;
1287 if (LocalSearchFilter.Length != 0) {
1288 size += 1 + pb::CodedOutputStream.ComputeStringSize(LocalSearchFilter);
1289 }
1290 if (NumCalls != 0L) {
1291 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumCalls);
1292 }
1293 if (NumRejects != 0L) {
1294 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumRejects);
1295 }
1296 if (DurationSeconds != 0D) {
1297 size += 1 + 8;
1298 }
1299 if (NumRejectsPerSecond != 0D) {
1300 size += 1 + 8;
1301 }
1302 if (Context.Length != 0) {
1303 size += 1 + pb::CodedOutputStream.ComputeStringSize(Context);
1304 }
1305 if (_unknownFields != null) {
1306 size += _unknownFields.CalculateSize();
1307 }
1308 return size;
1309 }
1310
1311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1314 if (other == null) {
1315 return;
1316 }
1317 if (other.LocalSearchFilter.Length != 0) {
1319 }
1320 if (other.NumCalls != 0L) {
1321 NumCalls = other.NumCalls;
1322 }
1323 if (other.NumRejects != 0L) {
1324 NumRejects = other.NumRejects;
1325 }
1326 if (other.DurationSeconds != 0D) {
1327 DurationSeconds = other.DurationSeconds;
1328 }
1329 if (other.NumRejectsPerSecond != 0D) {
1330 NumRejectsPerSecond = other.NumRejectsPerSecond;
1331 }
1332 if (other.Context.Length != 0) {
1333 Context = other.Context;
1334 }
1335 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1336 }
1337
1338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1339 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1340 public void MergeFrom(pb::CodedInputStream input) {
1341 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1342 input.ReadRawMessage(this);
1343 #else
1344 uint tag;
1345 while ((tag = input.ReadTag()) != 0) {
1346 switch(tag) {
1347 default:
1348 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1349 break;
1350 case 10: {
1351 LocalSearchFilter = input.ReadString();
1352 break;
1353 }
1354 case 16: {
1355 NumCalls = input.ReadInt64();
1356 break;
1357 }
1358 case 24: {
1359 NumRejects = input.ReadInt64();
1360 break;
1361 }
1362 case 33: {
1363 DurationSeconds = input.ReadDouble();
1364 break;
1365 }
1366 case 41: {
1367 NumRejectsPerSecond = input.ReadDouble();
1368 break;
1369 }
1370 case 50: {
1371 Context = input.ReadString();
1372 break;
1373 }
1374 }
1375 }
1376 #endif
1377 }
1378
1379 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1382 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1383 uint tag;
1384 while ((tag = input.ReadTag()) != 0) {
1385 switch(tag) {
1386 default:
1387 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1388 break;
1389 case 10: {
1390 LocalSearchFilter = input.ReadString();
1391 break;
1392 }
1393 case 16: {
1394 NumCalls = input.ReadInt64();
1395 break;
1396 }
1397 case 24: {
1398 NumRejects = input.ReadInt64();
1399 break;
1400 }
1401 case 33: {
1402 DurationSeconds = input.ReadDouble();
1403 break;
1404 }
1405 case 41: {
1406 NumRejectsPerSecond = input.ReadDouble();
1407 break;
1408 }
1409 case 50: {
1410 Context = input.ReadString();
1411 break;
1412 }
1413 }
1414 }
1415 }
1416 #endif
1417
1418 }
1419
1420 }
1421 #endregion
1422
1423 }
1424
1428 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1429 public sealed partial class ConstraintSolverStatistics : pb::IMessage<ConstraintSolverStatistics>
1430 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1431 , pb::IBufferMessage
1432 #endif
1433 {
1434 private static readonly pb::MessageParser<ConstraintSolverStatistics> _parser = new pb::MessageParser<ConstraintSolverStatistics>(() => new ConstraintSolverStatistics());
1435 private pb::UnknownFieldSet _unknownFields;
1436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1438 public static pb::MessageParser<ConstraintSolverStatistics> Parser { get { return _parser; } }
1439
1440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1442 public static pbr::MessageDescriptor Descriptor {
1443 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[1]; }
1444 }
1445
1446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1448 pbr::MessageDescriptor pb::IMessage.Descriptor {
1449 get { return Descriptor; }
1450 }
1451
1452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1455 OnConstruction();
1456 }
1457
1458 partial void OnConstruction();
1459
1460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1461 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1463 numBranches_ = other.numBranches_;
1464 numFailures_ = other.numFailures_;
1465 numSolutions_ = other.numSolutions_;
1466 bytesUsed_ = other.bytesUsed_;
1467 durationSeconds_ = other.durationSeconds_;
1468 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1469 }
1470
1471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1472 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1474 return new ConstraintSolverStatistics(this);
1475 }
1476
1478 public const int NumBranchesFieldNumber = 1;
1479 private long numBranches_;
1483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1485 public long NumBranches {
1486 get { return numBranches_; }
1487 set {
1488 numBranches_ = value;
1489 }
1490 }
1491
1493 public const int NumFailuresFieldNumber = 2;
1494 private long numFailures_;
1498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1499 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1500 public long NumFailures {
1501 get { return numFailures_; }
1502 set {
1503 numFailures_ = value;
1504 }
1505 }
1506
1508 public const int NumSolutionsFieldNumber = 3;
1509 private long numSolutions_;
1513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1514 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1515 public long NumSolutions {
1516 get { return numSolutions_; }
1517 set {
1518 numSolutions_ = value;
1519 }
1520 }
1521
1523 public const int BytesUsedFieldNumber = 4;
1524 private long bytesUsed_;
1528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1530 public long BytesUsed {
1531 get { return bytesUsed_; }
1532 set {
1533 bytesUsed_ = value;
1534 }
1535 }
1536
1538 public const int DurationSecondsFieldNumber = 5;
1539 private double durationSeconds_;
1543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1545 public double DurationSeconds {
1546 get { return durationSeconds_; }
1547 set {
1548 durationSeconds_ = value;
1549 }
1550 }
1551
1552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1553 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1554 public override bool Equals(object other) {
1555 return Equals(other as ConstraintSolverStatistics);
1556 }
1557
1558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1559 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1561 if (ReferenceEquals(other, null)) {
1562 return false;
1563 }
1564 if (ReferenceEquals(other, this)) {
1565 return true;
1566 }
1567 if (NumBranches != other.NumBranches) return false;
1568 if (NumFailures != other.NumFailures) return false;
1569 if (NumSolutions != other.NumSolutions) return false;
1570 if (BytesUsed != other.BytesUsed) return false;
1571 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DurationSeconds, other.DurationSeconds)) return false;
1572 return Equals(_unknownFields, other._unknownFields);
1573 }
1574
1575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1576 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1577 public override int GetHashCode() {
1578 int hash = 1;
1579 if (NumBranches != 0L) hash ^= NumBranches.GetHashCode();
1580 if (NumFailures != 0L) hash ^= NumFailures.GetHashCode();
1581 if (NumSolutions != 0L) hash ^= NumSolutions.GetHashCode();
1582 if (BytesUsed != 0L) hash ^= BytesUsed.GetHashCode();
1583 if (DurationSeconds != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DurationSeconds);
1584 if (_unknownFields != null) {
1585 hash ^= _unknownFields.GetHashCode();
1586 }
1587 return hash;
1588 }
1589
1590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1592 public override string ToString() {
1593 return pb::JsonFormatter.ToDiagnosticString(this);
1594 }
1595
1596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1598 public void WriteTo(pb::CodedOutputStream output) {
1599 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1600 output.WriteRawMessage(this);
1601 #else
1602 if (NumBranches != 0L) {
1603 output.WriteRawTag(8);
1604 output.WriteInt64(NumBranches);
1605 }
1606 if (NumFailures != 0L) {
1607 output.WriteRawTag(16);
1608 output.WriteInt64(NumFailures);
1609 }
1610 if (NumSolutions != 0L) {
1611 output.WriteRawTag(24);
1612 output.WriteInt64(NumSolutions);
1613 }
1614 if (BytesUsed != 0L) {
1615 output.WriteRawTag(32);
1616 output.WriteInt64(BytesUsed);
1617 }
1618 if (DurationSeconds != 0D) {
1619 output.WriteRawTag(41);
1620 output.WriteDouble(DurationSeconds);
1621 }
1622 if (_unknownFields != null) {
1623 _unknownFields.WriteTo(output);
1624 }
1625 #endif
1626 }
1627
1628 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1630 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1631 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1632 if (NumBranches != 0L) {
1633 output.WriteRawTag(8);
1634 output.WriteInt64(NumBranches);
1635 }
1636 if (NumFailures != 0L) {
1637 output.WriteRawTag(16);
1638 output.WriteInt64(NumFailures);
1639 }
1640 if (NumSolutions != 0L) {
1641 output.WriteRawTag(24);
1642 output.WriteInt64(NumSolutions);
1643 }
1644 if (BytesUsed != 0L) {
1645 output.WriteRawTag(32);
1646 output.WriteInt64(BytesUsed);
1647 }
1648 if (DurationSeconds != 0D) {
1649 output.WriteRawTag(41);
1650 output.WriteDouble(DurationSeconds);
1651 }
1652 if (_unknownFields != null) {
1653 _unknownFields.WriteTo(ref output);
1654 }
1655 }
1656 #endif
1657
1658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1660 public int CalculateSize() {
1661 int size = 0;
1662 if (NumBranches != 0L) {
1663 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBranches);
1664 }
1665 if (NumFailures != 0L) {
1666 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumFailures);
1667 }
1668 if (NumSolutions != 0L) {
1669 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumSolutions);
1670 }
1671 if (BytesUsed != 0L) {
1672 size += 1 + pb::CodedOutputStream.ComputeInt64Size(BytesUsed);
1673 }
1674 if (DurationSeconds != 0D) {
1675 size += 1 + 8;
1676 }
1677 if (_unknownFields != null) {
1678 size += _unknownFields.CalculateSize();
1679 }
1680 return size;
1681 }
1682
1683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1686 if (other == null) {
1687 return;
1688 }
1689 if (other.NumBranches != 0L) {
1690 NumBranches = other.NumBranches;
1691 }
1692 if (other.NumFailures != 0L) {
1693 NumFailures = other.NumFailures;
1694 }
1695 if (other.NumSolutions != 0L) {
1696 NumSolutions = other.NumSolutions;
1697 }
1698 if (other.BytesUsed != 0L) {
1699 BytesUsed = other.BytesUsed;
1700 }
1701 if (other.DurationSeconds != 0D) {
1702 DurationSeconds = other.DurationSeconds;
1703 }
1704 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1705 }
1706
1707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1709 public void MergeFrom(pb::CodedInputStream input) {
1710 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1711 input.ReadRawMessage(this);
1712 #else
1713 uint tag;
1714 while ((tag = input.ReadTag()) != 0) {
1715 switch(tag) {
1716 default:
1717 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1718 break;
1719 case 8: {
1720 NumBranches = input.ReadInt64();
1721 break;
1722 }
1723 case 16: {
1724 NumFailures = input.ReadInt64();
1725 break;
1726 }
1727 case 24: {
1728 NumSolutions = input.ReadInt64();
1729 break;
1730 }
1731 case 32: {
1732 BytesUsed = input.ReadInt64();
1733 break;
1734 }
1735 case 41: {
1736 DurationSeconds = input.ReadDouble();
1737 break;
1738 }
1739 }
1740 }
1741 #endif
1742 }
1743
1744 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1747 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1748 uint tag;
1749 while ((tag = input.ReadTag()) != 0) {
1750 switch(tag) {
1751 default:
1752 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1753 break;
1754 case 8: {
1755 NumBranches = input.ReadInt64();
1756 break;
1757 }
1758 case 16: {
1759 NumFailures = input.ReadInt64();
1760 break;
1761 }
1762 case 24: {
1763 NumSolutions = input.ReadInt64();
1764 break;
1765 }
1766 case 32: {
1767 BytesUsed = input.ReadInt64();
1768 break;
1769 }
1770 case 41: {
1771 DurationSeconds = input.ReadDouble();
1772 break;
1773 }
1774 }
1775 }
1776 }
1777 #endif
1778
1779 }
1780
1784 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1785 public sealed partial class SearchStatistics : pb::IMessage<SearchStatistics>
1786 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1787 , pb::IBufferMessage
1788 #endif
1789 {
1790 private static readonly pb::MessageParser<SearchStatistics> _parser = new pb::MessageParser<SearchStatistics>(() => new SearchStatistics());
1791 private pb::UnknownFieldSet _unknownFields;
1792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1793 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1794 public static pb::MessageParser<SearchStatistics> Parser { get { return _parser; } }
1795
1796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1798 public static pbr::MessageDescriptor Descriptor {
1799 get { return global::Google.OrTools.ConstraintSolver.SearchStatsReflection.Descriptor.MessageTypes[2]; }
1800 }
1801
1802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1803 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1804 pbr::MessageDescriptor pb::IMessage.Descriptor {
1805 get { return Descriptor; }
1806 }
1807
1808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1811 OnConstruction();
1812 }
1813
1814 partial void OnConstruction();
1815
1816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1817 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1818 public SearchStatistics(SearchStatistics other) : this() {
1819 localSearchStatistics_ = other.localSearchStatistics_ != null ? other.localSearchStatistics_.Clone() : null;
1820 constraintSolverStatistics_ = other.constraintSolverStatistics_ != null ? other.constraintSolverStatistics_.Clone() : null;
1821 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1822 }
1823
1824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1825 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1827 return new SearchStatistics(this);
1828 }
1829
1831 public const int LocalSearchStatisticsFieldNumber = 1;
1832 private global::Google.OrTools.ConstraintSolver.LocalSearchStatistics localSearchStatistics_;
1836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1838 public global::Google.OrTools.ConstraintSolver.LocalSearchStatistics LocalSearchStatistics {
1839 get { return localSearchStatistics_; }
1840 set {
1841 localSearchStatistics_ = value;
1842 }
1843 }
1844
1846 public const int ConstraintSolverStatisticsFieldNumber = 2;
1847 private global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics constraintSolverStatistics_;
1851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1853 public global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics ConstraintSolverStatistics {
1854 get { return constraintSolverStatistics_; }
1855 set {
1856 constraintSolverStatistics_ = value;
1857 }
1858 }
1859
1860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1861 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1862 public override bool Equals(object other) {
1863 return Equals(other as SearchStatistics);
1864 }
1865
1866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1868 public bool Equals(SearchStatistics other) {
1869 if (ReferenceEquals(other, null)) {
1870 return false;
1871 }
1872 if (ReferenceEquals(other, this)) {
1873 return true;
1874 }
1875 if (!object.Equals(LocalSearchStatistics, other.LocalSearchStatistics)) return false;
1876 if (!object.Equals(ConstraintSolverStatistics, other.ConstraintSolverStatistics)) return false;
1877 return Equals(_unknownFields, other._unknownFields);
1878 }
1879
1880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1882 public override int GetHashCode() {
1883 int hash = 1;
1884 if (localSearchStatistics_ != null) hash ^= LocalSearchStatistics.GetHashCode();
1885 if (constraintSolverStatistics_ != null) hash ^= ConstraintSolverStatistics.GetHashCode();
1886 if (_unknownFields != null) {
1887 hash ^= _unknownFields.GetHashCode();
1888 }
1889 return hash;
1890 }
1891
1892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1894 public override string ToString() {
1895 return pb::JsonFormatter.ToDiagnosticString(this);
1896 }
1897
1898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1900 public void WriteTo(pb::CodedOutputStream output) {
1901 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1902 output.WriteRawMessage(this);
1903 #else
1904 if (localSearchStatistics_ != null) {
1905 output.WriteRawTag(10);
1906 output.WriteMessage(LocalSearchStatistics);
1907 }
1908 if (constraintSolverStatistics_ != null) {
1909 output.WriteRawTag(18);
1910 output.WriteMessage(ConstraintSolverStatistics);
1911 }
1912 if (_unknownFields != null) {
1913 _unknownFields.WriteTo(output);
1914 }
1915 #endif
1916 }
1917
1918 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1921 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1922 if (localSearchStatistics_ != null) {
1923 output.WriteRawTag(10);
1924 output.WriteMessage(LocalSearchStatistics);
1925 }
1926 if (constraintSolverStatistics_ != null) {
1927 output.WriteRawTag(18);
1928 output.WriteMessage(ConstraintSolverStatistics);
1929 }
1930 if (_unknownFields != null) {
1931 _unknownFields.WriteTo(ref output);
1932 }
1933 }
1934 #endif
1935
1936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1938 public int CalculateSize() {
1939 int size = 0;
1940 if (localSearchStatistics_ != null) {
1941 size += 1 + pb::CodedOutputStream.ComputeMessageSize(LocalSearchStatistics);
1942 }
1943 if (constraintSolverStatistics_ != null) {
1944 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConstraintSolverStatistics);
1945 }
1946 if (_unknownFields != null) {
1947 size += _unknownFields.CalculateSize();
1948 }
1949 return size;
1950 }
1951
1952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1954 public void MergeFrom(SearchStatistics other) {
1955 if (other == null) {
1956 return;
1957 }
1958 if (other.localSearchStatistics_ != null) {
1959 if (localSearchStatistics_ == null) {
1960 LocalSearchStatistics = new global::Google.OrTools.ConstraintSolver.LocalSearchStatistics();
1961 }
1963 }
1964 if (other.constraintSolverStatistics_ != null) {
1965 if (constraintSolverStatistics_ == null) {
1966 ConstraintSolverStatistics = new global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics();
1967 }
1969 }
1970 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1971 }
1972
1973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1975 public void MergeFrom(pb::CodedInputStream input) {
1976 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1977 input.ReadRawMessage(this);
1978 #else
1979 uint tag;
1980 while ((tag = input.ReadTag()) != 0) {
1981 switch(tag) {
1982 default:
1983 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1984 break;
1985 case 10: {
1986 if (localSearchStatistics_ == null) {
1987 LocalSearchStatistics = new global::Google.OrTools.ConstraintSolver.LocalSearchStatistics();
1988 }
1989 input.ReadMessage(LocalSearchStatistics);
1990 break;
1991 }
1992 case 18: {
1993 if (constraintSolverStatistics_ == null) {
1994 ConstraintSolverStatistics = new global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics();
1995 }
1996 input.ReadMessage(ConstraintSolverStatistics);
1997 break;
1998 }
1999 }
2000 }
2001 #endif
2002 }
2003
2004 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2007 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2008 uint tag;
2009 while ((tag = input.ReadTag()) != 0) {
2010 switch(tag) {
2011 default:
2012 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2013 break;
2014 case 10: {
2015 if (localSearchStatistics_ == null) {
2016 LocalSearchStatistics = new global::Google.OrTools.ConstraintSolver.LocalSearchStatistics();
2017 }
2018 input.ReadMessage(LocalSearchStatistics);
2019 break;
2020 }
2021 case 18: {
2022 if (constraintSolverStatistics_ == null) {
2023 ConstraintSolverStatistics = new global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics();
2024 }
2025 input.ReadMessage(ConstraintSolverStatistics);
2026 break;
2027 }
2028 }
2029 }
2030 }
2031 #endif
2032
2033 }
2034
2035 #endregion
2036
2037}
2038
2039#endregion Designer generated code
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Definition SetCover.pb.cs:9
global::Google.Protobuf pb
Definition SetCover.pb.cs:8
Statistics on the search in the constraint solver.
double DurationSeconds
Total time spent in the solver.
Container for nested types declared in the LocalSearchStatistics message type.
long TotalNumNeighbors
Total number of (filtered/accepted) neighbors created during the search.
global::Google.OrTools.ConstraintSolver.ConstraintSolverStatistics ConstraintSolverStatistics
Constraint solver statistics.
void WriteTo(pb::CodedOutputStream output)
global::Google.OrTools.ConstraintSolver.LocalSearchStatistics LocalSearchStatistics
Local search statistics.
Holder for reflection information generated from ortools/constraint_solver/search_stats....
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/search_stats.proto.