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;
15 public static partial class BooleanProblemReflection {
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) {
377 if ((tag & 7) == 4) {
383 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
387 literals_.AddEntriesFrom(input, _repeated_literals_codec);
392 coefficients_.AddEntriesFrom(input, _repeated_coefficients_codec);
404 Name = input.ReadString();
412 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
414 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
415 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
417 while ((tag = input.ReadTag()) != 0) {
418 if ((tag & 7) == 4) {
424 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
428 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
433 coefficients_.AddEntriesFrom(ref input, _repeated_coefficients_codec);
445 Name = input.ReadString();
458 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
459 public sealed partial class LinearObjective : pb::IMessage<LinearObjective>
460 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
464 private static readonly pb::MessageParser<LinearObjective> _parser =
new pb::MessageParser<LinearObjective>(() =>
new LinearObjective());
465 private pb::UnknownFieldSet _unknownFields;
466 private int _hasBits0;
467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
469 public static pb::MessageParser<LinearObjective>
Parser {
get {
return _parser; } }
471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
472 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
473 public static pbr::MessageDescriptor
Descriptor {
474 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[1]; }
477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
478 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
479 pbr::MessageDescriptor pb::IMessage.Descriptor {
483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
489 partial
void OnConstruction();
491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
492 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
494 _hasBits0 = other._hasBits0;
495 literals_ = other.literals_.Clone();
496 coefficients_ = other.coefficients_.Clone();
497 offset_ = other.offset_;
498 scalingFactor_ = other.scalingFactor_;
499 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
503 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
510 private static readonly pb::FieldCodec<int> _repeated_literals_codec
511 = pb::FieldCodec.ForInt32(8);
512 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
522 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
523 public pbc::RepeatedField<int>
Literals {
524 get {
return literals_; }
529 private static readonly pb::FieldCodec<long> _repeated_coefficients_codec
530 = pb::FieldCodec.ForInt64(16);
531 private readonly pbc::RepeatedField<long> coefficients_ =
new pbc::RepeatedField<long>();
532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
533 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
535 get {
return coefficients_; }
540 private readonly
static double OffsetDefaultValue = 0D;
542 private double offset_;
552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
553 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
555 get {
if ((_hasBits0 & 1) != 0) {
return offset_; }
else {
return OffsetDefaultValue; } }
562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
563 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
565 get {
return (_hasBits0 & 1) != 0; }
568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
569 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
576 private readonly
static double ScalingFactorDefaultValue = 1D;
578 private double scalingFactor_;
579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
580 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
582 get {
if ((_hasBits0 & 2) != 0) {
return scalingFactor_; }
else {
return ScalingFactorDefaultValue; } }
585 scalingFactor_ = value;
589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
590 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
592 get {
return (_hasBits0 & 2) != 0; }
595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
596 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
601 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
602 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
603 public override bool Equals(
object other) {
607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
608 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
610 if (ReferenceEquals(other,
null)) {
613 if (ReferenceEquals(other,
this)) {
616 if(!literals_.Equals(other.literals_))
return false;
617 if(!coefficients_.Equals(other.coefficients_))
return false;
618 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(
Offset, other.
Offset))
return false;
620 return Equals(_unknownFields, other._unknownFields);
623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
624 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
627 hash ^= literals_.GetHashCode();
628 hash ^= coefficients_.GetHashCode();
629 if (
HasOffset) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(
Offset);
631 if (_unknownFields !=
null) {
632 hash ^= _unknownFields.GetHashCode();
637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
638 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
640 return pb::JsonFormatter.ToDiagnosticString(
this);
643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
644 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
645 public void WriteTo(pb::CodedOutputStream output) {
646 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
647 output.WriteRawMessage(
this);
649 literals_.WriteTo(output, _repeated_literals_codec);
650 coefficients_.WriteTo(output, _repeated_coefficients_codec);
652 output.WriteRawTag(25);
653 output.WriteDouble(
Offset);
656 output.WriteRawTag(33);
659 if (_unknownFields !=
null) {
660 _unknownFields.WriteTo(output);
665 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
667 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
668 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
669 literals_.WriteTo(ref output, _repeated_literals_codec);
670 coefficients_.WriteTo(ref output, _repeated_coefficients_codec);
672 output.WriteRawTag(25);
673 output.WriteDouble(
Offset);
676 output.WriteRawTag(33);
679 if (_unknownFields !=
null) {
680 _unknownFields.WriteTo(ref output);
685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
686 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
689 size += literals_.CalculateSize(_repeated_literals_codec);
690 size += coefficients_.CalculateSize(_repeated_coefficients_codec);
697 if (_unknownFields !=
null) {
698 size += _unknownFields.CalculateSize();
703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
704 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
709 literals_.Add(other.literals_);
710 coefficients_.Add(other.coefficients_);
711 if (other.HasOffset) {
714 if (other.HasScalingFactor) {
717 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
722 public void MergeFrom(pb::CodedInputStream input) {
723 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
724 input.ReadRawMessage(
this);
727 while ((tag = input.ReadTag()) != 0) {
728 if ((tag & 7) == 4) {
734 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
738 literals_.AddEntriesFrom(input, _repeated_literals_codec);
743 coefficients_.AddEntriesFrom(input, _repeated_coefficients_codec);
747 Offset = input.ReadDouble();
759 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
761 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
762 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
764 while ((tag = input.ReadTag()) != 0) {
765 if ((tag & 7) == 4) {
771 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
775 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
780 coefficients_.AddEntriesFrom(ref input, _repeated_coefficients_codec);
784 Offset = input.ReadDouble();
805 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
807 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
811 private static readonly pb::MessageParser<BooleanAssignment> _parser =
new pb::MessageParser<BooleanAssignment>(() =>
new BooleanAssignment());
812 private pb::UnknownFieldSet _unknownFields;
813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
814 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
815 public static pb::MessageParser<BooleanAssignment>
Parser {
get {
return _parser; } }
817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
820 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[2]; }
823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
824 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
825 pbr::MessageDescriptor pb::IMessage.Descriptor {
829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
830 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
835 partial
void OnConstruction();
837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
838 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
840 literals_ = other.literals_.Clone();
841 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
845 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
852 private static readonly pb::FieldCodec<int> _repeated_literals_codec
853 = pb::FieldCodec.ForInt32(8);
854 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
856 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
857 public pbc::RepeatedField<int>
Literals {
858 get {
return literals_; }
861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
862 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
863 public override bool Equals(
object other) {
867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
868 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
870 if (ReferenceEquals(other,
null)) {
873 if (ReferenceEquals(other,
this)) {
876 if(!literals_.Equals(other.literals_))
return false;
877 return Equals(_unknownFields, other._unknownFields);
880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
881 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
884 hash ^= literals_.GetHashCode();
885 if (_unknownFields !=
null) {
886 hash ^= _unknownFields.GetHashCode();
891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
892 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
894 return pb::JsonFormatter.ToDiagnosticString(
this);
897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
898 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
899 public void WriteTo(pb::CodedOutputStream output) {
900 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
901 output.WriteRawMessage(
this);
903 literals_.WriteTo(output, _repeated_literals_codec);
904 if (_unknownFields !=
null) {
905 _unknownFields.WriteTo(output);
910 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
912 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
913 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
914 literals_.WriteTo(ref output, _repeated_literals_codec);
915 if (_unknownFields !=
null) {
916 _unknownFields.WriteTo(ref output);
921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
922 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
925 size += literals_.CalculateSize(_repeated_literals_codec);
926 if (_unknownFields !=
null) {
927 size += _unknownFields.CalculateSize();
932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
933 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
938 literals_.Add(other.literals_);
939 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
943 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
944 public void MergeFrom(pb::CodedInputStream input) {
945 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
946 input.ReadRawMessage(
this);
949 while ((tag = input.ReadTag()) != 0) {
950 if ((tag & 7) == 4) {
956 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
960 literals_.AddEntriesFrom(input, _repeated_literals_codec);
968 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
970 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
971 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
973 while ((tag = input.ReadTag()) != 0) {
974 if ((tag & 7) == 4) {
980 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
984 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
997 [global::System.Diagnostics.DebuggerDisplayAttribute(
"{ToString(),nq}")]
999 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1000 , pb::IBufferMessage
1003 private static readonly pb::MessageParser<LinearBooleanProblem> _parser =
new pb::MessageParser<LinearBooleanProblem>(() =>
new LinearBooleanProblem());
1004 private pb::UnknownFieldSet _unknownFields;
1005 private int _hasBits0;
1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1007 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1008 public static pb::MessageParser<LinearBooleanProblem>
Parser {
get {
return _parser; } }
1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1011 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1013 get {
return global::Google.OrTools.Sat.BooleanProblemReflection.Descriptor.MessageTypes[3]; }
1016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1017 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1018 pbr::MessageDescriptor pb::IMessage.Descriptor {
1022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1023 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1028 partial
void OnConstruction();
1030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1031 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1033 _hasBits0 = other._hasBits0;
1034 name_ = other.name_;
1035 numVariables_ = other.numVariables_;
1036 constraints_ = other.constraints_.Clone();
1037 objective_ = other.objective_ !=
null ? other.objective_.
Clone() :
null;
1038 varNames_ = other.varNames_.Clone();
1039 assignment_ = other.assignment_ !=
null ? other.assignment_.
Clone() :
null;
1040 originalNumVariables_ = other.originalNumVariables_;
1041 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1045 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1052 private readonly
static string NameDefaultValue =
"";
1054 private string name_;
1058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1059 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1060 public string Name {
1061 get {
return name_ ?? NameDefaultValue; }
1063 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1068 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1070 get {
return name_ !=
null; }
1073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1074 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1081 private readonly
static int NumVariablesDefaultValue = 0;
1083 private int numVariables_;
1089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1090 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1092 get {
if ((_hasBits0 & 1) != 0) {
return numVariables_; }
else {
return NumVariablesDefaultValue; } }
1095 numVariables_ = value;
1099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1100 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1102 get {
return (_hasBits0 & 1) != 0; }
1105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1106 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1113 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearBooleanConstraint> _repeated_constraints_codec
1115 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearBooleanConstraint> constraints_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.LinearBooleanConstraint>();
1119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1120 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1121 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearBooleanConstraint>
Constraints {
1122 get { return constraints_; }
1127 private global::Google.OrTools.Sat.LinearObjective objective_;
1132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1133 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1135 get { return objective_; }
1142 public const int VarNamesFieldNumber = 6;
1143 private static readonly pb::FieldCodec<string> _repeated_varNames_codec
1144 = pb::FieldCodec.ForString(50);
1145 private readonly pbc::RepeatedField<string> varNames_ =
new pbc::RepeatedField<string>();
1151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1152 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1153 public pbc::RepeatedField<string>
VarNames {
1154 get {
return varNames_; }
1159 private global::Google.OrTools.Sat.BooleanAssignment assignment_;
1164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1165 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1166 public global::Google.OrTools.Sat.BooleanAssignment
Assignment {
1167 get {
return assignment_; }
1169 assignment_ = value;
1174 public const int OriginalNumVariablesFieldNumber = 8;
1175 private readonly
static int OriginalNumVariablesDefaultValue = 0;
1177 private int originalNumVariables_;
1184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1185 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1187 get {
if ((_hasBits0 & 2) != 0) {
return originalNumVariables_; }
else {
return OriginalNumVariablesDefaultValue; } }
1190 originalNumVariables_ = value;
1194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1195 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1196 public bool HasOriginalNumVariables {
1197 get {
return (_hasBits0 & 2) != 0; }
1200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1201 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1207 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1208 public override bool Equals(
object other) {
1212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1213 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1215 if (ReferenceEquals(other,
null)) {
1218 if (ReferenceEquals(other,
this)) {
1221 if (Name != other.
Name)
return false;
1223 if(!constraints_.Equals(other.constraints_))
return false;
1224 if (!
object.Equals(Objective, other.
Objective))
return false;
1225 if(!varNames_.Equals(other.varNames_))
return false;
1226 if (!
object.Equals(Assignment, other.
Assignment))
return false;
1228 return Equals(_unknownFields, other._unknownFields);
1231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1232 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1233 public override int GetHashCode() {
1235 if (HasName) hash ^= Name.GetHashCode();
1236 if (HasNumVariables) hash ^= NumVariables.GetHashCode();
1237 hash ^= constraints_.GetHashCode();
1238 if (objective_ !=
null) hash ^=
Objective.GetHashCode();
1239 hash ^= varNames_.GetHashCode();
1240 if (assignment_ !=
null) hash ^=
Assignment.GetHashCode();
1242 if (_unknownFields !=
null) {
1243 hash ^= _unknownFields.GetHashCode();
1248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1249 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1250 public override string ToString() {
1251 return pb::JsonFormatter.ToDiagnosticString(
this);
1254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1255 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1256 public void WriteTo(pb::CodedOutputStream output) {
1257 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1258 output.WriteRawMessage(
this);
1261 output.WriteRawTag(10);
1262 output.WriteString(
Name);
1264 if (HasNumVariables) {
1265 output.WriteRawTag(24);
1266 output.WriteInt32(NumVariables);
1268 constraints_.WriteTo(output, _repeated_constraints_codec);
1269 if (objective_ !=
null) {
1270 output.WriteRawTag(42);
1271 output.WriteMessage(Objective);
1273 varNames_.WriteTo(output, _repeated_varNames_codec);
1274 if (assignment_ !=
null) {
1275 output.WriteRawTag(58);
1276 output.WriteMessage(Assignment);
1278 if (HasOriginalNumVariables) {
1279 output.WriteRawTag(64);
1280 output.WriteInt32(OriginalNumVariables);
1282 if (_unknownFields !=
null) {
1283 _unknownFields.WriteTo(output);
1288 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1290 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1291 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1293 output.WriteRawTag(10);
1294 output.WriteString(Name);
1296 if (HasNumVariables) {
1297 output.WriteRawTag(24);
1298 output.WriteInt32(NumVariables);
1300 constraints_.WriteTo(ref output, _repeated_constraints_codec);
1301 if (objective_ !=
null) {
1302 output.WriteRawTag(42);
1303 output.WriteMessage(Objective);
1305 varNames_.WriteTo(ref output, _repeated_varNames_codec);
1306 if (assignment_ !=
null) {
1307 output.WriteRawTag(58);
1308 output.WriteMessage(Assignment);
1310 if (HasOriginalNumVariables) {
1311 output.WriteRawTag(64);
1312 output.WriteInt32(OriginalNumVariables);
1314 if (_unknownFields !=
null) {
1315 _unknownFields.WriteTo(ref output);
1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1322 public int CalculateSize() {
1325 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1327 if (HasNumVariables) {
1328 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumVariables);
1330 size += constraints_.CalculateSize(_repeated_constraints_codec);
1331 if (objective_ !=
null) {
1332 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Objective);
1334 size += varNames_.CalculateSize(_repeated_varNames_codec);
1335 if (assignment_ !=
null) {
1336 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Assignment);
1338 if (HasOriginalNumVariables) {
1339 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OriginalNumVariables);
1341 if (_unknownFields !=
null) {
1342 size += _unknownFields.CalculateSize();
1347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1348 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1349 public void MergeFrom(LinearBooleanProblem other) {
1350 if (other ==
null) {
1353 if (other.HasName) {
1356 if (other.HasNumVariables) {
1357 NumVariables = other.NumVariables;
1359 constraints_.Add(other.constraints_);
1360 if (other.objective_ !=
null) {
1361 if (objective_ ==
null) {
1362 Objective =
new global::Google.OrTools.Sat.LinearObjective();
1364 Objective.MergeFrom(other.Objective);
1366 varNames_.Add(other.varNames_);
1367 if (other.assignment_ !=
null) {
1368 if (assignment_ ==
null) {
1369 Assignment =
new global::Google.OrTools.Sat.BooleanAssignment();
1371 Assignment.MergeFrom(other.Assignment);
1373 if (other.HasOriginalNumVariables) {
1374 OriginalNumVariables = other.OriginalNumVariables;
1376 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1380 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1381 public void MergeFrom(pb::CodedInputStream input) {
1382 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1383 input.ReadRawMessage(
this);
1386 while ((tag = input.ReadTag()) != 0) {
1387 if ((tag & 7) == 4) {
1393 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1396 Name = input.ReadString();
1404 constraints_.AddEntriesFrom(input, _repeated_constraints_codec);
1408 if (objective_ ==
null) {
1409 Objective =
new global::Google.OrTools.Sat.LinearObjective();
1415 varNames_.AddEntriesFrom(input, _repeated_varNames_codec);
1419 if (assignment_ ==
null) {
1420 Assignment =
new global::Google.OrTools.Sat.BooleanAssignment();
1434 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1436 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
1437 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1439 while ((tag = input.ReadTag()) != 0) {
1440 if ((tag & 7) == 4) {
1446 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1449 Name = input.ReadString();
1453 NumVariables = input.ReadInt32();
1457 constraints_.AddEntriesFrom(ref input, _repeated_constraints_codec);
1461 if (objective_ ==
null) {
1462 Objective =
new global::Google.OrTools.Sat.LinearObjective();
1464 input.ReadMessage(Objective);
1468 varNames_.AddEntriesFrom(ref input, _repeated_varNames_codec);
1472 if (assignment_ ==
null) {
1473 Assignment =
new global::Google.OrTools.Sat.BooleanAssignment();
1475 input.ReadMessage(Assignment);
1479 OriginalNumVariables = input.ReadInt32();
1493#endregion Designer generated code
global::Google.Protobuf pb
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc