Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
SetCover.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/algorithms/set_cover.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 SetCoverReflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static SetCoverReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "CiJvcnRvb2xzL2FsZ29yaXRobXMvc2V0X2NvdmVyLnByb3RvEhNvcGVyYXRp",
28 "b25zX3Jlc2VhcmNoGhlvcnRvb2xzL3V0aWwvaW50MTI4LnByb3RvIugBCg1T",
29 "ZXRDb3ZlclByb3RvEjkKBnN1YnNldBgBIAMoCzIpLm9wZXJhdGlvbnNfcmVz",
30 "ZWFyY2guU2V0Q292ZXJQcm90by5TdWJzZXQSEQoEbmFtZRgCIAEoCUgAiAEB",
31 "EjUKC2ZpbmdlcnByaW50GAMgASgLMhsub3BlcmF0aW9uc19yZXNlYXJjaC5J",
32 "bnQxMjhIAYgBARo5CgZTdWJzZXQSEQoEY29zdBgBIAEoAUgAiAEBEhMKB2Vs",
33 "ZW1lbnQYAiADKAVCAhABQgcKBV9jb3N0QgcKBV9uYW1lQg4KDF9maW5nZXJw",
34 "cmludCLpAwoYU2V0Q292ZXJTb2x1dGlvblJlc3BvbnNlEkkKBnN0YXR1cxgB",
35 "IAEoDjI0Lm9wZXJhdGlvbnNfcmVzZWFyY2guU2V0Q292ZXJTb2x1dGlvblJl",
36 "c3BvbnNlLlN0YXR1c0gAiAEBEhgKC251bV9zdWJzZXRzGAIgASgFSAGIAQES",
37 "EgoGc3Vic2V0GAMgAygFQgIQARIRCgRjb3N0GAQgASgBSAKIAQESHQoQY29z",
38 "dF9sb3dlcl9ib3VuZBgFIAEoAUgDiAEBEjUKC2ZpbmdlcnByaW50GAYgASgL",
39 "Mhsub3BlcmF0aW9uc19yZXNlYXJjaC5JbnQxMjhIBIgBARI7ChFtb2RlbF9m",
40 "aW5nZXJwcmludBgHIAEoCzIbLm9wZXJhdGlvbnNfcmVzZWFyY2guSW50MTI4",
41 "SAWIAQEiTwoGU3RhdHVzEg0KCVVOREVGSU5FRBAAEgsKB09QVElNQUwQARIM",
42 "CghGRUFTSUJMRRACEg4KCklORkVBU0lCTEUQAxILCgdJTlZBTElEEARCCQoH",
43 "X3N0YXR1c0IOCgxfbnVtX3N1YnNldHNCBwoFX2Nvc3RCEwoRX2Nvc3RfbG93",
44 "ZXJfYm91bmRCDgoMX2ZpbmdlcnByaW50QhQKEl9tb2RlbF9maW5nZXJwcmlu",
45 "dEIhCh1jb20uZ29vZ2xlLm9ydG9vbHMuYWxnb3JpdGhtc1ABYgZwcm90bzM="));
46 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
47 new pbr::FileDescriptor[] { global::Google.OrTools.Util.Int128Reflection.Descriptor, },
48 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
49 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.SetCoverProto), global::OperationsResearch.SetCoverProto.Parser, new[]{ "Subset", "Name", "Fingerprint" }, new[]{ "Name", "Fingerprint" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.SetCoverProto.Types.Subset), global::OperationsResearch.SetCoverProto.Types.Subset.Parser, new[]{ "Cost", "Element" }, new[]{ "Cost" }, null, null, null)}),
50 new pbr::GeneratedClrTypeInfo(typeof(global::OperationsResearch.SetCoverSolutionResponse), global::OperationsResearch.SetCoverSolutionResponse.Parser, new[]{ "Status", "NumSubsets", "Subset", "Cost", "CostLowerBound", "Fingerprint", "ModelFingerprint" }, new[]{ "Status", "NumSubsets", "Cost", "CostLowerBound", "Fingerprint", "ModelFingerprint" }, new[]{ typeof(global::OperationsResearch.SetCoverSolutionResponse.Types.Status) }, null, null)
51 }));
52 }
53 #endregion
54
55 }
56 #region Messages
61 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
62 public sealed partial class SetCoverProto : pb::IMessage<SetCoverProto>
63 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
64 , pb::IBufferMessage
65 #endif
66 {
67 private static readonly pb::MessageParser<SetCoverProto> _parser = new pb::MessageParser<SetCoverProto>(() => new SetCoverProto());
68 private pb::UnknownFieldSet _unknownFields;
69 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
71 public static pb::MessageParser<SetCoverProto> Parser { get { return _parser; } }
72
73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
74 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
75 public static pbr::MessageDescriptor Descriptor {
76 get { return global::OperationsResearch.SetCoverReflection.Descriptor.MessageTypes[0]; }
77 }
78
79 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
80 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
81 pbr::MessageDescriptor pb::IMessage.Descriptor {
82 get { return Descriptor; }
83 }
84
85 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
87 public SetCoverProto() {
88 OnConstruction();
89 }
90
91 partial void OnConstruction();
92
93 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
94 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
95 public SetCoverProto(SetCoverProto other) : this() {
96 subset_ = other.subset_.Clone();
97 name_ = other.name_;
98 fingerprint_ = other.fingerprint_ != null ? other.fingerprint_.Clone() : null;
99 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
100 }
101
102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
103 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
105 return new SetCoverProto(this);
106 }
107
109 public const int SubsetFieldNumber = 1;
110 private static readonly pb::FieldCodec<global::OperationsResearch.SetCoverProto.Types.Subset> _repeated_subset_codec
111 = pb::FieldCodec.ForMessage(10, global::OperationsResearch.SetCoverProto.Types.Subset.Parser);
112 private readonly pbc::RepeatedField<global::OperationsResearch.SetCoverProto.Types.Subset> subset_ = new pbc::RepeatedField<global::OperationsResearch.SetCoverProto.Types.Subset>();
116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
118 public pbc::RepeatedField<global::OperationsResearch.SetCoverProto.Types.Subset> Subset {
119 get { return subset_; }
120 }
121
123 public const int NameFieldNumber = 2;
124 private readonly static string NameDefaultValue = "";
125
126 private string name_;
130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
132 public string Name {
133 get { return name_ ?? NameDefaultValue; }
134 set {
135 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
136 }
137 }
138
139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
140 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
141 public bool HasName {
142 get { return name_ != null; }
143 }
144
145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
146 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
147 public void ClearName() {
148 name_ = null;
149 }
150
152 public const int FingerprintFieldNumber = 3;
153 private global::Google.OrTools.Util.Int128 fingerprint_;
157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
159 public global::Google.OrTools.Util.Int128 Fingerprint {
160 get { return fingerprint_; }
161 set {
162 fingerprint_ = value;
163 }
164 }
165
166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
168 public override bool Equals(object other) {
169 return Equals(other as SetCoverProto);
170 }
171
172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
173 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
174 public bool Equals(SetCoverProto other) {
175 if (ReferenceEquals(other, null)) {
176 return false;
177 }
178 if (ReferenceEquals(other, this)) {
179 return true;
180 }
181 if(!subset_.Equals(other.subset_)) return false;
182 if (Name != other.Name) return false;
183 if (!object.Equals(Fingerprint, other.Fingerprint)) return false;
184 return Equals(_unknownFields, other._unknownFields);
185 }
186
187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
189 public override int GetHashCode() {
190 int hash = 1;
191 hash ^= subset_.GetHashCode();
192 if (HasName) hash ^= Name.GetHashCode();
193 if (fingerprint_ != null) hash ^= Fingerprint.GetHashCode();
194 if (_unknownFields != null) {
195 hash ^= _unknownFields.GetHashCode();
196 }
197 return hash;
198 }
199
200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
202 public override string ToString() {
203 return pb::JsonFormatter.ToDiagnosticString(this);
204 }
205
206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
208 public void WriteTo(pb::CodedOutputStream output) {
209 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
210 output.WriteRawMessage(this);
211 #else
212 subset_.WriteTo(output, _repeated_subset_codec);
213 if (HasName) {
214 output.WriteRawTag(18);
215 output.WriteString(Name);
216 }
217 if (fingerprint_ != null) {
218 output.WriteRawTag(26);
219 output.WriteMessage(Fingerprint);
220 }
221 if (_unknownFields != null) {
222 _unknownFields.WriteTo(output);
223 }
224 #endif
225 }
226
227 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
229 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
230 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
231 subset_.WriteTo(ref output, _repeated_subset_codec);
232 if (HasName) {
233 output.WriteRawTag(18);
234 output.WriteString(Name);
235 }
236 if (fingerprint_ != null) {
237 output.WriteRawTag(26);
238 output.WriteMessage(Fingerprint);
239 }
240 if (_unknownFields != null) {
241 _unknownFields.WriteTo(ref output);
242 }
243 }
244 #endif
245
246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
247 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
248 public int CalculateSize() {
249 int size = 0;
250 size += subset_.CalculateSize(_repeated_subset_codec);
251 if (HasName) {
252 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
253 }
254 if (fingerprint_ != null) {
255 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fingerprint);
256 }
257 if (_unknownFields != null) {
258 size += _unknownFields.CalculateSize();
259 }
260 return size;
261 }
262
263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
264 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
265 public void MergeFrom(SetCoverProto other) {
266 if (other == null) {
267 return;
268 }
269 subset_.Add(other.subset_);
270 if (other.HasName) {
271 Name = other.Name;
272 }
273 if (other.fingerprint_ != null) {
274 if (fingerprint_ == null) {
275 Fingerprint = new global::Google.OrTools.Util.Int128();
276 }
277 Fingerprint.MergeFrom(other.Fingerprint);
278 }
279 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
280 }
281
282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
284 public void MergeFrom(pb::CodedInputStream input) {
285 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
286 input.ReadRawMessage(this);
287 #else
288 uint tag;
289 while ((tag = input.ReadTag()) != 0) {
290 if ((tag & 7) == 4) {
291 // Abort on any end group tag.
292 return;
293 }
294 switch(tag) {
295 default:
296 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
297 break;
298 case 10: {
299 subset_.AddEntriesFrom(input, _repeated_subset_codec);
300 break;
301 }
302 case 18: {
303 Name = input.ReadString();
304 break;
305 }
306 case 26: {
307 if (fingerprint_ == null) {
308 Fingerprint = new global::Google.OrTools.Util.Int128();
309 }
310 input.ReadMessage(Fingerprint);
311 break;
312 }
313 }
314 }
315 #endif
316 }
317
318 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
321 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
322 uint tag;
323 while ((tag = input.ReadTag()) != 0) {
324 if ((tag & 7) == 4) {
325 // Abort on any end group tag.
326 return;
327 }
328 switch(tag) {
329 default:
330 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
331 break;
332 case 10: {
333 subset_.AddEntriesFrom(ref input, _repeated_subset_codec);
334 break;
335 }
336 case 18: {
337 Name = input.ReadString();
338 break;
339 }
340 case 26: {
341 if (fingerprint_ == null) {
342 Fingerprint = new global::Google.OrTools.Util.Int128();
343 }
344 input.ReadMessage(Fingerprint);
345 break;
346 }
347 }
348 }
349 }
350 #endif
351
352 #region Nested types
354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
356 public static partial class Types {
357 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
358 public sealed partial class Subset : pb::IMessage<Subset>
359 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
360 , pb::IBufferMessage
361 #endif
362 {
363 private static readonly pb::MessageParser<Subset> _parser = new pb::MessageParser<Subset>(() => new Subset());
364 private pb::UnknownFieldSet _unknownFields;
365 private int _hasBits0;
366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
367 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
368 public static pb::MessageParser<Subset> Parser { get { return _parser; } }
369
370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
371 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
372 public static pbr::MessageDescriptor Descriptor {
373 get { return global::OperationsResearch.SetCoverProto.Descriptor.NestedTypes[0]; }
374 }
375
376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
377 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
378 pbr::MessageDescriptor pb::IMessage.Descriptor {
379 get { return Descriptor; }
380 }
381
382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
383 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
384 public Subset() {
385 OnConstruction();
386 }
387
388 partial void OnConstruction();
389
390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
392 public Subset(Subset other) : this() {
393 _hasBits0 = other._hasBits0;
394 cost_ = other.cost_;
395 element_ = other.element_.Clone();
396 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
397 }
398
399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
401 public Subset Clone() {
402 return new Subset(this);
403 }
404
406 public const int CostFieldNumber = 1;
407 private readonly static double CostDefaultValue = 0D;
408
409 private double cost_;
413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
414 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
415 public double Cost {
416 get { if ((_hasBits0 & 1) != 0) { return cost_; } else { return CostDefaultValue; } }
417 set {
418 _hasBits0 |= 1;
419 cost_ = value;
420 }
421 }
422
423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
425 public bool HasCost {
426 get { return (_hasBits0 & 1) != 0; }
427 }
428
429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
431 public void ClearCost() {
432 _hasBits0 &= ~1;
433 }
434
436 public const int ElementFieldNumber = 2;
437 private static readonly pb::FieldCodec<int> _repeated_element_codec
438 = pb::FieldCodec.ForInt32(18);
439 private readonly pbc::RepeatedField<int> element_ = new pbc::RepeatedField<int>();
443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
445 public pbc::RepeatedField<int> Element {
446 get { return element_; }
447 }
448
449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
451 public override bool Equals(object other) {
452 return Equals(other as Subset);
453 }
454
455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
456 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
457 public bool Equals(Subset other) {
458 if (ReferenceEquals(other, null)) {
459 return false;
460 }
461 if (ReferenceEquals(other, this)) {
462 return true;
463 }
464 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Cost, other.Cost)) return false;
465 if(!element_.Equals(other.element_)) return false;
466 return Equals(_unknownFields, other._unknownFields);
467 }
468
469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
471 public override int GetHashCode() {
472 int hash = 1;
473 if (HasCost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Cost);
474 hash ^= element_.GetHashCode();
475 if (_unknownFields != null) {
476 hash ^= _unknownFields.GetHashCode();
477 }
478 return hash;
479 }
480
481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
483 public override string ToString() {
484 return pb::JsonFormatter.ToDiagnosticString(this);
485 }
486
487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
488 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
489 public void WriteTo(pb::CodedOutputStream output) {
490 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
491 output.WriteRawMessage(this);
492 #else
493 if (HasCost) {
494 output.WriteRawTag(9);
495 output.WriteDouble(Cost);
496 }
497 element_.WriteTo(output, _repeated_element_codec);
498 if (_unknownFields != null) {
499 _unknownFields.WriteTo(output);
500 }
501 #endif
502 }
503
504 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
506 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
507 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
508 if (HasCost) {
509 output.WriteRawTag(9);
510 output.WriteDouble(Cost);
511 }
512 element_.WriteTo(ref output, _repeated_element_codec);
513 if (_unknownFields != null) {
514 _unknownFields.WriteTo(ref output);
515 }
516 }
517 #endif
518
519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
520 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
521 public int CalculateSize() {
522 int size = 0;
523 if (HasCost) {
524 size += 1 + 8;
525 }
526 size += element_.CalculateSize(_repeated_element_codec);
527 if (_unknownFields != null) {
528 size += _unknownFields.CalculateSize();
529 }
530 return size;
531 }
532
533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
535 public void MergeFrom(Subset other) {
536 if (other == null) {
537 return;
538 }
539 if (other.HasCost) {
540 Cost = other.Cost;
541 }
542 element_.Add(other.element_);
543 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
544 }
545
546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
547 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
548 public void MergeFrom(pb::CodedInputStream input) {
549 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
550 input.ReadRawMessage(this);
551 #else
552 uint tag;
553 while ((tag = input.ReadTag()) != 0) {
554 if ((tag & 7) == 4) {
555 // Abort on any end group tag.
556 return;
557 }
558 switch(tag) {
559 default:
560 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
561 break;
562 case 9: {
563 Cost = input.ReadDouble();
564 break;
565 }
566 case 18:
567 case 16: {
568 element_.AddEntriesFrom(input, _repeated_element_codec);
569 break;
570 }
571 }
572 }
573 #endif
574 }
575
576 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
579 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
580 uint tag;
581 while ((tag = input.ReadTag()) != 0) {
582 if ((tag & 7) == 4) {
583 // Abort on any end group tag.
584 return;
585 }
586 switch(tag) {
587 default:
588 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
589 break;
590 case 9: {
591 Cost = input.ReadDouble();
592 break;
593 }
594 case 18:
595 case 16: {
596 element_.AddEntriesFrom(ref input, _repeated_element_codec);
597 break;
598 }
599 }
600 }
601 }
602 #endif
603
604 }
605
606 }
607 #endregion
608
609 }
610
611 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
612 public sealed partial class SetCoverSolutionResponse : pb::IMessage<SetCoverSolutionResponse>
613 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
614 , pb::IBufferMessage
615 #endif
616 {
617 private static readonly pb::MessageParser<SetCoverSolutionResponse> _parser = new pb::MessageParser<SetCoverSolutionResponse>(() => new SetCoverSolutionResponse());
618 private pb::UnknownFieldSet _unknownFields;
619 private int _hasBits0;
620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
622 public static pb::MessageParser<SetCoverSolutionResponse> Parser { get { return _parser; } }
623
624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
625 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
626 public static pbr::MessageDescriptor Descriptor {
627 get { return global::OperationsResearch.SetCoverReflection.Descriptor.MessageTypes[1]; }
628 }
629
630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
631 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
632 pbr::MessageDescriptor pb::IMessage.Descriptor {
633 get { return Descriptor; }
634 }
635
636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
639 OnConstruction();
640 }
641
642 partial void OnConstruction();
643
644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
647 _hasBits0 = other._hasBits0;
648 status_ = other.status_;
649 numSubsets_ = other.numSubsets_;
650 subset_ = other.subset_.Clone();
651 cost_ = other.cost_;
652 costLowerBound_ = other.costLowerBound_;
653 fingerprint_ = other.fingerprint_ != null ? other.fingerprint_.Clone() : null;
654 modelFingerprint_ = other.modelFingerprint_ != null ? other.modelFingerprint_.Clone() : null;
655 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
656 }
657
658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
661 return new SetCoverSolutionResponse(this);
662 }
663
665 public const int StatusFieldNumber = 1;
666 private readonly static global::OperationsResearch.SetCoverSolutionResponse.Types.Status StatusDefaultValue = global::OperationsResearch.SetCoverSolutionResponse.Types.Status.Undefined;
667
668 private global::OperationsResearch.SetCoverSolutionResponse.Types.Status status_;
672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
673 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
674 public global::OperationsResearch.SetCoverSolutionResponse.Types.Status Status {
675 get { if ((_hasBits0 & 1) != 0) { return status_; } else { return StatusDefaultValue; } }
676 set {
677 _hasBits0 |= 1;
678 status_ = value;
679 }
680 }
681
682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
683 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
684 public bool HasStatus {
685 get { return (_hasBits0 & 1) != 0; }
686 }
687
688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
689 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
690 public void ClearStatus() {
691 _hasBits0 &= ~1;
692 }
693
695 public const int NumSubsetsFieldNumber = 2;
696 private readonly static int NumSubsetsDefaultValue = 0;
697
698 private int numSubsets_;
703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
704 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
705 public int NumSubsets {
706 get { if ((_hasBits0 & 2) != 0) { return numSubsets_; } else { return NumSubsetsDefaultValue; } }
707 set {
708 _hasBits0 |= 2;
709 numSubsets_ = value;
710 }
711 }
712
713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
714 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
715 public bool HasNumSubsets {
716 get { return (_hasBits0 & 2) != 0; }
717 }
718
719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
721 public void ClearNumSubsets() {
722 _hasBits0 &= ~2;
723 }
724
726 public const int SubsetFieldNumber = 3;
727 private static readonly pb::FieldCodec<int> _repeated_subset_codec
728 = pb::FieldCodec.ForInt32(26);
729 private readonly pbc::RepeatedField<int> subset_ = new pbc::RepeatedField<int>();
733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
734 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
735 public pbc::RepeatedField<int> Subset {
736 get { return subset_; }
737 }
738
740 public const int CostFieldNumber = 4;
741 private readonly static double CostDefaultValue = 0D;
742
743 private double cost_;
747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
749 public double Cost {
750 get { if ((_hasBits0 & 4) != 0) { return cost_; } else { return CostDefaultValue; } }
751 set {
752 _hasBits0 |= 4;
753 cost_ = value;
754 }
755 }
756
757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
758 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
759 public bool HasCost {
760 get { return (_hasBits0 & 4) != 0; }
761 }
762
763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
765 public void ClearCost() {
766 _hasBits0 &= ~4;
767 }
768
770 public const int CostLowerBoundFieldNumber = 5;
771 private readonly static double CostLowerBoundDefaultValue = 0D;
772
773 private double costLowerBound_;
777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
779 public double CostLowerBound {
780 get { if ((_hasBits0 & 8) != 0) { return costLowerBound_; } else { return CostLowerBoundDefaultValue; } }
781 set {
782 _hasBits0 |= 8;
783 costLowerBound_ = value;
784 }
785 }
786
787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
788 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
789 public bool HasCostLowerBound {
790 get { return (_hasBits0 & 8) != 0; }
791 }
792
793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
795 public void ClearCostLowerBound() {
796 _hasBits0 &= ~8;
797 }
798
800 public const int FingerprintFieldNumber = 6;
801 private global::Google.OrTools.Util.Int128 fingerprint_;
805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
807 public global::Google.OrTools.Util.Int128 Fingerprint {
808 get { return fingerprint_; }
809 set {
810 fingerprint_ = value;
811 }
812 }
813
815 public const int ModelFingerprintFieldNumber = 7;
816 private global::Google.OrTools.Util.Int128 modelFingerprint_;
820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
822 public global::Google.OrTools.Util.Int128 ModelFingerprint {
823 get { return modelFingerprint_; }
824 set {
825 modelFingerprint_ = value;
826 }
827 }
828
829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
830 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
831 public override bool Equals(object other) {
832 return Equals(other as SetCoverSolutionResponse);
833 }
834
835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
837 public bool Equals(SetCoverSolutionResponse other) {
838 if (ReferenceEquals(other, null)) {
839 return false;
840 }
841 if (ReferenceEquals(other, this)) {
842 return true;
843 }
844 if (Status != other.Status) return false;
845 if (NumSubsets != other.NumSubsets) return false;
846 if(!subset_.Equals(other.subset_)) return false;
847 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Cost, other.Cost)) return false;
848 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CostLowerBound, other.CostLowerBound)) return false;
849 if (!object.Equals(Fingerprint, other.Fingerprint)) return false;
850 if (!object.Equals(ModelFingerprint, other.ModelFingerprint)) return false;
851 return Equals(_unknownFields, other._unknownFields);
852 }
853
854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
855 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
856 public override int GetHashCode() {
857 int hash = 1;
858 if (HasStatus) hash ^= Status.GetHashCode();
859 if (HasNumSubsets) hash ^= NumSubsets.GetHashCode();
860 hash ^= subset_.GetHashCode();
861 if (HasCost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Cost);
862 if (HasCostLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CostLowerBound);
863 if (fingerprint_ != null) hash ^= Fingerprint.GetHashCode();
864 if (modelFingerprint_ != null) hash ^= ModelFingerprint.GetHashCode();
865 if (_unknownFields != null) {
866 hash ^= _unknownFields.GetHashCode();
867 }
868 return hash;
869 }
870
871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
872 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
873 public override string ToString() {
874 return pb::JsonFormatter.ToDiagnosticString(this);
875 }
876
877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
879 public void WriteTo(pb::CodedOutputStream output) {
880 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
881 output.WriteRawMessage(this);
882 #else
883 if (HasStatus) {
884 output.WriteRawTag(8);
885 output.WriteEnum((int) Status);
886 }
887 if (HasNumSubsets) {
888 output.WriteRawTag(16);
889 output.WriteInt32(NumSubsets);
890 }
891 subset_.WriteTo(output, _repeated_subset_codec);
892 if (HasCost) {
893 output.WriteRawTag(33);
894 output.WriteDouble(Cost);
895 }
896 if (HasCostLowerBound) {
897 output.WriteRawTag(41);
898 output.WriteDouble(CostLowerBound);
899 }
900 if (fingerprint_ != null) {
901 output.WriteRawTag(50);
902 output.WriteMessage(Fingerprint);
903 }
904 if (modelFingerprint_ != null) {
905 output.WriteRawTag(58);
906 output.WriteMessage(ModelFingerprint);
907 }
908 if (_unknownFields != null) {
909 _unknownFields.WriteTo(output);
910 }
911 #endif
912 }
913
914 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
917 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
918 if (HasStatus) {
919 output.WriteRawTag(8);
920 output.WriteEnum((int) Status);
921 }
922 if (HasNumSubsets) {
923 output.WriteRawTag(16);
924 output.WriteInt32(NumSubsets);
925 }
926 subset_.WriteTo(ref output, _repeated_subset_codec);
927 if (HasCost) {
928 output.WriteRawTag(33);
929 output.WriteDouble(Cost);
930 }
931 if (HasCostLowerBound) {
932 output.WriteRawTag(41);
933 output.WriteDouble(CostLowerBound);
934 }
935 if (fingerprint_ != null) {
936 output.WriteRawTag(50);
937 output.WriteMessage(Fingerprint);
938 }
939 if (modelFingerprint_ != null) {
940 output.WriteRawTag(58);
941 output.WriteMessage(ModelFingerprint);
942 }
943 if (_unknownFields != null) {
944 _unknownFields.WriteTo(ref output);
945 }
946 }
947 #endif
948
949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
950 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
951 public int CalculateSize() {
952 int size = 0;
953 if (HasStatus) {
954 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
955 }
956 if (HasNumSubsets) {
957 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumSubsets);
958 }
959 size += subset_.CalculateSize(_repeated_subset_codec);
960 if (HasCost) {
961 size += 1 + 8;
962 }
963 if (HasCostLowerBound) {
964 size += 1 + 8;
965 }
966 if (fingerprint_ != null) {
967 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fingerprint);
968 }
969 if (modelFingerprint_ != null) {
970 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelFingerprint);
971 }
972 if (_unknownFields != null) {
973 size += _unknownFields.CalculateSize();
974 }
975 return size;
976 }
977
978 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
979 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
981 if (other == null) {
982 return;
983 }
984 if (other.HasStatus) {
985 Status = other.Status;
986 }
987 if (other.HasNumSubsets) {
988 NumSubsets = other.NumSubsets;
989 }
990 subset_.Add(other.subset_);
991 if (other.HasCost) {
992 Cost = other.Cost;
993 }
994 if (other.HasCostLowerBound) {
996 }
997 if (other.fingerprint_ != null) {
998 if (fingerprint_ == null) {
999 Fingerprint = new global::Google.OrTools.Util.Int128();
1000 }
1001 Fingerprint.MergeFrom(other.Fingerprint);
1002 }
1003 if (other.modelFingerprint_ != null) {
1004 if (modelFingerprint_ == null) {
1005 ModelFingerprint = new global::Google.OrTools.Util.Int128();
1006 }
1007 ModelFingerprint.MergeFrom(other.ModelFingerprint);
1008 }
1009 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1010 }
1011
1012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1014 public void MergeFrom(pb::CodedInputStream input) {
1015 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1016 input.ReadRawMessage(this);
1017 #else
1018 uint tag;
1019 while ((tag = input.ReadTag()) != 0) {
1020 if ((tag & 7) == 4) {
1021 // Abort on any end group tag.
1022 return;
1023 }
1024 switch(tag) {
1025 default:
1026 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1027 break;
1028 case 8: {
1029 Status = (global::OperationsResearch.SetCoverSolutionResponse.Types.Status) input.ReadEnum();
1030 break;
1031 }
1032 case 16: {
1033 NumSubsets = input.ReadInt32();
1034 break;
1035 }
1036 case 26:
1037 case 24: {
1038 subset_.AddEntriesFrom(input, _repeated_subset_codec);
1039 break;
1040 }
1041 case 33: {
1042 Cost = input.ReadDouble();
1043 break;
1044 }
1045 case 41: {
1046 CostLowerBound = input.ReadDouble();
1047 break;
1048 }
1049 case 50: {
1050 if (fingerprint_ == null) {
1051 Fingerprint = new global::Google.OrTools.Util.Int128();
1052 }
1053 input.ReadMessage(Fingerprint);
1054 break;
1055 }
1056 case 58: {
1057 if (modelFingerprint_ == null) {
1058 ModelFingerprint = new global::Google.OrTools.Util.Int128();
1059 }
1060 input.ReadMessage(ModelFingerprint);
1061 break;
1062 }
1063 }
1064 }
1065 #endif
1066 }
1067
1068 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1070 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1071 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1072 uint tag;
1073 while ((tag = input.ReadTag()) != 0) {
1074 if ((tag & 7) == 4) {
1075 // Abort on any end group tag.
1076 return;
1077 }
1078 switch(tag) {
1079 default:
1080 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1081 break;
1082 case 8: {
1083 Status = (global::OperationsResearch.SetCoverSolutionResponse.Types.Status) input.ReadEnum();
1084 break;
1085 }
1086 case 16: {
1087 NumSubsets = input.ReadInt32();
1088 break;
1089 }
1090 case 26:
1091 case 24: {
1092 subset_.AddEntriesFrom(ref input, _repeated_subset_codec);
1093 break;
1094 }
1095 case 33: {
1096 Cost = input.ReadDouble();
1097 break;
1098 }
1099 case 41: {
1100 CostLowerBound = input.ReadDouble();
1101 break;
1102 }
1103 case 50: {
1104 if (fingerprint_ == null) {
1105 Fingerprint = new global::Google.OrTools.Util.Int128();
1106 }
1107 input.ReadMessage(Fingerprint);
1108 break;
1109 }
1110 case 58: {
1111 if (modelFingerprint_ == null) {
1112 ModelFingerprint = new global::Google.OrTools.Util.Int128();
1113 }
1114 input.ReadMessage(ModelFingerprint);
1115 break;
1116 }
1117 }
1118 }
1119 }
1120 #endif
1121
1122 #region Nested types
1124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1125 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1126 public static partial class Types {
1130 public enum Status {
1134 [pbr::OriginalName("UNDEFINED")] Undefined = 0,
1138 [pbr::OriginalName("OPTIMAL")] Optimal = 1,
1143 [pbr::OriginalName("FEASIBLE")] Feasible = 2,
1147 [pbr::OriginalName("INFEASIBLE")] Infeasible = 3,
1151 [pbr::OriginalName("INVALID")] Invalid = 4,
1152 }
1153
1154 }
1155 #endregion
1156
1157 }
1158
1159 #endregion
1160
1161}
1162
1163#endregion Designer generated code
global::Google.Protobuf pb
Definition SetCover.pb.cs:8
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Definition SetCover.pb.cs:9
bool HasCost
Gets whether the "cost" field is set.
static pbr::MessageDescriptor Descriptor
void WriteTo(pb::CodedOutputStream output)
static pb::MessageParser< Subset > Parser
const int ElementFieldNumber
Field number for the "element" field.
const int CostFieldNumber
Field number for the "cost" field.
void ClearCost()
Clears the value of the "cost" field.
pbc::RepeatedField< int > Element
The list of elements in the subset.
double Cost
The cost for using the given subset.
void MergeFrom(pb::CodedInputStream input)
Container for nested types declared in the SetCoverProto message type.
string Name
A user-defined name for the model.
SetCoverProto(SetCoverProto other)
override bool Equals(object other)
void MergeFrom(SetCoverProto other)
bool Equals(SetCoverProto other)
static pbr::MessageDescriptor Descriptor
static pb::MessageParser< SetCoverProto > Parser
void ClearName()
Clears the value of the "name" field.
const int SubsetFieldNumber
Field number for the "subset" field.
const int FingerprintFieldNumber
Field number for the "fingerprint" field.
void WriteTo(pb::CodedOutputStream output)
const int NameFieldNumber
Field number for the "name" field.
bool HasName
Gets whether the "name" field is set.
global::Google.OrTools.Util.Int128 Fingerprint
An automatically fingerprint for the model.
void MergeFrom(pb::CodedInputStream input)
pbc::RepeatedField< global::OperationsResearch.SetCoverProto.Types.Subset > Subset
The list of subsets in the model.
Holder for reflection information generated from ortools/algorithms/set_cover.proto.
static pbr::FileDescriptor Descriptor
File descriptor for ortools/algorithms/set_cover.proto.
Container for nested types declared in the SetCoverSolutionResponse message type.
@ Infeasible
The model does not have any solution.
@ Feasible
The solver had enough time to find some solution that satisfied all constraints, but it did not reach...
@ Optimal
The solver found the proven optimal solution.
void WriteTo(pb::CodedOutputStream output)
const int NumSubsetsFieldNumber
Field number for the "num_subsets" field.
void ClearNumSubsets()
Clears the value of the "num_subsets" field.
static pb::MessageParser< SetCoverSolutionResponse > Parser
const int CostFieldNumber
Field number for the "cost" field.
const int CostLowerBoundFieldNumber
Field number for the "cost_lower_bound" field.
static pbr::MessageDescriptor Descriptor
bool Equals(SetCoverSolutionResponse other)
const int FingerprintFieldNumber
Field number for the "fingerprint" field.
bool HasStatus
Gets whether the "status" field is set.
const int StatusFieldNumber
Field number for the "status" field.
void MergeFrom(SetCoverSolutionResponse other)
const int SubsetFieldNumber
Field number for the "subset" field.
void MergeFrom(pb::CodedInputStream input)
double Cost
The cost of the solution, as computed by the algorithm.
double CostLowerBound
A lower bound of the solution, as computed by the algorithm.
bool HasCost
Gets whether the "cost" field is set.
const int ModelFingerprintFieldNumber
Field number for the "model_fingerprint" field.
void ClearCost()
Clears the value of the "cost" field.
global::OperationsResearch.SetCoverSolutionResponse.Types.Status Status
For future use.
int NumSubsets
The number of subsets that are selected in the solution. This is used to decompress their indices bel...
pbc::RepeatedField< int > Subset
The list of the subsets selected in the solution.
void ClearStatus()
Clears the value of the "status" field.
SetCoverSolutionResponse(SetCoverSolutionResponse other)
void ClearCostLowerBound()
Clears the value of the "cost_lower_bound" field.
global::Google.OrTools.Util.Int128 Fingerprint
An automatically fingerprint for the solution.
global::Google.OrTools.Util.Int128 ModelFingerprint
A reference to the model the solution applies to.
bool HasCostLowerBound
Gets whether the "cost_lower_bound" field is set.
bool HasNumSubsets
Gets whether the "num_subsets" field is set.