5#pragma warning disable 1591, 0612, 3021, 8981
6#region Designer generated code
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
20 get {
return descriptor; }
22 private static pbr::FileDescriptor descriptor;
25 byte[] descriptorData = global::System.Convert.FromBase64String(
27 "CiFvcnRvb2xzL3NhdC9ib29sZWFuX3Byb2JsZW0ucHJvdG8SF29wZXJhdGlv",
28 "bnNfcmVzZWFyY2guc2F0InsKF0xpbmVhckJvb2xlYW5Db25zdHJhaW50EhAK",
29 "CGxpdGVyYWxzGAEgAygFEhQKDGNvZWZmaWNpZW50cxgCIAMoAxITCgtsb3dl",
30 "cl9ib3VuZBgDIAEoAxITCgt1cHBlcl9ib3VuZBgEIAEoAxIOCgRuYW1lGAUg",
31 "ASgJOgAiZwoPTGluZWFyT2JqZWN0aXZlEhAKCGxpdGVyYWxzGAEgAygFEhQK",
32 "DGNvZWZmaWNpZW50cxgCIAMoAxIRCgZvZmZzZXQYAyABKAE6ATASGQoOc2Nh",
33 "bGluZ19mYWN0b3IYBCABKAE6ATEiJQoRQm9vbGVhbkFzc2lnbm1lbnQSEAoI",
34 "bGl0ZXJhbHMYASADKAUitAIKFExpbmVhckJvb2xlYW5Qcm9ibGVtEg4KBG5h",
35 "bWUYASABKAk6ABIVCg1udW1fdmFyaWFibGVzGAMgASgFEkUKC2NvbnN0cmFp",
36 "bnRzGAQgAygLMjAub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuTGluZWFyQm9v",
37 "bGVhbkNvbnN0cmFpbnQSOwoJb2JqZWN0aXZlGAUgASgLMigub3BlcmF0aW9u",
38 "c19yZXNlYXJjaC5zYXQuTGluZWFyT2JqZWN0aXZlEhEKCXZhcl9uYW1lcxgG",
39 "IAMoCRI+Cgphc3NpZ25tZW50GAcgASgLMioub3BlcmF0aW9uc19yZXNlYXJj",
40 "aC5zYXQuQm9vbGVhbkFzc2lnbm1lbnQSHgoWb3JpZ2luYWxfbnVtX3Zhcmlh",
41 "YmxlcxgIIAEoBUIvChZjb20uZ29vZ2xlLm9ydG9vbHMuc2F0UAGqAhJHb29n",
42 "bGUuT3JUb29scy5TYXQ="));
43 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
44 new pbr::FileDescriptor[] { },
45 new pbr::GeneratedClrTypeInfo(
null,
null,
new pbr::GeneratedClrTypeInfo[] {
46 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearBooleanConstraint), global::Google.OrTools.Sat.LinearBooleanConstraint.Parser,
new[]{
"Literals",
"Coefficients",
"LowerBound",
"UpperBound",
"Name" },
null,
null,
null,
null),
47 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearObjective), global::Google.OrTools.Sat.LinearObjective.Parser,
new[]{
"Literals",
"Coefficients",
"Offset",
"ScalingFactor" },
null,
null,
null,
null),
48 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.BooleanAssignment), global::Google.OrTools.Sat.BooleanAssignment.Parser,
new[]{
"Literals" },
null,
null,
null,
null),
49 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearBooleanProblem), global::Google.OrTools.Sat.LinearBooleanProblem.Parser,
new[]{
"Name",
"NumVariables",
"Constraints",
"Objective",
"VarNames",
"Assignment",
"OriginalNumVariables" },
null,
null,
null,
null)
62 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
64 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
68 private static readonly pb::MessageParser<LinearBooleanConstraint> _parser =
new pb::MessageParser<LinearBooleanConstraint>(() =>
new LinearBooleanConstraint());
69 private pb::UnknownFieldSet _unknownFields;
70 private int _hasBits0;
71 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
72 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
73 public static pb::MessageParser<LinearBooleanConstraint>
Parser {
get {
return _parser; } }
75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
78 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[0]; }
81 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
82 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
83 pbr::MessageDescriptor pb::IMessage.Descriptor {
87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
88 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
93 partial
void OnConstruction();
95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
98 _hasBits0 = other._hasBits0;
99 literals_ = other.literals_.Clone();
100 coefficients_ = other.coefficients_.Clone();
101 lowerBound_ = other.lowerBound_;
102 upperBound_ = other.upperBound_;
104 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
115 private static readonly pb::FieldCodec<int> _repeated_literals_codec
116 = pb::FieldCodec.ForInt32(8);
117 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
130 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
131 public pbc::RepeatedField<int>
Literals {
132 get {
return literals_; }
137 private static readonly pb::FieldCodec<long> _repeated_coefficients_codec
138 = pb::FieldCodec.ForInt64(16);
139 private readonly pbc::RepeatedField<long> coefficients_ =
new pbc::RepeatedField<long>();
140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
143 get {
return coefficients_; }
148 private readonly
static long LowerBoundDefaultValue = 0L;
150 private long lowerBound_;
156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
157 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
159 get {
if ((_hasBits0 & 1) != 0) {
return lowerBound_; }
else {
return LowerBoundDefaultValue; } }
166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
167 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
169 get {
return (_hasBits0 & 1) != 0; }
172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
173 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
180 private readonly
static long UpperBoundDefaultValue = 0L;
182 private long upperBound_;
183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
184 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
186 get {
if ((_hasBits0 & 2) != 0) {
return upperBound_; }
else {
return UpperBoundDefaultValue; } }
193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
194 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
196 get {
return (_hasBits0 & 2) != 0; }
199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
200 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
207 private readonly
static string NameDefaultValue =
"";
209 private string name_;
213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
214 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
216 get {
return name_ ?? NameDefaultValue; }
218 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
222 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
223 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
225 get {
return name_ !=
null; }
228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
229 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
235 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
236 public override bool Equals(
object other) {
240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
241 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
243 if (ReferenceEquals(other,
null)) {
246 if (ReferenceEquals(other,
this)) {
249 if(!literals_.Equals(other.literals_))
return false;
250 if(!coefficients_.Equals(other.coefficients_))
return false;
253 if (
Name != other.
Name)
return false;
254 return Equals(_unknownFields, other._unknownFields);
257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
258 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
261 hash ^= literals_.GetHashCode();
262 hash ^= coefficients_.GetHashCode();
266 if (_unknownFields !=
null) {
267 hash ^= _unknownFields.GetHashCode();
272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
273 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
275 return pb::JsonFormatter.ToDiagnosticString(
this);
278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
279 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
280 public void WriteTo(pb::CodedOutputStream output) {
281 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
282 output.WriteRawMessage(
this);
284 literals_.WriteTo(output, _repeated_literals_codec);
285 coefficients_.WriteTo(output, _repeated_coefficients_codec);
287 output.WriteRawTag(24);
291 output.WriteRawTag(32);
295 output.WriteRawTag(42);
296 output.WriteString(
Name);
298 if (_unknownFields !=
null) {
299 _unknownFields.WriteTo(output);
304 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
306 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
307 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
308 literals_.WriteTo(ref output, _repeated_literals_codec);
309 coefficients_.WriteTo(ref output, _repeated_coefficients_codec);
311 output.WriteRawTag(24);
315 output.WriteRawTag(32);
319 output.WriteRawTag(42);
320 output.WriteString(
Name);
322 if (_unknownFields !=
null) {
323 _unknownFields.WriteTo(ref output);
328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
329 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
332 size += literals_.CalculateSize(_repeated_literals_codec);
333 size += coefficients_.CalculateSize(_repeated_coefficients_codec);
335 size += 1 + pb::CodedOutputStream.ComputeInt64Size(
LowerBound);
338 size += 1 + pb::CodedOutputStream.ComputeInt64Size(
UpperBound);
341 size += 1 + pb::CodedOutputStream.ComputeStringSize(
Name);
343 if (_unknownFields !=
null) {
344 size += _unknownFields.CalculateSize();
349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
350 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
355 literals_.Add(other.literals_);
356 coefficients_.Add(other.coefficients_);
357 if (other.HasLowerBound) {
360 if (other.HasUpperBound) {
366 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
370 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
371 public void MergeFrom(pb::CodedInputStream input) {
372 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
373 input.ReadRawMessage(
this);
376 while ((tag = input.ReadTag()) != 0) {
379 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
383 literals_.AddEntriesFrom(input, _repeated_literals_codec);
388 coefficients_.AddEntriesFrom(input, _repeated_coefficients_codec);
400 Name = input.ReadString();
408 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
410 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
411 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
413 while ((tag = input.ReadTag()) != 0) {
416 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
420 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
425 coefficients_.AddEntriesFrom(ref input, _repeated_coefficients_codec);
437 Name = input.ReadString();
450 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
451 public sealed partial class LinearObjective : pb::IMessage<LinearObjective>
452 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
456 private static readonly pb::MessageParser<LinearObjective> _parser =
new pb::MessageParser<LinearObjective>(() =>
new LinearObjective());
457 private pb::UnknownFieldSet _unknownFields;
458 private int _hasBits0;
459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
461 public static pb::MessageParser<LinearObjective>
Parser {
get {
return _parser; } }
463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
464 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
465 public static pbr::MessageDescriptor
Descriptor {
466 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[1]; }
469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
471 pbr::MessageDescriptor pb::IMessage.Descriptor {
475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
476 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
481 partial
void OnConstruction();
483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
486 _hasBits0 = other._hasBits0;
487 literals_ = other.literals_.Clone();
488 coefficients_ = other.coefficients_.Clone();
489 offset_ = other.offset_;
490 scalingFactor_ = other.scalingFactor_;
491 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
495 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
502 private static readonly pb::FieldCodec<int> _repeated_literals_codec
503 = pb::FieldCodec.ForInt32(8);
504 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
514 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
515 public pbc::RepeatedField<int>
Literals {
516 get {
return literals_; }
521 private static readonly pb::FieldCodec<long> _repeated_coefficients_codec
522 = pb::FieldCodec.ForInt64(16);
523 private readonly pbc::RepeatedField<long> coefficients_ =
new pbc::RepeatedField<long>();
524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
525 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
527 get {
return coefficients_; }
532 private readonly
static double OffsetDefaultValue = 0D;
534 private double offset_;
544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
545 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
547 get {
if ((_hasBits0 & 1) != 0) {
return offset_; }
else {
return OffsetDefaultValue; } }
554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
555 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
557 get {
return (_hasBits0 & 1) != 0; }
560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
561 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
568 private readonly
static double ScalingFactorDefaultValue = 1D;
570 private double scalingFactor_;
571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
572 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
574 get {
if ((_hasBits0 & 2) != 0) {
return scalingFactor_; }
else {
return ScalingFactorDefaultValue; } }
577 scalingFactor_ = value;
581 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
582 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
584 get {
return (_hasBits0 & 2) != 0; }
587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
588 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
594 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
595 public override bool Equals(
object other) {
599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
600 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
602 if (ReferenceEquals(other,
null)) {
605 if (ReferenceEquals(other,
this)) {
608 if(!literals_.Equals(other.literals_))
return false;
609 if(!coefficients_.Equals(other.coefficients_))
return false;
610 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(
Offset, other.
Offset))
return false;
612 return Equals(_unknownFields, other._unknownFields);
615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
616 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
619 hash ^= literals_.GetHashCode();
620 hash ^= coefficients_.GetHashCode();
621 if (
HasOffset) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
Offset);
623 if (_unknownFields !=
null) {
624 hash ^= _unknownFields.GetHashCode();
629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
630 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
632 return pb::JsonFormatter.ToDiagnosticString(
this);
635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
636 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
637 public void WriteTo(pb::CodedOutputStream output) {
638 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
639 output.WriteRawMessage(
this);
641 literals_.WriteTo(output, _repeated_literals_codec);
642 coefficients_.WriteTo(output, _repeated_coefficients_codec);
644 output.WriteRawTag(25);
645 output.WriteDouble(
Offset);
648 output.WriteRawTag(33);
651 if (_unknownFields !=
null) {
652 _unknownFields.WriteTo(output);
657 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
659 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
660 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
661 literals_.WriteTo(ref output, _repeated_literals_codec);
662 coefficients_.WriteTo(ref output, _repeated_coefficients_codec);
664 output.WriteRawTag(25);
665 output.WriteDouble(
Offset);
668 output.WriteRawTag(33);
671 if (_unknownFields !=
null) {
672 _unknownFields.WriteTo(ref output);
677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
678 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
681 size += literals_.CalculateSize(_repeated_literals_codec);
682 size += coefficients_.CalculateSize(_repeated_coefficients_codec);
689 if (_unknownFields !=
null) {
690 size += _unknownFields.CalculateSize();
695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
696 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
701 literals_.Add(other.literals_);
702 coefficients_.Add(other.coefficients_);
703 if (other.HasOffset) {
706 if (other.HasScalingFactor) {
709 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
713 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
714 public void MergeFrom(pb::CodedInputStream input) {
715 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
716 input.ReadRawMessage(
this);
719 while ((tag = input.ReadTag()) != 0) {
722 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
726 literals_.AddEntriesFrom(input, _repeated_literals_codec);
731 coefficients_.AddEntriesFrom(input, _repeated_coefficients_codec);
735 Offset = input.ReadDouble();
747 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
749 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
750 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
752 while ((tag = input.ReadTag()) != 0) {
755 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
759 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
764 coefficients_.AddEntriesFrom(ref input, _repeated_coefficients_codec);
768 Offset = input.ReadDouble();
789 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
790 public sealed partial class BooleanAssignment : pb::IMessage<BooleanAssignment>
791 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
795 private static readonly pb::MessageParser<BooleanAssignment> _parser =
new pb::MessageParser<BooleanAssignment>(() =>
new BooleanAssignment());
796 private pb::UnknownFieldSet _unknownFields;
797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
798 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
799 public static pb::MessageParser<BooleanAssignment>
Parser {
get {
return _parser; } }
801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
802 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
804 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[2]; }
807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
808 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
809 pbr::MessageDescriptor pb::IMessage.Descriptor {
813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
814 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
819 partial
void OnConstruction();
821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
822 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
824 literals_ = other.literals_.Clone();
825 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
829 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
836 private static readonly pb::FieldCodec<int> _repeated_literals_codec
837 = pb::FieldCodec.ForInt32(8);
838 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
840 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
841 public pbc::RepeatedField<int>
Literals {
842 get {
return literals_; }
845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
846 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
847 public override bool Equals(
object other) {
851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
852 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
854 if (ReferenceEquals(other,
null)) {
857 if (ReferenceEquals(other,
this)) {
860 if(!literals_.Equals(other.literals_))
return false;
861 return Equals(_unknownFields, other._unknownFields);
864 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
865 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
868 hash ^= literals_.GetHashCode();
869 if (_unknownFields !=
null) {
870 hash ^= _unknownFields.GetHashCode();
875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
876 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
878 return pb::JsonFormatter.ToDiagnosticString(
this);
881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
882 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
883 public void WriteTo(pb::CodedOutputStream output) {
884 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
885 output.WriteRawMessage(
this);
887 literals_.WriteTo(output, _repeated_literals_codec);
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) {
898 literals_.WriteTo(ref output, _repeated_literals_codec);
899 if (_unknownFields !=
null) {
900 _unknownFields.WriteTo(ref output);
905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
906 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
909 size += literals_.CalculateSize(_repeated_literals_codec);
910 if (_unknownFields !=
null) {
911 size += _unknownFields.CalculateSize();
916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
917 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
922 literals_.Add(other.literals_);
923 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
927 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
928 public void MergeFrom(pb::CodedInputStream input) {
929 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
930 input.ReadRawMessage(
this);
933 while ((tag = input.ReadTag()) != 0) {
936 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
940 literals_.AddEntriesFrom(input, _repeated_literals_codec);
948 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
949 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
950 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
951 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
953 while ((tag = input.ReadTag()) != 0) {
956 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
960 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
973 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
974 public sealed partial class LinearBooleanProblem : pb::IMessage<LinearBooleanProblem>
975 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
979 private static readonly pb::MessageParser<LinearBooleanProblem> _parser =
new pb::MessageParser<LinearBooleanProblem>(() =>
new LinearBooleanProblem());
980 private pb::UnknownFieldSet _unknownFields;
981 private int _hasBits0;
982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
983 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
984 public static pb::MessageParser<LinearBooleanProblem>
Parser {
get {
return _parser; } }
986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
987 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
989 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[3]; }
992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
993 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
994 pbr::MessageDescriptor pb::IMessage.Descriptor {
998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
999 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1004 partial
void OnConstruction();
1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1007 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1009 _hasBits0 = other._hasBits0;
1010 name_ = other.name_;
1011 numVariables_ = other.numVariables_;
1012 constraints_ = other.constraints_.Clone();
1013 objective_ = other.objective_ !=
null ? other.objective_.
Clone() :
null;
1014 varNames_ = other.varNames_.Clone();
1015 assignment_ = other.assignment_ !=
null ? other.assignment_.
Clone() :
null;
1016 originalNumVariables_ = other.originalNumVariables_;
1017 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1021 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1028 private readonly
static string NameDefaultValue =
"";
1030 private string name_;
1034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1035 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1036 public string Name {
1037 get {
return name_ ?? NameDefaultValue; }
1039 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
1043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1044 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1046 get {
return name_ !=
null; }
1049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1050 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1057 private readonly
static int NumVariablesDefaultValue = 0;
1059 private int numVariables_;
1065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1066 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1068 get {
if ((_hasBits0 & 1) != 0) {
return numVariables_; }
else {
return NumVariablesDefaultValue; } }
1071 numVariables_ = value;
1075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1076 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1078 get {
return (_hasBits0 & 1) != 0; }
1081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1082 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1089 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearBooleanConstraint> _repeated_constraints_codec
1090 = pb::FieldCodec.ForMessage(34, global::Google.OrTools.Sat.LinearBooleanConstraint.Parser);
1091 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearBooleanConstraint> constraints_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.LinearBooleanConstraint>();
1095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1096 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1097 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearBooleanConstraint>
Constraints {
1098 get { return constraints_; }
1102 public const int ObjectiveFieldNumber = 5;
1103 private global::Google.OrTools.Sat.LinearObjective objective_;
1108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1109 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1110 public global::Google.OrTools.Sat.LinearObjective Objective {
1111 get { return objective_; }
1118 public const int VarNamesFieldNumber = 6;
1119 private static readonly pb::FieldCodec<string> _repeated_varNames_codec
1120 = pb::FieldCodec.ForString(50);
1121 private readonly pbc::RepeatedField<string> varNames_ =
new pbc::RepeatedField<string>();
1127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1128 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1129 public pbc::RepeatedField<string> VarNames {
1130 get {
return varNames_; }
1134 public const int AssignmentFieldNumber = 7;
1135 private global::Google.OrTools.Sat.BooleanAssignment assignment_;
1140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1141 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1142 public global::Google.OrTools.Sat.BooleanAssignment Assignment {
1143 get {
return assignment_; }
1145 assignment_ = value;
1150 public const int OriginalNumVariablesFieldNumber = 8;
1151 private readonly
static int OriginalNumVariablesDefaultValue = 0;
1153 private int originalNumVariables_;
1160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1161 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1162 public int OriginalNumVariables {
1163 get {
if ((_hasBits0 & 2) != 0) {
return originalNumVariables_; }
else {
return OriginalNumVariablesDefaultValue; } }
1166 originalNumVariables_ = value;
1170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1171 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1172 public bool HasOriginalNumVariables {
1173 get {
return (_hasBits0 & 2) != 0; }
1176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1177 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1178 public void ClearOriginalNumVariables() {
1182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1183 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1184 public override bool Equals(
object other) {
1188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1189 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1191 if (ReferenceEquals(other,
null)) {
1194 if (ReferenceEquals(other,
this)) {
1197 if (Name != other.
Name)
return false;
1199 if(!constraints_.Equals(other.constraints_))
return false;
1200 if (!
object.Equals(Objective, other.
Objective))
return false;
1201 if(!varNames_.Equals(other.varNames_))
return false;
1202 if (!
object.Equals(Assignment, other.
Assignment))
return false;
1204 return Equals(_unknownFields, other._unknownFields);
1207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1208 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1209 public override int GetHashCode() {
1211 if (HasName) hash ^= Name.GetHashCode();
1212 if (HasNumVariables) hash ^= NumVariables.GetHashCode();
1213 hash ^= constraints_.GetHashCode();
1214 if (objective_ !=
null) hash ^= Objective.GetHashCode();
1215 hash ^= varNames_.GetHashCode();
1216 if (assignment_ !=
null) hash ^= Assignment.GetHashCode();
1217 if (HasOriginalNumVariables) hash ^= OriginalNumVariables.GetHashCode();
1218 if (_unknownFields !=
null) {
1219 hash ^= _unknownFields.GetHashCode();
1224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1225 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1226 public override string ToString() {
1227 return pb::JsonFormatter.ToDiagnosticString(
this);
1230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1231 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1232 public void WriteTo(pb::CodedOutputStream output) {
1233 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1234 output.WriteRawMessage(
this);
1237 output.WriteRawTag(10);
1238 output.WriteString(Name);
1240 if (HasNumVariables) {
1241 output.WriteRawTag(24);
1242 output.WriteInt32(NumVariables);
1244 constraints_.WriteTo(output, _repeated_constraints_codec);
1245 if (objective_ !=
null) {
1246 output.WriteRawTag(42);
1247 output.WriteMessage(Objective);
1249 varNames_.WriteTo(output, _repeated_varNames_codec);
1250 if (assignment_ !=
null) {
1251 output.WriteRawTag(58);
1252 output.WriteMessage(Assignment);
1254 if (HasOriginalNumVariables) {
1255 output.WriteRawTag(64);
1256 output.WriteInt32(OriginalNumVariables);
1258 if (_unknownFields !=
null) {
1259 _unknownFields.WriteTo(output);
1264 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1266 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1267 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1269 output.WriteRawTag(10);
1270 output.WriteString(Name);
1272 if (HasNumVariables) {
1273 output.WriteRawTag(24);
1274 output.WriteInt32(NumVariables);
1276 constraints_.WriteTo(ref output, _repeated_constraints_codec);
1277 if (objective_ !=
null) {
1278 output.WriteRawTag(42);
1279 output.WriteMessage(Objective);
1281 varNames_.WriteTo(ref output, _repeated_varNames_codec);
1282 if (assignment_ !=
null) {
1283 output.WriteRawTag(58);
1284 output.WriteMessage(Assignment);
1286 if (HasOriginalNumVariables) {
1287 output.WriteRawTag(64);
1288 output.WriteInt32(OriginalNumVariables);
1290 if (_unknownFields !=
null) {
1291 _unknownFields.WriteTo(ref output);
1296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1297 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1298 public int CalculateSize() {
1301 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1303 if (HasNumVariables) {
1304 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumVariables);
1306 size += constraints_.CalculateSize(_repeated_constraints_codec);
1307 if (objective_ !=
null) {
1308 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Objective);
1310 size += varNames_.CalculateSize(_repeated_varNames_codec);
1311 if (assignment_ !=
null) {
1312 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment);
1314 if (HasOriginalNumVariables) {
1315 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OriginalNumVariables);
1317 if (_unknownFields !=
null) {
1318 size += _unknownFields.CalculateSize();
1323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1324 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1325 public void MergeFrom(LinearBooleanProblem other) {
1326 if (other ==
null) {
1329 if (other.HasName) {
1332 if (other.HasNumVariables) {
1333 NumVariables = other.NumVariables;
1335 constraints_.Add(other.constraints_);
1336 if (other.objective_ !=
null) {
1337 if (objective_ ==
null) {
1338 Objective =
new global::Google.OrTools.Sat.LinearObjective();
1340 Objective.MergeFrom(other.Objective);
1342 varNames_.Add(other.varNames_);
1343 if (other.assignment_ !=
null) {
1344 if (assignment_ ==
null) {
1345 Assignment =
new global::Google.OrTools.Sat.BooleanAssignment();
1347 Assignment.MergeFrom(other.Assignment);
1349 if (other.HasOriginalNumVariables) {
1350 OriginalNumVariables = other.OriginalNumVariables;
1352 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1356 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1357 public void MergeFrom(pb::CodedInputStream input) {
1358 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1359 input.ReadRawMessage(
this);
1362 while ((tag = input.ReadTag()) != 0) {
1365 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1368 Name = input.ReadString();
1372 NumVariables = input.ReadInt32();
1376 constraints_.AddEntriesFrom(input, _repeated_constraints_codec);
1380 if (objective_ ==
null) {
1381 Objective =
new global::Google.OrTools.Sat.LinearObjective();
1383 input.ReadMessage(Objective);
1387 varNames_.AddEntriesFrom(input, _repeated_varNames_codec);
1391 if (assignment_ ==
null) {
1392 Assignment =
new global::Google.OrTools.Sat.BooleanAssignment();
1394 input.ReadMessage(Assignment);
1398 OriginalNumVariables = input.ReadInt32();
1406 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1408 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1409 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1411 while ((tag = input.ReadTag()) != 0) {
1414 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1417 Name = input.ReadString();
1421 NumVariables = input.ReadInt32();
1425 constraints_.AddEntriesFrom(ref input, _repeated_constraints_codec);
1429 if (objective_ ==
null) {
1430 Objective =
new global::Google.OrTools.Sat.LinearObjective();
1432 input.ReadMessage(Objective);
1436 varNames_.AddEntriesFrom(ref input, _repeated_varNames_codec);
1440 if (assignment_ ==
null) {
1441 Assignment =
new global::Google.OrTools.Sat.BooleanAssignment();
1443 input.ReadMessage(Assignment);
1447 OriginalNumVariables = input.ReadInt32();
1461#endregion Designer generated code
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
global::Google.Protobuf pb