DotNet Reference

.Net 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;
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  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
50  , pb::IBufferMessage
51  #endif
52  {
53  private static readonly pb::MessageParser<RegularLimitParameters> _parser = new pb::MessageParser<RegularLimitParameters>(() => new RegularLimitParameters());
54  private pb::UnknownFieldSet _unknownFields;
55  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56  public static pb::MessageParser<RegularLimitParameters> Parser { get { return _parser; } }
57 
58  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
59  public static pbr::MessageDescriptor Descriptor {
60  get { return global::Google.OrTools.ConstraintSolver.SearchLimitReflection.Descriptor.MessageTypes[0]; }
61  }
62 
63  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64  pbr::MessageDescriptor pb::IMessage.Descriptor {
65  get { return Descriptor; }
66  }
67 
68  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70  OnConstruction();
71  }
72 
73  partial void OnConstruction();
74 
75  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
77  time_ = other.time_;
78  branches_ = other.branches_;
79  failures_ = other.failures_;
80  solutions_ = other.solutions_;
81  smartTimeCheck_ = other.smartTimeCheck_;
82  cumulative_ = other.cumulative_;
83  _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
84  }
85 
86  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88  return new RegularLimitParameters(this);
89  }
90 
92  public const int TimeFieldNumber = 1;
93  private long time_;
97  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98  public long Time {
99  get { return time_; }
100  set {
101  time_ = value;
102  }
103  }
104 
106  public const int BranchesFieldNumber = 2;
107  private long branches_;
108  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
109  public long Branches {
110  get { return branches_; }
111  set {
112  branches_ = value;
113  }
114  }
115 
117  public const int FailuresFieldNumber = 3;
118  private long failures_;
119  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120  public long Failures {
121  get { return failures_; }
122  set {
123  failures_ = value;
124  }
125  }
126 
128  public const int SolutionsFieldNumber = 4;
129  private long solutions_;
130  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
131  public long Solutions {
132  get { return solutions_; }
133  set {
134  solutions_ = value;
135  }
136  }
137 
139  public const int SmartTimeCheckFieldNumber = 5;
140  private bool smartTimeCheck_;
141  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
142  public bool SmartTimeCheck {
143  get { return smartTimeCheck_; }
144  set {
145  smartTimeCheck_ = value;
146  }
147  }
148 
150  public const int CumulativeFieldNumber = 6;
151  private bool cumulative_;
152  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
153  public bool Cumulative {
154  get { return cumulative_; }
155  set {
156  cumulative_ = value;
157  }
158  }
159 
160  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
161  public override bool Equals(object other) {
162  return Equals(other as RegularLimitParameters);
163  }
164 
165  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
166  public bool Equals(RegularLimitParameters other) {
167  if (ReferenceEquals(other, null)) {
168  return false;
169  }
170  if (ReferenceEquals(other, this)) {
171  return true;
172  }
173  if (Time != other.Time) return false;
174  if (Branches != other.Branches) return false;
175  if (Failures != other.Failures) return false;
176  if (Solutions != other.Solutions) return false;
177  if (SmartTimeCheck != other.SmartTimeCheck) return false;
178  if (Cumulative != other.Cumulative) return false;
179  return Equals(_unknownFields, other._unknownFields);
180  }
181 
182  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183  public override int GetHashCode() {
184  int hash = 1;
185  if (Time != 0L) hash ^= Time.GetHashCode();
186  if (Branches != 0L) hash ^= Branches.GetHashCode();
187  if (Failures != 0L) hash ^= Failures.GetHashCode();
188  if (Solutions != 0L) hash ^= Solutions.GetHashCode();
189  if (SmartTimeCheck != false) hash ^= SmartTimeCheck.GetHashCode();
190  if (Cumulative != false) hash ^= Cumulative.GetHashCode();
191  if (_unknownFields != null) {
192  hash ^= _unknownFields.GetHashCode();
193  }
194  return hash;
195  }
196 
197  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198  public override string ToString() {
199  return pb::JsonFormatter.ToDiagnosticString(this);
200  }
201 
202  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203  public void WriteTo(pb::CodedOutputStream output) {
204  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
205  output.WriteRawMessage(this);
206  #else
207  if (Time != 0L) {
208  output.WriteRawTag(8);
209  output.WriteInt64(Time);
210  }
211  if (Branches != 0L) {
212  output.WriteRawTag(16);
213  output.WriteInt64(Branches);
214  }
215  if (Failures != 0L) {
216  output.WriteRawTag(24);
217  output.WriteInt64(Failures);
218  }
219  if (Solutions != 0L) {
220  output.WriteRawTag(32);
221  output.WriteInt64(Solutions);
222  }
223  if (SmartTimeCheck != false) {
224  output.WriteRawTag(40);
225  output.WriteBool(SmartTimeCheck);
226  }
227  if (Cumulative != false) {
228  output.WriteRawTag(48);
229  output.WriteBool(Cumulative);
230  }
231  if (_unknownFields != null) {
232  _unknownFields.WriteTo(output);
233  }
234  #endif
235  }
236 
237  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
238  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
239  void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
240  if (Time != 0L) {
241  output.WriteRawTag(8);
242  output.WriteInt64(Time);
243  }
244  if (Branches != 0L) {
245  output.WriteRawTag(16);
246  output.WriteInt64(Branches);
247  }
248  if (Failures != 0L) {
249  output.WriteRawTag(24);
250  output.WriteInt64(Failures);
251  }
252  if (Solutions != 0L) {
253  output.WriteRawTag(32);
254  output.WriteInt64(Solutions);
255  }
256  if (SmartTimeCheck != false) {
257  output.WriteRawTag(40);
258  output.WriteBool(SmartTimeCheck);
259  }
260  if (Cumulative != false) {
261  output.WriteRawTag(48);
262  output.WriteBool(Cumulative);
263  }
264  if (_unknownFields != null) {
265  _unknownFields.WriteTo(ref output);
266  }
267  }
268  #endif
269 
270  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
271  public int CalculateSize() {
272  int size = 0;
273  if (Time != 0L) {
274  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time);
275  }
276  if (Branches != 0L) {
277  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Branches);
278  }
279  if (Failures != 0L) {
280  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Failures);
281  }
282  if (Solutions != 0L) {
283  size += 1 + pb::CodedOutputStream.ComputeInt64Size(Solutions);
284  }
285  if (SmartTimeCheck != false) {
286  size += 1 + 1;
287  }
288  if (Cumulative != false) {
289  size += 1 + 1;
290  }
291  if (_unknownFields != null) {
292  size += _unknownFields.CalculateSize();
293  }
294  return size;
295  }
296 
297  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
298  public void MergeFrom(RegularLimitParameters other) {
299  if (other == null) {
300  return;
301  }
302  if (other.Time != 0L) {
303  Time = other.Time;
304  }
305  if (other.Branches != 0L) {
306  Branches = other.Branches;
307  }
308  if (other.Failures != 0L) {
309  Failures = other.Failures;
310  }
311  if (other.Solutions != 0L) {
312  Solutions = other.Solutions;
313  }
314  if (other.SmartTimeCheck != false) {
316  }
317  if (other.Cumulative != false) {
318  Cumulative = other.Cumulative;
319  }
320  _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
321  }
322 
323  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
324  public void MergeFrom(pb::CodedInputStream input) {
325  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
326  input.ReadRawMessage(this);
327  #else
328  uint tag;
329  while ((tag = input.ReadTag()) != 0) {
330  switch(tag) {
331  default:
332  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
333  break;
334  case 8: {
335  Time = input.ReadInt64();
336  break;
337  }
338  case 16: {
339  Branches = input.ReadInt64();
340  break;
341  }
342  case 24: {
343  Failures = input.ReadInt64();
344  break;
345  }
346  case 32: {
347  Solutions = input.ReadInt64();
348  break;
349  }
350  case 40: {
351  SmartTimeCheck = input.ReadBool();
352  break;
353  }
354  case 48: {
355  Cumulative = input.ReadBool();
356  break;
357  }
358  }
359  }
360  #endif
361  }
362 
363  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
364  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365  void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
366  uint tag;
367  while ((tag = input.ReadTag()) != 0) {
368  switch(tag) {
369  default:
370  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
371  break;
372  case 8: {
373  Time = input.ReadInt64();
374  break;
375  }
376  case 16: {
377  Branches = input.ReadInt64();
378  break;
379  }
380  case 24: {
381  Failures = input.ReadInt64();
382  break;
383  }
384  case 32: {
385  Solutions = input.ReadInt64();
386  break;
387  }
388  case 40: {
389  SmartTimeCheck = input.ReadBool();
390  break;
391  }
392  case 48: {
393  Cumulative = input.ReadBool();
394  break;
395  }
396  }
397  }
398  }
399  #endif
400 
401  }
402 
403  #endregion
404 
405 }
406 
407 #endregion Designer generated code
bool SmartTimeCheck
long Failures
const int BranchesFieldNumber
Field number for the "branches" field.
const int CumulativeFieldNumber
Field number for the "cumulative" field.
Holder for reflection information generated from ortools/constraint_solver/search_limit....
bool Equals(RegularLimitParameters other)
long Branches
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/search_limit.proto
static pb::MessageParser< RegularLimitParameters > Parser
void MergeFrom(pb::CodedInputStream input)
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
RegularLimitParameters(RegularLimitParameters other)
global::Google.Protobuf pb
using System
Definition: Program.cs:14
override string ToString()
global::Google.Protobuf.Reflection pbr
const int SolutionsFieldNumber
Field number for the "solutions" field.
const int TimeFieldNumber
Field number for the "time" field.
long Solutions
void MergeFrom(RegularLimitParameters other)
override int GetHashCode()
const int FailuresFieldNumber
Field number for the "failures" field.
const int SmartTimeCheckFieldNumber
Field number for the "smart_time_check" field.
global::System.Collections.Generic scg
RegularLimitParameters()
RegularLimitParameters Clone()
A search limit The default values for int64 fields is the maxima value, i.e., 2^63-1
long Time
TODO(user): Specify the time units or switch to google.Duration proto.
void WriteTo(pb::CodedOutputStream output)
int CalculateSize()
bool Cumulative
global::Google.Protobuf.Collections pbc