DotNet Reference

.Net Reference

RoutingEnums.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/routing_enums.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 RoutingEnumsReflection {
16 
17  #region Descriptor
18  public static pbr::FileDescriptor Descriptor {
20  get { return descriptor; }
21  }
22  private static pbr::FileDescriptor descriptor;
23 
24  static RoutingEnumsReflection() {
25  byte[] descriptorData = global::System.Convert.FromBase64String(
26  string.Concat(
27  "Ci1vcnRvb2xzL2NvbnN0cmFpbnRfc29sdmVyL3JvdXRpbmdfZW51bXMucHJv",
28  "dG8SE29wZXJhdGlvbnNfcmVzZWFyY2gijAMKFUZpcnN0U29sdXRpb25TdHJh",
29  "dGVneSLyAgoFVmFsdWUSCQoFVU5TRVQQABINCglBVVRPTUFUSUMQDxIVChFQ",
30  "QVRIX0NIRUFQRVNUX0FSQxADEh0KGVBBVEhfTU9TVF9DT05TVFJBSU5FRF9B",
31  "UkMQBBIWChJFVkFMVUFUT1JfU1RSQVRFR1kQBRILCgdTQVZJTkdTEAoSCQoF",
32  "U1dFRVAQCxIQCgxDSFJJU1RPRklERVMQDRITCg9BTExfVU5QRVJGT1JNRUQQ",
33  "BhISCg5CRVNUX0lOU0VSVElPThAHEh8KG1BBUkFMTEVMX0NIRUFQRVNUX0lO",
34  "U0VSVElPThAIEiEKHVNFUVVFTlRJQUxfQ0hFQVBFU1RfSU5TRVJUSU9OEA4S",
35  "HAoYTE9DQUxfQ0hFQVBFU1RfSU5TRVJUSU9OEAkSFwoTR0xPQkFMX0NIRUFQ",
36  "RVNUX0FSQxABEhYKEkxPQ0FMX0NIRUFQRVNUX0FSQxACEhsKF0ZJUlNUX1VO",
37  "Qk9VTkRfTUlOX1ZBTFVFEAwirgEKGExvY2FsU2VhcmNoTWV0YWhldXJpc3Rp",
38  "YyKRAQoFVmFsdWUSCQoFVU5TRVQQABINCglBVVRPTUFUSUMQBhISCg5HUkVF",
39  "RFlfREVTQ0VOVBABEhcKE0dVSURFRF9MT0NBTF9TRUFSQ0gQAhIXChNTSU1V",
40  "TEFURURfQU5ORUFMSU5HEAMSDwoLVEFCVV9TRUFSQ0gQBBIXChNHRU5FUklD",
41  "X1RBQlVfU0VBUkNIEAVCSQojY29tLmdvb2dsZS5vcnRvb2xzLmNvbnN0cmFp",
42  "bnRzb2x2ZXJQAaoCH0dvb2dsZS5PclRvb2xzLkNvbnN0cmFpbnRTb2x2ZXJi",
43  "BnByb3RvMw=="));
44  descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
45  new pbr::FileDescriptor[] { },
46  new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
47  new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.FirstSolutionStrategy), global::Google.OrTools.ConstraintSolver.FirstSolutionStrategy.Parser, null, null, new[]{ typeof(global::Google.OrTools.ConstraintSolver.FirstSolutionStrategy.Types.Value) }, null, null),
48  new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.ConstraintSolver.LocalSearchMetaheuristic), global::Google.OrTools.ConstraintSolver.LocalSearchMetaheuristic.Parser, null, null, new[]{ typeof(global::Google.OrTools.ConstraintSolver.LocalSearchMetaheuristic.Types.Value) }, null, null)
49  }));
50  }
51  #endregion
52 
53  }
54  #region Messages
55  public sealed partial class FirstSolutionStrategy : pb::IMessage<FirstSolutionStrategy>
59  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
60  , pb::IBufferMessage
61  #endif
62  {
63  private static readonly pb::MessageParser<FirstSolutionStrategy> _parser = new pb::MessageParser<FirstSolutionStrategy>(() => new FirstSolutionStrategy());
64  private pb::UnknownFieldSet _unknownFields;
65  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66  public static pb::MessageParser<FirstSolutionStrategy> Parser { get { return _parser; } }
67 
68  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
69  public static pbr::MessageDescriptor Descriptor {
70  get { return global::Google.OrTools.ConstraintSolver.RoutingEnumsReflection.Descriptor.MessageTypes[0]; }
71  }
72 
73  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74  pbr::MessageDescriptor pb::IMessage.Descriptor {
75  get { return Descriptor; }
76  }
77 
78  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
80  OnConstruction();
81  }
82 
83  partial void OnConstruction();
84 
85  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
87  _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
88  }
89 
90  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92  return new FirstSolutionStrategy(this);
93  }
94 
95  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96  public override bool Equals(object other) {
97  return Equals(other as FirstSolutionStrategy);
98  }
99 
100  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
101  public bool Equals(FirstSolutionStrategy other) {
102  if (ReferenceEquals(other, null)) {
103  return false;
104  }
105  if (ReferenceEquals(other, this)) {
106  return true;
107  }
108  return Equals(_unknownFields, other._unknownFields);
109  }
110 
111  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
112  public override int GetHashCode() {
113  int hash = 1;
114  if (_unknownFields != null) {
115  hash ^= _unknownFields.GetHashCode();
116  }
117  return hash;
118  }
119 
120  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
121  public override string ToString() {
122  return pb::JsonFormatter.ToDiagnosticString(this);
123  }
124 
125  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
126  public void WriteTo(pb::CodedOutputStream output) {
127  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
128  output.WriteRawMessage(this);
129  #else
130  if (_unknownFields != null) {
131  _unknownFields.WriteTo(output);
132  }
133  #endif
134  }
135 
136  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
137  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
138  void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
139  if (_unknownFields != null) {
140  _unknownFields.WriteTo(ref output);
141  }
142  }
143  #endif
144 
145  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
146  public int CalculateSize() {
147  int size = 0;
148  if (_unknownFields != null) {
149  size += _unknownFields.CalculateSize();
150  }
151  return size;
152  }
153 
154  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
155  public void MergeFrom(FirstSolutionStrategy other) {
156  if (other == null) {
157  return;
158  }
159  _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
160  }
161 
162  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
163  public void MergeFrom(pb::CodedInputStream input) {
164  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
165  input.ReadRawMessage(this);
166  #else
167  uint tag;
168  while ((tag = input.ReadTag()) != 0) {
169  switch(tag) {
170  default:
171  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
172  break;
173  }
174  }
175  #endif
176  }
177 
178  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
179  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
180  void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
181  uint tag;
182  while ((tag = input.ReadTag()) != 0) {
183  switch(tag) {
184  default:
185  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
186  break;
187  }
188  }
189  }
190  #endif
191 
192  #region Nested types
193  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
195  public static partial class Types {
196  public enum Value {
200  [pbr::OriginalName("UNSET")] Unset = 0,
205  [pbr::OriginalName("AUTOMATIC")] Automatic = 15,
212  [pbr::OriginalName("PATH_CHEAPEST_ARC")] PathCheapestArc = 3,
219  [pbr::OriginalName("PATH_MOST_CONSTRAINED_ARC")] PathMostConstrainedArc = 4,
225  [pbr::OriginalName("EVALUATOR_STRATEGY")] EvaluatorStrategy = 5,
232  [pbr::OriginalName("SAVINGS")] Savings = 10,
240  [pbr::OriginalName("SWEEP")] Sweep = 11,
251  [pbr::OriginalName("CHRISTOFIDES")] Christofides = 13,
257  [pbr::OriginalName("ALL_UNPERFORMED")] AllUnperformed = 6,
264  [pbr::OriginalName("BEST_INSERTION")] BestInsertion = 7,
270  [pbr::OriginalName("PARALLEL_CHEAPEST_INSERTION")] ParallelCheapestInsertion = 8,
277  [pbr::OriginalName("SEQUENTIAL_CHEAPEST_INSERTION")] SequentialCheapestInsertion = 14,
286  [pbr::OriginalName("LOCAL_CHEAPEST_INSERTION")] LocalCheapestInsertion = 9,
291  [pbr::OriginalName("GLOBAL_CHEAPEST_ARC")] GlobalCheapestArc = 1,
296  [pbr::OriginalName("LOCAL_CHEAPEST_ARC")] LocalCheapestArc = 2,
303  [pbr::OriginalName("FIRST_UNBOUND_MIN_VALUE")] FirstUnboundMinValue = 12,
304  }
305 
306  }
307  #endregion
308 
309  }
310 
315  public sealed partial class LocalSearchMetaheuristic : pb::IMessage<LocalSearchMetaheuristic>
316  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
317  , pb::IBufferMessage
318  #endif
319  {
320  private static readonly pb::MessageParser<LocalSearchMetaheuristic> _parser = new pb::MessageParser<LocalSearchMetaheuristic>(() => new LocalSearchMetaheuristic());
321  private pb::UnknownFieldSet _unknownFields;
322  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
323  public static pb::MessageParser<LocalSearchMetaheuristic> Parser { get { return _parser; } }
324 
325  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
326  public static pbr::MessageDescriptor Descriptor {
327  get { return global::Google.OrTools.ConstraintSolver.RoutingEnumsReflection.Descriptor.MessageTypes[1]; }
328  }
329 
330  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
331  pbr::MessageDescriptor pb::IMessage.Descriptor {
332  get { return Descriptor; }
333  }
334 
335  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
337  OnConstruction();
338  }
339 
340  partial void OnConstruction();
341 
342  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
344  _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
345  }
346 
347  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
349  return new LocalSearchMetaheuristic(this);
350  }
351 
352  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
353  public override bool Equals(object other) {
354  return Equals(other as LocalSearchMetaheuristic);
355  }
356 
357  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
358  public bool Equals(LocalSearchMetaheuristic other) {
359  if (ReferenceEquals(other, null)) {
360  return false;
361  }
362  if (ReferenceEquals(other, this)) {
363  return true;
364  }
365  return Equals(_unknownFields, other._unknownFields);
366  }
367 
368  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
369  public override int GetHashCode() {
370  int hash = 1;
371  if (_unknownFields != null) {
372  hash ^= _unknownFields.GetHashCode();
373  }
374  return hash;
375  }
376 
377  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
378  public override string ToString() {
379  return pb::JsonFormatter.ToDiagnosticString(this);
380  }
381 
382  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
383  public void WriteTo(pb::CodedOutputStream output) {
384  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
385  output.WriteRawMessage(this);
386  #else
387  if (_unknownFields != null) {
388  _unknownFields.WriteTo(output);
389  }
390  #endif
391  }
392 
393  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
394  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
395  void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
396  if (_unknownFields != null) {
397  _unknownFields.WriteTo(ref output);
398  }
399  }
400  #endif
401 
402  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
403  public int CalculateSize() {
404  int size = 0;
405  if (_unknownFields != null) {
406  size += _unknownFields.CalculateSize();
407  }
408  return size;
409  }
410 
411  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
412  public void MergeFrom(LocalSearchMetaheuristic other) {
413  if (other == null) {
414  return;
415  }
416  _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
417  }
418 
419  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
420  public void MergeFrom(pb::CodedInputStream input) {
421  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
422  input.ReadRawMessage(this);
423  #else
424  uint tag;
425  while ((tag = input.ReadTag()) != 0) {
426  switch(tag) {
427  default:
428  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
429  break;
430  }
431  }
432  #endif
433  }
434 
435  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
436  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
437  void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
438  uint tag;
439  while ((tag = input.ReadTag()) != 0) {
440  switch(tag) {
441  default:
442  _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
443  break;
444  }
445  }
446  }
447  #endif
448 
449  #region Nested types
450  [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
452  public static partial class Types {
453  public enum Value {
459  [pbr::OriginalName("UNSET")] Unset = 0,
463  [pbr::OriginalName("AUTOMATIC")] Automatic = 6,
468  [pbr::OriginalName("GREEDY_DESCENT")] GreedyDescent = 1,
474  [pbr::OriginalName("GUIDED_LOCAL_SEARCH")] GuidedLocalSearch = 2,
479  [pbr::OriginalName("SIMULATED_ANNEALING")] SimulatedAnnealing = 3,
484  [pbr::OriginalName("TABU_SEARCH")] TabuSearch = 4,
490  [pbr::OriginalName("GENERIC_TABU_SEARCH")] GenericTabuSearch = 5,
491  }
492 
493  }
494  #endregion
495 
496  }
497 
498  #endregion
499 
500 }
501 
502 #endregion Designer generated code
int CalculateSize()
LocalSearchMetaheuristic()
Value
static pb::MessageParser< LocalSearchMetaheuristic > Parser
void MergeFrom(pb::CodedInputStream input)
override bool Equals(object other)
LocalSearchMetaheuristic Clone()
Container for nested types declared in the LocalSearchMetaheuristic message type.
Value
void WriteTo(pb::CodedOutputStream output)
override string ToString()
void MergeFrom(pb::CodedInputStream input)
global::Google.Protobuf pb
using System
Definition: Program.cs:14
void WriteTo(pb::CodedOutputStream output)
bool Equals(FirstSolutionStrategy other)
global::Google.Protobuf.Reflection pbr
FirstSolutionStrategy Clone()
Holder for reflection information generated from ortools/constraint_solver/routing_enums....
void MergeFrom(FirstSolutionStrategy other)
Local search metaheuristics used to guide the search.
override string ToString()
LocalSearchMetaheuristic(LocalSearchMetaheuristic other)
First solution strategies, used as starting point of local search.
static pb::MessageParser< FirstSolutionStrategy > Parser
override int GetHashCode()
int CalculateSize()
global::System.Collections.Generic scg
static pbr::FileDescriptor Descriptor
File descriptor for ortools/constraint_solver/routing_enums.proto
void MergeFrom(LocalSearchMetaheuristic other)
static pbr::MessageDescriptor Descriptor
FirstSolutionStrategy(FirstSolutionStrategy other)
override bool Equals(object other)
override int GetHashCode()
Container for nested types declared in the FirstSolutionStrategy message type.
bool Equals(LocalSearchMetaheuristic other)
static pbr::MessageDescriptor Descriptor
FirstSolutionStrategy()
global::Google.Protobuf.Collections pbc