59 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
63 private static readonly pb::MessageParser<SetCoverProto> _parser =
new pb::MessageParser<SetCoverProto>(() =>
new SetCoverProto());
64 private pb::UnknownFieldSet _unknownFields;
65 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
67 public static pb::MessageParser<SetCoverProto> Parser {
get {
return _parser; } }
69 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
71 public static pbr::MessageDescriptor Descriptor {
72 get {
return global::OperationsResearch.SetCoverReflection.Descriptor.MessageTypes[0]; }
75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
77 pbr::MessageDescriptor pb::IMessage.Descriptor {
78 get {
return Descriptor; }
81 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
82 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
87 partial
void OnConstruction();
89 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
90 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
92 subset_ = other.subset_.Clone();
94 fingerprint_ = other.fingerprint_ !=
null ? other.fingerprint_.Clone() :
null;
95 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
98 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
99 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
105 public const int SubsetFieldNumber = 1;
106 private static readonly pb::FieldCodec<global::OperationsResearch.
SetCoverProto.Types.Subset> _repeated_subset_codec
108 private readonly pbc::RepeatedField<global::OperationsResearch.SetCoverProto.Types.Subset> subset_ =
new pbc::RepeatedField<global::OperationsResearch.SetCoverProto.Types.Subset>();
112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
114 public pbc::RepeatedField<global::OperationsResearch.SetCoverProto.Types.Subset> Subset {
115 get { return subset_; }
119 public const int NameFieldNumber = 2;
120 private readonly
static string NameDefaultValue =
"";
122 private string name_;
126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
127 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
129 get {
return name_ ?? NameDefaultValue; }
131 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
136 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
137 public bool HasName {
138 get {
return name_ !=
null; }
141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
142 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
148 public const int FingerprintFieldNumber = 3;
149 private global::Google.OrTools.Util.Int128 fingerprint_;
153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
154 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
155 public global::Google.OrTools.Util.Int128 Fingerprint {
156 get { return fingerprint_; }
158 fingerprint_ = value;
162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
163 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
164 public override bool Equals(
object other) {
168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
169 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
171 if (ReferenceEquals(other,
null)) {
174 if (ReferenceEquals(other,
this)) {
177 if(!subset_.Equals(other.subset_))
return false;
178 if (Name != other.
Name)
return false;
179 if (!
object.Equals(Fingerprint, other.
Fingerprint))
return false;
180 return Equals(_unknownFields, other._unknownFields);
183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
184 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
187 hash ^= subset_.GetHashCode();
188 if (HasName) hash ^= Name.GetHashCode();
189 if (fingerprint_ !=
null) hash ^= Fingerprint.GetHashCode();
190 if (_unknownFields !=
null) {
191 hash ^= _unknownFields.GetHashCode();
196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
197 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
199 return pb::JsonFormatter.ToDiagnosticString(
this);
202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
204 public void WriteTo(pb::CodedOutputStream output) {
205 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
206 output.WriteRawMessage(
this);
208 subset_.WriteTo(output, _repeated_subset_codec);
210 output.WriteRawTag(18);
211 output.WriteString(Name);
213 if (fingerprint_ !=
null) {
214 output.WriteRawTag(26);
215 output.WriteMessage(Fingerprint);
217 if (_unknownFields !=
null) {
218 _unknownFields.WriteTo(output);
223 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
225 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
226 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
227 subset_.WriteTo(ref output, _repeated_subset_codec);
229 output.WriteRawTag(18);
230 output.WriteString(Name);
232 if (fingerprint_ !=
null) {
233 output.WriteRawTag(26);
234 output.WriteMessage(Fingerprint);
236 if (_unknownFields !=
null) {
237 _unknownFields.WriteTo(ref output);
242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
243 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
246 size += subset_.CalculateSize(_repeated_subset_codec);
248 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
250 if (fingerprint_ !=
null) {
251 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fingerprint);
253 if (_unknownFields !=
null) {
254 size += _unknownFields.CalculateSize();
259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
260 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
265 subset_.Add(other.subset_);
269 if (other.fingerprint_ !=
null) {
270 if (fingerprint_ ==
null) {
271 Fingerprint =
new global::Google.OrTools.Util.Int128();
275 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
279 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
281 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
282 input.ReadRawMessage(
this);
285 while ((tag = input.ReadTag()) != 0) {
288 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
291 subset_.AddEntriesFrom(input, _repeated_subset_codec);
295 Name = input.ReadString();
299 if (fingerprint_ ==
null) {
300 Fingerprint =
new global::Google.OrTools.Util.Int128();
302 input.ReadMessage(Fingerprint);
310 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
312 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
313 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
315 while ((tag = input.ReadTag()) != 0) {
318 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
321 subset_.AddEntriesFrom(ref input, _repeated_subset_codec);
325 Name = input.ReadString();
329 if (fingerprint_ ==
null) {
330 Fingerprint =
new global::Google.OrTools.Util.Int128();
332 input.ReadMessage(Fingerprint);
342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
343 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
345 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
346 public sealed partial class Subset : pb::IMessage<Subset>
347 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
351 private static readonly pb::MessageParser<Subset> _parser =
new pb::MessageParser<Subset>(() =>
new Subset());
352 private pb::UnknownFieldSet _unknownFields;
353 private int _hasBits0;
354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
355 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
356 public static pb::MessageParser<Subset> Parser {
get {
return _parser; } }
358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
359 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
360 public static pbr::MessageDescriptor Descriptor {
361 get {
return global::OperationsResearch.SetCoverProto.Descriptor.NestedTypes[0]; }
364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
366 pbr::MessageDescriptor pb::IMessage.Descriptor {
367 get {
return Descriptor; }
370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
371 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
376 partial
void OnConstruction();
378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
379 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
381 _hasBits0 = other._hasBits0;
383 element_ = other.element_.Clone();
384 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
388 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
394 public const int CostFieldNumber = 1;
395 private readonly
static double CostDefaultValue = 0D;
397 private double cost_;
401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
402 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
404 get {
if ((_hasBits0 & 1) != 0) {
return cost_; }
else {
return CostDefaultValue; } }
411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
412 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
413 public bool HasCost {
414 get {
return (_hasBits0 & 1) != 0; }
417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
418 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
424 public const int ElementFieldNumber = 2;
425 private static readonly pb::FieldCodec<int> _repeated_element_codec
426 = pb::FieldCodec.ForInt32(18);
427 private readonly pbc::RepeatedField<int> element_ =
new pbc::RepeatedField<int>();
431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
432 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
433 public pbc::RepeatedField<int> Element {
434 get {
return element_; }
437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
438 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
439 public override bool Equals(
object other) {
440 return Equals(other as
Subset);
443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
444 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
446 if (ReferenceEquals(other,
null)) {
449 if (ReferenceEquals(other,
this)) {
452 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Cost, other.
Cost))
return false;
453 if(!element_.Equals(other.element_))
return false;
454 return Equals(_unknownFields, other._unknownFields);
457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
458 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
461 if (HasCost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Cost);
462 hash ^= element_.GetHashCode();
463 if (_unknownFields !=
null) {
464 hash ^= _unknownFields.GetHashCode();
469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
472 return pb::JsonFormatter.ToDiagnosticString(
this);
475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
476 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
477 public void WriteTo(pb::CodedOutputStream output) {
478 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
479 output.WriteRawMessage(
this);
482 output.WriteRawTag(9);
483 output.WriteDouble(Cost);
485 element_.WriteTo(output, _repeated_element_codec);
486 if (_unknownFields !=
null) {
487 _unknownFields.WriteTo(output);
492 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
494 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
495 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
497 output.WriteRawTag(9);
498 output.WriteDouble(Cost);
500 element_.WriteTo(ref output, _repeated_element_codec);
501 if (_unknownFields !=
null) {
502 _unknownFields.WriteTo(ref output);
507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
514 size += element_.CalculateSize(_repeated_element_codec);
515 if (_unknownFields !=
null) {
516 size += _unknownFields.CalculateSize();
521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
522 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
530 element_.Add(other.element_);
531 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
535 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
537 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
538 input.ReadRawMessage(
this);
541 while ((tag = input.ReadTag()) != 0) {
544 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
547 Cost = input.ReadDouble();
552 element_.AddEntriesFrom(input, _repeated_element_codec);
560 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
562 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
563 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
565 while ((tag = input.ReadTag()) != 0) {
568 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
571 Cost = input.ReadDouble();
576 element_.AddEntriesFrom(ref input, _repeated_element_codec);
593 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
597 private static readonly pb::MessageParser<SetCoverSolutionResponse> _parser =
new pb::MessageParser<SetCoverSolutionResponse>(() =>
new SetCoverSolutionResponse());
598 private pb::UnknownFieldSet _unknownFields;
599 private int _hasBits0;
600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
601 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
602 public static pb::MessageParser<SetCoverSolutionResponse> Parser {
get {
return _parser; } }
604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
605 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
606 public static pbr::MessageDescriptor Descriptor {
607 get {
return global::OperationsResearch.SetCoverReflection.Descriptor.MessageTypes[1]; }
610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
611 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
612 pbr::MessageDescriptor pb::IMessage.Descriptor {
613 get {
return Descriptor; }
616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
617 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
622 partial
void OnConstruction();
624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
625 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
627 _hasBits0 = other._hasBits0;
628 status_ = other.status_;
629 numSubsets_ = other.numSubsets_;
630 subset_ = other.subset_.Clone();
632 costLowerBound_ = other.costLowerBound_;
633 fingerprint_ = other.fingerprint_ !=
null ? other.fingerprint_.Clone() :
null;
634 modelFingerprint_ = other.modelFingerprint_ !=
null ? other.modelFingerprint_.Clone() :
null;
635 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
639 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
645 public const int StatusFieldNumber = 1;
646 private readonly
static global::OperationsResearch.
SetCoverSolutionResponse.Types.Status StatusDefaultValue = global::OperationsResearch.SetCoverSolutionResponse.Types.Status.Undefined;
648 private global::OperationsResearch.SetCoverSolutionResponse.Types.Status status_;
652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
653 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
655 get { if ((_hasBits0 & 1) != 0) { return status_; } else { return StatusDefaultValue; } }
662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
663 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
664 public bool HasStatus {
665 get {
return (_hasBits0 & 1) != 0; }
668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
669 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
675 public const int NumSubsetsFieldNumber = 2;
676 private readonly
static int NumSubsetsDefaultValue = 0;
678 private int numSubsets_;
683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
685 public int NumSubsets {
686 get {
if ((_hasBits0 & 2) != 0) {
return numSubsets_; }
else {
return NumSubsetsDefaultValue; } }
693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
694 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
695 public bool HasNumSubsets {
696 get {
return (_hasBits0 & 2) != 0; }
699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
700 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
706 public const int SubsetFieldNumber = 3;
707 private static readonly pb::FieldCodec<int> _repeated_subset_codec
708 = pb::FieldCodec.ForInt32(26);
709 private readonly pbc::RepeatedField<int> subset_ =
new pbc::RepeatedField<int>();
713 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
714 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
715 public pbc::RepeatedField<int> Subset {
716 get {
return subset_; }
720 public const int CostFieldNumber = 4;
721 private readonly
static double CostDefaultValue = 0D;
723 private double cost_;
727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
728 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
730 get {
if ((_hasBits0 & 4) != 0) {
return cost_; }
else {
return CostDefaultValue; } }
737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
738 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
739 public bool HasCost {
740 get {
return (_hasBits0 & 4) != 0; }
743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
744 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
750 public const int CostLowerBoundFieldNumber = 5;
751 private readonly
static double CostLowerBoundDefaultValue = 0D;
753 private double costLowerBound_;
757 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
758 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
759 public double CostLowerBound {
760 get {
if ((_hasBits0 & 8) != 0) {
return costLowerBound_; }
else {
return CostLowerBoundDefaultValue; } }
763 costLowerBound_ = value;
767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
768 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
769 public bool HasCostLowerBound {
770 get {
return (_hasBits0 & 8) != 0; }
773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
774 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
780 public const int FingerprintFieldNumber = 6;
781 private global::Google.OrTools.Util.Int128 fingerprint_;
785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
786 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
787 public global::Google.OrTools.Util.Int128 Fingerprint {
788 get {
return fingerprint_; }
790 fingerprint_ = value;
795 public const int ModelFingerprintFieldNumber = 7;
796 private global::Google.OrTools.Util.Int128 modelFingerprint_;
800 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
801 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
802 public global::Google.OrTools.Util.Int128 ModelFingerprint {
803 get {
return modelFingerprint_; }
805 modelFingerprint_ = value;
809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
810 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
811 public override bool Equals(
object other) {
815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
816 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
818 if (ReferenceEquals(other,
null)) {
821 if (ReferenceEquals(other,
this)) {
824 if (Status != other.
Status)
return false;
825 if (NumSubsets != other.
NumSubsets)
return false;
826 if(!subset_.Equals(other.subset_))
return false;
827 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Cost, other.
Cost))
return false;
828 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(CostLowerBound, other.
CostLowerBound))
return false;
829 if (!
object.Equals(Fingerprint, other.
Fingerprint))
return false;
831 return Equals(_unknownFields, other._unknownFields);
834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
835 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
838 if (HasStatus) hash ^= Status.GetHashCode();
839 if (HasNumSubsets) hash ^= NumSubsets.GetHashCode();
840 hash ^= subset_.GetHashCode();
841 if (HasCost) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Cost);
842 if (HasCostLowerBound) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(CostLowerBound);
843 if (fingerprint_ !=
null) hash ^= Fingerprint.GetHashCode();
844 if (modelFingerprint_ !=
null) hash ^= ModelFingerprint.GetHashCode();
845 if (_unknownFields !=
null) {
846 hash ^= _unknownFields.GetHashCode();
851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
852 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
854 return pb::JsonFormatter.ToDiagnosticString(
this);
857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
858 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
859 public void WriteTo(pb::CodedOutputStream output) {
860 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
861 output.WriteRawMessage(
this);
864 output.WriteRawTag(8);
865 output.WriteEnum((
int) Status);
868 output.WriteRawTag(16);
869 output.WriteInt32(NumSubsets);
871 subset_.WriteTo(output, _repeated_subset_codec);
873 output.WriteRawTag(33);
874 output.WriteDouble(Cost);
876 if (HasCostLowerBound) {
877 output.WriteRawTag(41);
878 output.WriteDouble(CostLowerBound);
880 if (fingerprint_ !=
null) {
881 output.WriteRawTag(50);
882 output.WriteMessage(Fingerprint);
884 if (modelFingerprint_ !=
null) {
885 output.WriteRawTag(58);
886 output.WriteMessage(ModelFingerprint);
888 if (_unknownFields !=
null) {
889 _unknownFields.WriteTo(output);
894 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
896 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
897 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
899 output.WriteRawTag(8);
900 output.WriteEnum((
int) Status);
903 output.WriteRawTag(16);
904 output.WriteInt32(NumSubsets);
906 subset_.WriteTo(ref output, _repeated_subset_codec);
908 output.WriteRawTag(33);
909 output.WriteDouble(Cost);
911 if (HasCostLowerBound) {
912 output.WriteRawTag(41);
913 output.WriteDouble(CostLowerBound);
915 if (fingerprint_ !=
null) {
916 output.WriteRawTag(50);
917 output.WriteMessage(Fingerprint);
919 if (modelFingerprint_ !=
null) {
920 output.WriteRawTag(58);
921 output.WriteMessage(ModelFingerprint);
923 if (_unknownFields !=
null) {
924 _unknownFields.WriteTo(ref output);
929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
930 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
934 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Status);
937 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumSubsets);
939 size += subset_.CalculateSize(_repeated_subset_codec);
943 if (HasCostLowerBound) {
946 if (fingerprint_ !=
null) {
947 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fingerprint);
949 if (modelFingerprint_ !=
null) {
950 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ModelFingerprint);
952 if (_unknownFields !=
null) {
953 size += _unknownFields.CalculateSize();
958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
959 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
970 subset_.Add(other.subset_);
977 if (other.fingerprint_ !=
null) {
978 if (fingerprint_ ==
null) {
979 Fingerprint =
new global::Google.OrTools.Util.Int128();
983 if (other.modelFingerprint_ !=
null) {
984 if (modelFingerprint_ ==
null) {
985 ModelFingerprint =
new global::Google.OrTools.Util.Int128();
989 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
993 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
995 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
996 input.ReadRawMessage(
this);
999 while ((tag = input.ReadTag()) != 0) {
1002 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1005 Status = (global::OperationsResearch.SetCoverSolutionResponse.Types.Status) input.ReadEnum();
1009 NumSubsets = input.ReadInt32();
1014 subset_.AddEntriesFrom(input, _repeated_subset_codec);
1018 Cost = input.ReadDouble();
1022 CostLowerBound = input.ReadDouble();
1026 if (fingerprint_ ==
null) {
1027 Fingerprint =
new global::Google.OrTools.Util.Int128();
1029 input.ReadMessage(Fingerprint);
1033 if (modelFingerprint_ ==
null) {
1034 ModelFingerprint =
new global::Google.OrTools.Util.Int128();
1036 input.ReadMessage(ModelFingerprint);
1044 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1047 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1049 while ((tag = input.ReadTag()) != 0) {
1052 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1055 Status = (global::OperationsResearch.SetCoverSolutionResponse.Types.Status) input.ReadEnum();
1059 NumSubsets = input.ReadInt32();
1064 subset_.AddEntriesFrom(ref input, _repeated_subset_codec);
1068 Cost = input.ReadDouble();
1072 CostLowerBound = input.ReadDouble();
1076 if (fingerprint_ ==
null) {
1077 Fingerprint =
new global::Google.OrTools.Util.Int128();
1079 input.ReadMessage(Fingerprint);
1083 if (modelFingerprint_ ==
null) {
1084 ModelFingerprint =
new global::Google.OrTools.Util.Int128();
1086 input.ReadMessage(ModelFingerprint);
1094 #region Nested types
1096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1097 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1106 [pbr::OriginalName(
"UNDEFINED")] Undefined = 0,
1110 [pbr::OriginalName(
"OPTIMAL")] Optimal = 1,
1115 [pbr::OriginalName(
"FEASIBLE")] Feasible = 2,
1119 [pbr::OriginalName(
"INFEASIBLE")] Infeasible = 3,
1123 [pbr::OriginalName(
"INVALID")] Invalid = 4,