DotNet Reference

DotNet Reference

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
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.OrTools.ConstraintSolver {
13 
15  public static partial class SearchLimitReflection {
16 
17  #region Descriptor
18  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
44  public sealed partial class RegularLimitParameters : pb::IMessage<RegularLimitParameters> {
49  private static readonly pb::MessageParser<RegularLimitParameters> _parser = new pb::MessageParser<RegularLimitParameters>(() => new RegularLimitParameters());
50  private pb::UnknownFieldSet _unknownFields;
51  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
52  public static pb::MessageParser<RegularLimitParameters> Parser { get { return _parser; } }
53 
54  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
55  public static pbr::MessageDescriptor Descriptor {
56  get { return global::Google.OrTools.ConstraintSolver.SearchLimitReflection.Descriptor.MessageTypes[0]; }
57  }
58 
59  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
60  pbr::MessageDescriptor pb::IMessage.Descriptor {
61  get { return Descriptor; }
62  }
63 
64  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
65  public RegularLimitParameters() {
66  OnConstruction();
67  }
68 
69  partial void OnConstruction();
70 
71  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
73  time_ = other.time_;
74  branches_ = other.branches_;
75  failures_ = other.failures_;
76  solutions_ = other.solutions_;
77  smartTimeCheck_ = other.smartTimeCheck_;
78  cumulative_ = other.cumulative_;
79  _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
80  }
81 
82  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
83  public RegularLimitParameters Clone() {
84  return new RegularLimitParameters(this);
85  }
86 
88  public const int TimeFieldNumber = 1;
89  private long time_;
90  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
91  public long Time {
92  get { return time_; }
93  set {
94  time_ = value;
95  }
96  }
97 
99  public const int BranchesFieldNumber = 2;
100  private long branches_;
101  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
102  public long Branches {
103  get { return branches_; }
104  set {
105  branches_ = value;
106  }
107  }
108 
110  public const int FailuresFieldNumber = 3;
111  private long failures_;
112  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113  public long Failures {
114  get { return failures_; }
115  set {
116  failures_ = value;
117  }
118  }
119 
121  public const int SolutionsFieldNumber = 4;
122  private long solutions_;
123  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
124  public long Solutions {
125  get { return solutions_; }
126  set {
127  solutions_ = value;
128  }
129  }
130 
132  public const int SmartTimeCheckFieldNumber = 5;
133  private bool smartTimeCheck_;
134  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
135  public bool SmartTimeCheck {
136  get { return smartTimeCheck_; }
137  set {
138  smartTimeCheck_ = value;
139  }
140  }
141 
143  public const int CumulativeFieldNumber = 6;
144  private bool cumulative_;
145  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
146  public bool Cumulative {
147  get { return cumulative_; }
148  set {
149  cumulative_ = value;
150  }
151  }
152 
153  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
154  public override bool Equals(object other) {
155  return Equals(other as RegularLimitParameters);
156  }
157 
158  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
159  public bool Equals(RegularLimitParameters other) {
160  if (ReferenceEquals(other, null)) {
161  return false;
162  }
163  if (ReferenceEquals(other, this)) {
164  return true;
165  }
166  if (Time != other.Time) return false;
167  if (Branches != other.Branches) return false;
168  if (Failures != other.Failures) return false;
169  if (Solutions != other.Solutions) return false;
170  if (SmartTimeCheck != other.SmartTimeCheck) return false;
171  if (Cumulative != other.Cumulative) return false;
172  return Equals(_unknownFields, other._unknownFields);
173  }
174 
175  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
176  public override int GetHashCode() {
177  int hash = 1;
178  if (Time != 0L) hash ^= Time.GetHashCode();
179  if (Branches != 0L) hash ^= Branches.GetHashCode();
180  if (Failures != 0L) hash ^= Failures.GetHashCode();
181  if (Solutions != 0L) hash ^= Solutions.GetHashCode();
182  if (SmartTimeCheck != false) hash ^= SmartTimeCheck.GetHashCode();
183  if (Cumulative != false) hash ^= Cumulative.GetHashCode();
184  if (_unknownFields != null) {
185  hash ^= _unknownFields.GetHashCode();
186  }
187  return hash;
188  }
189 
190  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191  public override string ToString() {
192  return pb::JsonFormatter.ToDiagnosticString(this);
193  }
194 
195  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
196  public void WriteTo(pb::CodedOutputStream output) {
197  if (Time != 0L) {
198  output.WriteRawTag(8);
199  output.WriteInt64(Time);
200  }
201  if (Branches != 0L) {
202  output.WriteRawTag(16);
203  output.WriteInt64(Branches);
204  }
205  if (Failures != 0L) {
206  output.WriteRawTag(24);
207  output.WriteInt64(Failures);
208  }
209  if (Solutions != 0L) {
210  output.WriteRawTag(32);
211  output.WriteInt64(Solutions);
212  }
213  if (SmartTimeCheck != false) {
214  output.WriteRawTag(40);
215  output.WriteBool(SmartTimeCheck);
216  }
217  if (Cumulative != false) {
218  output.WriteRawTag(48);
219  output.WriteBool(Cumulative);
220  }
221  if (_unknownFields != null) {
222  _unknownFields.WriteTo(output);
223  }
224  }
225 
226  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
227  public int CalculateSize() {
228  int size = 0;
229  if (Time != 0L) {
230  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
231  }
232  if (Branches != 0L) {
233  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Branches);
234  }
235  if (Failures != 0L) {
236  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Failures);
237  }
238  if (Solutions != 0L) {
239  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Solutions);
240  }
241  if (SmartTimeCheck != false) {
242  size += 1 + 1;
243  }
244  if (Cumulative != false) {
245  size += 1 + 1;
246  }
247  if (_unknownFields != null) {
248  size += _unknownFields.CalculateSize();
249  }
250  return size;
251  }
252 
253  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
254  public void MergeFrom(RegularLimitParameters other) {
255  if (other == null) {
256  return;
257  }
258  if (other.Time != 0L) {
259  Time = other.Time;
260  }
261  if (other.Branches != 0L) {
262  Branches = other.Branches;
263  }
264  if (other.Failures != 0L) {
265  Failures = other.Failures;
266  }
267  if (other.Solutions != 0L) {
268  Solutions = other.Solutions;
269  }
270  if (other.SmartTimeCheck != false) {
271  SmartTimeCheck = other.SmartTimeCheck;
272  }
273  if (other.Cumulative != false) {
274  Cumulative = other.Cumulative;
275  }
276  _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
277  }
278 
279  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
280  public void MergeFrom(pb::CodedInputStream input) {
281  uint tag;
282  while ((tag = input.ReadTag()) != 0) {
283  switch(tag) {
284  default:
285  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
286  break;
287  case 8: {
288  Time = input.ReadInt64();
289  break;
290  }
291  case 16: {
292  Branches = input.ReadInt64();
293  break;
294  }
295  case 24: {
296  Failures = input.ReadInt64();
297  break;
298  }
299  case 32: {
300  Solutions = input.ReadInt64();
301  break;
302  }
303  case 40: {
304  SmartTimeCheck = input.ReadBool();
305  break;
306  }
307  case 48: {
308  Cumulative = input.ReadBool();
309  break;
310  }
311  }
312  }
313  }
314 
315  }
316 
317  #endregion
318 
319 }
320 
321 #endregion Designer generated code
public long Branches
private long failures_
public override int GetHashCode()
public int CalculateSize()
private bool cumulative_
Holder for reflection information generated from ortools/constraint_solver/search_limit....
static public partial class Google::OrTools::ConstraintSolver::SearchLimitReflection _parser
A search limit The default values for int64 fields is the maxima value, i.e., 2^63-1
private long solutions_
public override bool Equals(object other)
const public int TimeFieldNumber
Field number for the "time" field.
private long branches_
private long time_
global::Google.Protobuf pb
public void WriteTo(pb::CodedOutputStream output)
public bool SmartTimeCheck
public FirstSolutionStrategy Clone()
static public pb::MessageParser< RegularLimitParameters > Parser
global::Google.Protobuf.Reflection pbr
static public pbr::FileDescriptor Descriptor
File descriptor for ortools/sat/cp_model.proto
Definition: CpModel.pb.cs:19
private pb::UnknownFieldSet _unknownFields
public void MergeFrom(FirstSolutionStrategy other)
public long Solutions
global::System.Collections.Generic scg
public long Failures
public override string ToString()
public RegularLimitParameters(RegularLimitParameters other)
public long Time
private bool smartTimeCheck_
global::Google.Protobuf.Collections pbc