Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SearchLimit.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_limit.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 SearchLimitReflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static SearchLimitReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "CixvcnRvb2xzL2NvbnN0cmFpbnRfc29sdmVyL3NlYXJjaF9saW1pdC5wcm90",
28 "bxITb3BlcmF0aW9uc19yZXNlYXJjaCKLAQoWUmVndWxhckxpbWl0UGFyYW1l",
29 "dGVycxIMCgR0aW1lGAEgASgDEhAKCGJyYW5jaGVzGAIgASgDEhAKCGZhaWx1",
30 "cmVzGAMgASgDEhEKCXNvbHV0aW9ucxgEIAEoAxIYChBzbWFydF90aW1lX2No",
31 "ZWNrGAUgASgIEhIKCmN1bXVsYXRpdmUYBiABKAhCXgojY29tLmdvb2dsZS5v",
32 "cnRvb2xzLmNvbnN0cmFpbnRzb2x2ZXJCE1NlYXJjaExpbWl0UHJvdG9idWZQ",
33 "AaoCH0dvb2dsZS5PclRvb2xzLkNvbnN0cmFpbnRTb2x2ZXJiBnByb3RvMw=="));
34 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
35 new pbr::FileDescriptor[] { },
36 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
37 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.RegularLimitParameters), global::Google.OrTools.ConstraintSolver.RegularLimitParameters.Parser, new[]{ "Time", "Branches", "Failures", "Solutions", "SmartTimeCheck", "Cumulative" }, null, null, null, null)
38 }));
39 }
40 #endregion
41
42 }
43 #region Messages
48 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
49 public sealed partial class RegularLimitParameters : pb::IMessage<RegularLimitParameters>
50 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
51 , pb::IBufferMessage
52 #endif
53 {
54 private static readonly pb::MessageParser<RegularLimitParameters> _parser = new pb::MessageParser<RegularLimitParameters>(() => new RegularLimitParameters());
55 private pb::UnknownFieldSet _unknownFields;
56 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
57 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
58 public static pb::MessageParser<RegularLimitParameters> Parser { get { return _parser; } }
59
60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
61 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
62 public static pbr::MessageDescriptor Descriptor {
63 get { return global::Google.OrTools.ConstraintSolver.SearchLimitReflection.Descriptor.MessageTypes[0]; }
64 }
65
66 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
67 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
68 pbr::MessageDescriptor pb::IMessage.Descriptor {
69 get { return Descriptor; }
70 }
71
72 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
73 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
75 OnConstruction();
76 }
77
78 partial void OnConstruction();
79
80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
81 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
83 time_ = other.time_;
84 branches_ = other.branches_;
85 failures_ = other.failures_;
86 solutions_ = other.solutions_;
87 smartTimeCheck_ = other.smartTimeCheck_;
88 cumulative_ = other.cumulative_;
89 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
90 }
91
92 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
93 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
95 return new RegularLimitParameters(this);
96 }
97
99 public const int TimeFieldNumber = 1;
100 private long time_;
104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
106 public long Time {
107 get { return time_; }
108 set {
109 time_ = value;
110 }
111 }
112
114 public const int BranchesFieldNumber = 2;
115 private long branches_;
116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
118 public long Branches {
119 get { return branches_; }
120 set {
121 branches_ = value;
122 }
123 }
124
126 public const int FailuresFieldNumber = 3;
127 private long failures_;
128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
130 public long Failures {
131 get { return failures_; }
132 set {
133 failures_ = value;
134 }
135 }
136
138 public const int SolutionsFieldNumber = 4;
139 private long solutions_;
140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
142 public long Solutions {
143 get { return solutions_; }
144 set {
145 solutions_ = value;
146 }
147 }
148
150 public const int SmartTimeCheckFieldNumber = 5;
151 private bool smartTimeCheck_;
152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
154 public bool SmartTimeCheck {
155 get { return smartTimeCheck_; }
156 set {
157 smartTimeCheck_ = value;
158 }
159 }
160
162 public const int CumulativeFieldNumber = 6;
163 private bool cumulative_;
164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
166 public bool Cumulative {
167 get { return cumulative_; }
168 set {
169 cumulative_ = value;
170 }
171 }
172
173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
175 public override bool Equals(object other) {
176 return Equals(other as RegularLimitParameters);
177 }
178
179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
181 public bool Equals(RegularLimitParameters other) {
182 if (ReferenceEquals(other, null)) {
183 return false;
184 }
185 if (ReferenceEquals(other, this)) {
186 return true;
187 }
188 if (Time != other.Time) return false;
189 if (Branches != other.Branches) return false;
190 if (Failures != other.Failures) return false;
191 if (Solutions != other.Solutions) return false;
192 if (SmartTimeCheck != other.SmartTimeCheck) return false;
193 if (Cumulative != other.Cumulative) return false;
194 return Equals(_unknownFields, other._unknownFields);
195 }
196
197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
199 public override int GetHashCode() {
200 int hash = 1;
201 if (Time != 0L) hash ^= Time.GetHashCode();
202 if (Branches != 0L) hash ^= Branches.GetHashCode();
203 if (Failures != 0L) hash ^= Failures.GetHashCode();
204 if (Solutions != 0L) hash ^= Solutions.GetHashCode();
205 if (SmartTimeCheck != false) hash ^= SmartTimeCheck.GetHashCode();
206 if (Cumulative != false) hash ^= Cumulative.GetHashCode();
207 if (_unknownFields != null) {
208 hash ^= _unknownFields.GetHashCode();
209 }
210 return hash;
211 }
212
213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
215 public override string ToString() {
216 return pb::JsonFormatter.ToDiagnosticString(this);
217 }
218
219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
221 public void WriteTo(pb::CodedOutputStream output) {
222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
223 output.WriteRawMessage(this);
224 #else
225 if (Time != 0L) {
226 output.WriteRawTag(8);
227 output.WriteInt64(Time);
228 }
229 if (Branches != 0L) {
230 output.WriteRawTag(16);
231 output.WriteInt64(Branches);
232 }
233 if (Failures != 0L) {
234 output.WriteRawTag(24);
235 output.WriteInt64(Failures);
236 }
237 if (Solutions != 0L) {
238 output.WriteRawTag(32);
239 output.WriteInt64(Solutions);
240 }
241 if (SmartTimeCheck != false) {
242 output.WriteRawTag(40);
243 output.WriteBool(SmartTimeCheck);
244 }
245 if (Cumulative != false) {
246 output.WriteRawTag(48);
247 output.WriteBool(Cumulative);
248 }
249 if (_unknownFields != null) {
250 _unknownFields.WriteTo(output);
251 }
252 #endif
253 }
254
255 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
258 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
259 if (Time != 0L) {
260 output.WriteRawTag(8);
261 output.WriteInt64(Time);
262 }
263 if (Branches != 0L) {
264 output.WriteRawTag(16);
265 output.WriteInt64(Branches);
266 }
267 if (Failures != 0L) {
268 output.WriteRawTag(24);
269 output.WriteInt64(Failures);
270 }
271 if (Solutions != 0L) {
272 output.WriteRawTag(32);
273 output.WriteInt64(Solutions);
274 }
275 if (SmartTimeCheck != false) {
276 output.WriteRawTag(40);
277 output.WriteBool(SmartTimeCheck);
278 }
279 if (Cumulative != false) {
280 output.WriteRawTag(48);
281 output.WriteBool(Cumulative);
282 }
283 if (_unknownFields != null) {
284 _unknownFields.WriteTo(ref output);
285 }
286 }
287 #endif
288
289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
291 public int CalculateSize() {
292 int size = 0;
293 if (Time != 0L) {
294 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
295 }
296 if (Branches != 0L) {
297 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Branches);
298 }
299 if (Failures != 0L) {
300 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Failures);
301 }
302 if (Solutions != 0L) {
303 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Solutions);
304 }
305 if (SmartTimeCheck != false) {
306 size += 1 + 1;
307 }
308 if (Cumulative != false) {
309 size += 1 + 1;
310 }
311 if (_unknownFields != null) {
312 size += _unknownFields.CalculateSize();
313 }
314 return size;
315 }
316
317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
318 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
320 if (other == null) {
321 return;
322 }
323 if (other.Time != 0L) {
324 Time = other.Time;
325 }
326 if (other.Branches != 0L) {
327 Branches = other.Branches;
328 }
329 if (other.Failures != 0L) {
330 Failures = other.Failures;
331 }
332 if (other.Solutions != 0L) {
333 Solutions = other.Solutions;
334 }
335 if (other.SmartTimeCheck != false) {
337 }
338 if (other.Cumulative != false) {
339 Cumulative = other.Cumulative;
340 }
341 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
342 }
343
344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
346 public void MergeFrom(pb::CodedInputStream input) {
347 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
348 input.ReadRawMessage(this);
349 #else
350 uint tag;
351 while ((tag = input.ReadTag()) != 0) {
352 switch(tag) {
353 default:
354 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
355 break;
356 case 8: {
357 Time = input.ReadInt64();
358 break;
359 }
360 case 16: {
361 Branches = input.ReadInt64();
362 break;
363 }
364 case 24: {
365 Failures = input.ReadInt64();
366 break;
367 }
368 case 32: {
369 Solutions = input.ReadInt64();
370 break;
371 }
372 case 40: {
373 SmartTimeCheck = input.ReadBool();
374 break;
375 }
376 case 48: {
377 Cumulative = input.ReadBool();
378 break;
379 }
380 }
381 }
382 #endif
383 }
384
385 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
387 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
388 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
389 uint tag;
390 while ((tag = input.ReadTag()) != 0) {
391 switch(tag) {
392 default:
393 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
394 break;
395 case 8: {
396 Time = input.ReadInt64();
397 break;
398 }
399 case 16: {
400 Branches = input.ReadInt64();
401 break;
402 }
403 case 24: {
404 Failures = input.ReadInt64();
405 break;
406 }
407 case 32: {
408 Solutions = input.ReadInt64();
409 break;
410 }
411 case 40: {
412 SmartTimeCheck = input.ReadBool();
413 break;
414 }
415 case 48: {
416 Cumulative = input.ReadBool();
417 break;
418 }
419 }
420 }
421 }
422 #endif
423
424 }
425
426 #endregion
427
428}
429
430#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
A search limit The default values for int64 fields is the maxima value, i.e., 2^63-1.
const int TimeFieldNumber
Field number for the "time" field.
const int SolutionsFieldNumber
Field number for the "solutions" field.
static pb::MessageParser< RegularLimitParameters > Parser
const int FailuresFieldNumber
Field number for the "failures" field.
const int CumulativeFieldNumber
Field number for the "cumulative" field.
const int SmartTimeCheckFieldNumber
Field number for the "smart_time_check" field.
const int BranchesFieldNumber
Field number for the "branches" field.
Holder for reflection information generated from ortools/constraint_solver/search_limit....
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/search_limit.proto.