5 #pragma warning disable 1591, 0612, 3021 6 #region Designer generated code 8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
20 get {
return descriptor; }
22 private static pbr::FileDescriptor descriptor;
25 byte[] descriptorData = global::System.Convert.FromBase64String(
27 "ChpvcnRvb2xzL3NhdC9jcF9tb2RlbC5wcm90bxIXb3BlcmF0aW9uc19yZXNl",
28 "YXJjaC5zYXQiNAoUSW50ZWdlclZhcmlhYmxlUHJvdG8SDAoEbmFtZRgBIAEo",
29 "CRIOCgZkb21haW4YAiADKAMiJQoRQm9vbEFyZ3VtZW50UHJvdG8SEAoIbGl0",
30 "ZXJhbHMYASADKAUiNAoUSW50ZWdlckFyZ3VtZW50UHJvdG8SDgoGdGFyZ2V0",
31 "GAEgASgFEgwKBHZhcnMYAiADKAUiKwobQWxsRGlmZmVyZW50Q29uc3RyYWlu",
32 "dFByb3RvEgwKBHZhcnMYASADKAUiRQoVTGluZWFyQ29uc3RyYWludFByb3Rv",
33 "EgwKBHZhcnMYASADKAUSDgoGY29lZmZzGAIgAygDEg4KBmRvbWFpbhgDIAMo",
34 "AyJFChZFbGVtZW50Q29uc3RyYWludFByb3RvEg0KBWluZGV4GAEgASgFEg4K",
35 "BnRhcmdldBgCIAEoBRIMCgR2YXJzGAMgAygFIkMKF0ludGVydmFsQ29uc3Ry",
36 "YWludFByb3RvEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRIMCgRzaXpl",
37 "GAMgASgFIi0KGE5vT3ZlcmxhcENvbnN0cmFpbnRQcm90bxIRCglpbnRlcnZh",
38 "bHMYASADKAUiRgoaTm9PdmVybGFwMkRDb25zdHJhaW50UHJvdG8SEwoLeF9p",
39 "bnRlcnZhbHMYASADKAUSEwoLeV9pbnRlcnZhbHMYAiADKAUiUQoZQ3VtdWxh",
40 "dGl2ZUNvbnN0cmFpbnRQcm90bxIQCghjYXBhY2l0eRgBIAEoBRIRCglpbnRl",
41 "cnZhbHMYAiADKAUSDwoHZGVtYW5kcxgDIAMoBSJxChhSZXNlcnZvaXJDb25z",
42 "dHJhaW50UHJvdG8SEQoJbWluX2xldmVsGAEgASgDEhEKCW1heF9sZXZlbBgC",
43 "IAEoAxINCgV0aW1lcxgDIAMoBRIPCgdkZW1hbmRzGAQgAygDEg8KB2FjdGl2",
44 "ZXMYBSADKAUiSAoWQ2lyY3VpdENvbnN0cmFpbnRQcm90bxINCgV0YWlscxgD",
45 "IAMoBRINCgVoZWFkcxgEIAMoBRIQCghsaXRlcmFscxgFIAMoBSJqChVSb3V0",
46 "ZXNDb25zdHJhaW50UHJvdG8SDQoFdGFpbHMYASADKAUSDQoFaGVhZHMYAiAD",
47 "KAUSEAoIbGl0ZXJhbHMYAyADKAUSDwoHZGVtYW5kcxgEIAMoBRIQCghjYXBh",
48 "Y2l0eRgFIAEoAyJMCh5DaXJjdWl0Q292ZXJpbmdDb25zdHJhaW50UHJvdG8S",
49 "DQoFbmV4dHMYASADKAUSGwoTZGlzdGluZ3Vpc2hlZF9ub2RlcxgCIAMoAyJF",
50 "ChRUYWJsZUNvbnN0cmFpbnRQcm90bxIMCgR2YXJzGAEgAygFEg4KBnZhbHVl",
51 "cxgCIAMoAxIPCgduZWdhdGVkGAMgASgIIj0KFkludmVyc2VDb25zdHJhaW50",
52 "UHJvdG8SEAoIZl9kaXJlY3QYASADKAUSEQoJZl9pbnZlcnNlGAIgAygFIqIB",
53 "ChhBdXRvbWF0b25Db25zdHJhaW50UHJvdG8SFgoOc3RhcnRpbmdfc3RhdGUY",
54 "AiABKAMSFAoMZmluYWxfc3RhdGVzGAMgAygDEhcKD3RyYW5zaXRpb25fdGFp",
55 "bBgEIAMoAxIXCg90cmFuc2l0aW9uX2hlYWQYBSADKAMSGAoQdHJhbnNpdGlv",
56 "bl9sYWJlbBgGIAMoAxIMCgR2YXJzGAcgAygFIv0MCg9Db25zdHJhaW50UHJv",
57 "dG8SDAoEbmFtZRgBIAEoCRIbChNlbmZvcmNlbWVudF9saXRlcmFsGAIgAygF",
58 "Ej0KB2Jvb2xfb3IYAyABKAsyKi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5C",
59 "b29sQXJndW1lbnRQcm90b0gAEj4KCGJvb2xfYW5kGAQgASgLMioub3BlcmF0",
60 "aW9uc19yZXNlYXJjaC5zYXQuQm9vbEFyZ3VtZW50UHJvdG9IABJBCgthdF9t",
61 "b3N0X29uZRgaIAEoCzIqLm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkJvb2xB",
62 "cmd1bWVudFByb3RvSAASPgoIYm9vbF94b3IYBSABKAsyKi5vcGVyYXRpb25z",
63 "X3Jlc2VhcmNoLnNhdC5Cb29sQXJndW1lbnRQcm90b0gAEkAKB2ludF9kaXYY",
64 "ByABKAsyLS5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5JbnRlZ2VyQXJndW1l",
65 "bnRQcm90b0gAEkAKB2ludF9tb2QYCCABKAsyLS5vcGVyYXRpb25zX3Jlc2Vh",
66 "cmNoLnNhdC5JbnRlZ2VyQXJndW1lbnRQcm90b0gAEkAKB2ludF9tYXgYCSAB",
67 "KAsyLS5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5JbnRlZ2VyQXJndW1lbnRQ",
68 "cm90b0gAEkAKB2ludF9taW4YCiABKAsyLS5vcGVyYXRpb25zX3Jlc2VhcmNo",
69 "LnNhdC5JbnRlZ2VyQXJndW1lbnRQcm90b0gAEkEKCGludF9wcm9kGAsgASgL",
70 "Mi0ub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuSW50ZWdlckFyZ3VtZW50UHJv",
71 "dG9IABJACgZsaW5lYXIYDCABKAsyLi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNh",
72 "dC5MaW5lYXJDb25zdHJhaW50UHJvdG9IABJICghhbGxfZGlmZhgNIAEoCzI0",
73 "Lm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkFsbERpZmZlcmVudENvbnN0cmFp",
74 "bnRQcm90b0gAEkIKB2VsZW1lbnQYDiABKAsyLy5vcGVyYXRpb25zX3Jlc2Vh",
75 "cmNoLnNhdC5FbGVtZW50Q29uc3RyYWludFByb3RvSAASQgoHY2lyY3VpdBgP",
76 "IAEoCzIvLm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkNpcmN1aXRDb25zdHJh",
77 "aW50UHJvdG9IABJACgZyb3V0ZXMYFyABKAsyLi5vcGVyYXRpb25zX3Jlc2Vh",
78 "cmNoLnNhdC5Sb3V0ZXNDb25zdHJhaW50UHJvdG9IABJTChBjaXJjdWl0X2Nv",
79 "dmVyaW5nGBkgASgLMjcub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuQ2lyY3Vp",
80 "dENvdmVyaW5nQ29uc3RyYWludFByb3RvSAASPgoFdGFibGUYECABKAsyLS5v",
81 "cGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5UYWJsZUNvbnN0cmFpbnRQcm90b0gA",
82 "EkYKCWF1dG9tYXRvbhgRIAEoCzIxLm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0",
83 "LkF1dG9tYXRvbkNvbnN0cmFpbnRQcm90b0gAEkIKB2ludmVyc2UYEiABKAsy",
84 "Ly5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5JbnZlcnNlQ29uc3RyYWludFBy",
85 "b3RvSAASRgoJcmVzZXJ2b2lyGBggASgLMjEub3BlcmF0aW9uc19yZXNlYXJj",
86 "aC5zYXQuUmVzZXJ2b2lyQ29uc3RyYWludFByb3RvSAASRAoIaW50ZXJ2YWwY",
87 "EyABKAsyMC5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5JbnRlcnZhbENvbnN0",
88 "cmFpbnRQcm90b0gAEkcKCm5vX292ZXJsYXAYFCABKAsyMS5vcGVyYXRpb25z",
89 "X3Jlc2VhcmNoLnNhdC5Ob092ZXJsYXBDb25zdHJhaW50UHJvdG9IABJMCg1u",
90 "b19vdmVybGFwXzJkGBUgASgLMjMub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQu",
91 "Tm9PdmVybGFwMkRDb25zdHJhaW50UHJvdG9IABJICgpjdW11bGF0aXZlGBYg",
92 "ASgLMjIub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuQ3VtdWxhdGl2ZUNvbnN0",
93 "cmFpbnRQcm90b0gAQgwKCmNvbnN0cmFpbnQiaAoQQ3BPYmplY3RpdmVQcm90",
94 "bxIMCgR2YXJzGAEgAygFEg4KBmNvZWZmcxgEIAMoAxIOCgZvZmZzZXQYAiAB",
95 "KAESFgoOc2NhbGluZ19mYWN0b3IYAyABKAESDgoGZG9tYWluGAUgAygDIrsF",
96 "ChVEZWNpc2lvblN0cmF0ZWd5UHJvdG8SEQoJdmFyaWFibGVzGAEgAygFEm0K",
97 "G3ZhcmlhYmxlX3NlbGVjdGlvbl9zdHJhdGVneRgCIAEoDjJILm9wZXJhdGlv",
98 "bnNfcmVzZWFyY2guc2F0LkRlY2lzaW9uU3RyYXRlZ3lQcm90by5WYXJpYWJs",
99 "ZVNlbGVjdGlvblN0cmF0ZWd5EmkKGWRvbWFpbl9yZWR1Y3Rpb25fc3RyYXRl",
100 "Z3kYAyABKA4yRi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5EZWNpc2lvblN0",
101 "cmF0ZWd5UHJvdG8uRG9tYWluUmVkdWN0aW9uU3RyYXRlZ3kSXAoPdHJhbnNm",
102 "b3JtYXRpb25zGAQgAygLMkMub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuRGVj",
103 "aXNpb25TdHJhdGVneVByb3RvLkFmZmluZVRyYW5zZm9ybWF0aW9uGksKFEFm",
104 "ZmluZVRyYW5zZm9ybWF0aW9uEgsKA3ZhchgBIAEoBRIOCgZvZmZzZXQYAiAB",
105 "KAMSFgoOcG9zaXRpdmVfY29lZmYYAyABKAMilAEKGVZhcmlhYmxlU2VsZWN0",
106 "aW9uU3RyYXRlZ3kSEAoMQ0hPT1NFX0ZJUlNUEAASFQoRQ0hPT1NFX0xPV0VT",
107 "VF9NSU4QARIWChJDSE9PU0VfSElHSEVTVF9NQVgQAhIaChZDSE9PU0VfTUlO",
108 "X0RPTUFJTl9TSVpFEAMSGgoWQ0hPT1NFX01BWF9ET01BSU5fU0laRRAEInMK",
109 "F0RvbWFpblJlZHVjdGlvblN0cmF0ZWd5EhQKEFNFTEVDVF9NSU5fVkFMVUUQ",
110 "ABIUChBTRUxFQ1RfTUFYX1ZBTFVFEAESFQoRU0VMRUNUX0xPV0VSX0hBTEYQ",
111 "AhIVChFTRUxFQ1RfVVBQRVJfSEFMRhADIjkKGVBhcnRpYWxWYXJpYWJsZUFz",
112 "c2lnbm1lbnQSDAoEdmFycxgBIAMoBRIOCgZ2YWx1ZXMYAiADKAMi7wIKDENw",
113 "TW9kZWxQcm90bxIMCgRuYW1lGAEgASgJEkAKCXZhcmlhYmxlcxgCIAMoCzIt",
114 "Lm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkludGVnZXJWYXJpYWJsZVByb3Rv",
115 "Ej0KC2NvbnN0cmFpbnRzGAMgAygLMigub3BlcmF0aW9uc19yZXNlYXJjaC5z",
116 "YXQuQ29uc3RyYWludFByb3RvEjwKCW9iamVjdGl2ZRgEIAEoCzIpLm9wZXJh",
117 "dGlvbnNfcmVzZWFyY2guc2F0LkNwT2JqZWN0aXZlUHJvdG8SRwoPc2VhcmNo",
118 "X3N0cmF0ZWd5GAUgAygLMi4ub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuRGVj",
119 "aXNpb25TdHJhdGVneVByb3RvEkkKDXNvbHV0aW9uX2hpbnQYBiABKAsyMi5v",
120 "cGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5QYXJ0aWFsVmFyaWFibGVBc3NpZ25t",
121 "ZW50Ip8EChBDcFNvbHZlclJlc3BvbnNlEjcKBnN0YXR1cxgBIAEoDjInLm9w",
122 "ZXJhdGlvbnNfcmVzZWFyY2guc2F0LkNwU29sdmVyU3RhdHVzEhAKCHNvbHV0",
123 "aW9uGAIgAygDEhcKD29iamVjdGl2ZV92YWx1ZRgDIAEoARIcChRiZXN0X29i",
124 "amVjdGl2ZV9ib3VuZBgEIAEoARIdChVzb2x1dGlvbl9sb3dlcl9ib3VuZHMY",
125 "EiADKAMSHQoVc29sdXRpb25fdXBwZXJfYm91bmRzGBMgAygDEkoKE3RpZ2h0",
126 "ZW5lZF92YXJpYWJsZXMYFSADKAsyLS5vcGVyYXRpb25zX3Jlc2VhcmNoLnNh",
127 "dC5JbnRlZ2VyVmFyaWFibGVQcm90bxIgChhhbGxfc29sdXRpb25zX3dlcmVf",
128 "Zm91bmQYBSABKAgSFAoMbnVtX2Jvb2xlYW5zGAogASgDEhUKDW51bV9jb25m",
129 "bGljdHMYCyABKAMSFAoMbnVtX2JyYW5jaGVzGAwgASgDEh8KF251bV9iaW5h",
130 "cnlfcHJvcGFnYXRpb25zGA0gASgDEiAKGG51bV9pbnRlZ2VyX3Byb3BhZ2F0",
131 "aW9ucxgOIAEoAxIRCgl3YWxsX3RpbWUYDyABKAESEQoJdXNlcl90aW1lGBAg",
132 "ASgBEhoKEmRldGVybWluaXN0aWNfdGltZRgRIAEoARIVCg1zb2x1dGlvbl9p",
133 "bmZvGBQgASgJKlsKDkNwU29sdmVyU3RhdHVzEgsKB1VOS05PV04QABIRCg1N",
134 "T0RFTF9JTlZBTElEEAESDAoIRkVBU0lCTEUQAhIOCgpJTkZFQVNJQkxFEAMS",
135 "CwoHT1BUSU1BTBAEQkAKFmNvbS5nb29nbGUub3J0b29scy5zYXRCD0NwTW9k",
136 "ZWxQcm90b2J1ZlABqgISR29vZ2xlLk9yVG9vbHMuU2F0YgZwcm90bzM="));
137 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
138 new pbr::FileDescriptor[] { },
139 new pbr::GeneratedClrTypeInfo(
new[] {typeof(global::Google.OrTools.Sat.CpSolverStatus), },
new pbr::GeneratedClrTypeInfo[] {
140 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.IntegerVariableProto), global::Google.OrTools.Sat.IntegerVariableProto.Parser,
new[]{
"Name",
"Domain" },
null,
null,
null),
141 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.BoolArgumentProto), global::Google.OrTools.Sat.BoolArgumentProto.Parser,
new[]{
"Literals" },
null,
null,
null),
142 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.IntegerArgumentProto), global::Google.OrTools.Sat.IntegerArgumentProto.Parser,
new[]{
"Target",
"Vars" },
null,
null,
null),
143 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.AllDifferentConstraintProto), global::Google.OrTools.Sat.AllDifferentConstraintProto.Parser,
new[]{
"Vars" },
null,
null,
null),
144 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearConstraintProto), global::Google.OrTools.Sat.LinearConstraintProto.Parser,
new[]{
"Vars",
"Coeffs",
"Domain" },
null,
null,
null),
145 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ElementConstraintProto), global::Google.OrTools.Sat.ElementConstraintProto.Parser,
new[]{
"Index",
"Target",
"Vars" },
null,
null,
null),
146 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.IntervalConstraintProto), global::Google.OrTools.Sat.IntervalConstraintProto.Parser,
new[]{
"Start",
"End",
"Size" },
null,
null,
null),
147 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.NoOverlapConstraintProto), global::Google.OrTools.Sat.NoOverlapConstraintProto.Parser,
new[]{
"Intervals" },
null,
null,
null),
148 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.NoOverlap2DConstraintProto), global::Google.OrTools.Sat.NoOverlap2DConstraintProto.Parser,
new[]{
"XIntervals",
"YIntervals" },
null,
null,
null),
149 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CumulativeConstraintProto), global::Google.OrTools.Sat.CumulativeConstraintProto.Parser,
new[]{
"Capacity",
"Intervals",
"Demands" },
null,
null,
null),
150 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ReservoirConstraintProto), global::Google.OrTools.Sat.ReservoirConstraintProto.Parser,
new[]{
"MinLevel",
"MaxLevel",
"Times",
"Demands",
"Actives" },
null,
null,
null),
151 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CircuitConstraintProto), global::Google.OrTools.Sat.CircuitConstraintProto.Parser,
new[]{
"Tails",
"Heads",
"Literals" },
null,
null,
null),
152 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.RoutesConstraintProto), global::Google.OrTools.Sat.RoutesConstraintProto.Parser,
new[]{
"Tails",
"Heads",
"Literals",
"Demands",
"Capacity" },
null,
null,
null),
153 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CircuitCoveringConstraintProto), global::Google.OrTools.Sat.CircuitCoveringConstraintProto.Parser,
new[]{
"Nexts",
"DistinguishedNodes" },
null,
null,
null),
154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.TableConstraintProto), global::Google.OrTools.Sat.TableConstraintProto.Parser,
new[]{
"Vars",
"Values",
"Negated" },
null,
null,
null),
155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.InverseConstraintProto), global::Google.OrTools.Sat.InverseConstraintProto.Parser,
new[]{
"FDirect",
"FInverse" },
null,
null,
null),
156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.AutomatonConstraintProto), global::Google.OrTools.Sat.AutomatonConstraintProto.Parser,
new[]{
"StartingState",
"FinalStates",
"TransitionTail",
"TransitionHead",
"TransitionLabel",
"Vars" },
null,
null,
null),
157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ConstraintProto), global::Google.OrTools.Sat.ConstraintProto.Parser,
new[]{
"Name",
"EnforcementLiteral",
"BoolOr",
"BoolAnd",
"AtMostOne",
"BoolXor",
"IntDiv",
"IntMod",
"IntMax",
"IntMin",
"IntProd",
"Linear",
"AllDiff",
"Element",
"Circuit",
"Routes",
"CircuitCovering",
"Table",
"Automaton",
"Inverse",
"Reservoir",
"Interval",
"NoOverlap",
"NoOverlap2D",
"Cumulative" },
new[]{
"Constraint" },
null,
null),
158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpObjectiveProto), global::Google.OrTools.Sat.CpObjectiveProto.Parser,
new[]{
"Vars",
"Coeffs",
"Offset",
"ScalingFactor",
"Domain" },
null,
null,
null),
159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.DecisionStrategyProto), global::Google.OrTools.Sat.DecisionStrategyProto.Parser,
new[]{
"Variables",
"VariableSelectionStrategy",
"DomainReductionStrategy",
"Transformations" },
null,
new[]{ typeof(global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy), typeof(global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy) },
new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation), global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation.Parser, new[]{
"Var",
"Offset",
"PositiveCoeff" },
null,
null,
null)}),
160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.PartialVariableAssignment), global::Google.OrTools.Sat.PartialVariableAssignment.Parser,
new[]{
"Vars",
"Values" },
null,
null,
null),
161 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpModelProto), global::Google.OrTools.Sat.CpModelProto.Parser,
new[]{
"Name",
"Variables",
"Constraints",
"Objective",
"SearchStrategy",
"SolutionHint" },
null,
null,
null),
162 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpSolverResponse), global::Google.OrTools.Sat.CpSolverResponse.Parser,
new[]{
"Status",
"Solution",
"ObjectiveValue",
"BestObjectiveBound",
"SolutionLowerBounds",
"SolutionUpperBounds",
"TightenedVariables",
"AllSolutionsWereFound",
"NumBooleans",
"NumConflicts",
"NumBranches",
"NumBinaryPropagations",
"NumIntegerPropagations",
"WallTime",
"UserTime",
"DeterministicTime",
"SolutionInfo" },
null,
null,
null)
177 [pbr::OriginalName(
"UNKNOWN")] Unknown = 0,
182 [pbr::OriginalName(
"MODEL_INVALID")] ModelInvalid = 1,
187 [pbr::OriginalName(
"FEASIBLE")] Feasible = 2,
191 [pbr::OriginalName(
"INFEASIBLE")] Infeasible = 3,
197 [pbr::OriginalName(
"OPTIMAL")] Optimal = 4,
203 public sealed
partial class IntegerVariableProto : pb::IMessage<IntegerVariableProto> {
225 private static readonly pb::MessageParser<IntegerVariableProto> _parser =
new pb::MessageParser<IntegerVariableProto>(() =>
new IntegerVariableProto());
226 private pb::UnknownFieldSet _unknownFields;
227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
228 public static pb::MessageParser<IntegerVariableProto> Parser {
get {
return _parser; } }
230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
231 public static pbr::MessageDescriptor Descriptor {
232 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[0]; }
235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
236 pbr::MessageDescriptor pb::IMessage.Descriptor {
237 get {
return Descriptor; }
240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
245 partial
void OnConstruction();
247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
250 domain_ = other.domain_.Clone();
251 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
260 public const int NameFieldNumber = 1;
261 private string name_ =
"";
265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
267 get {
return name_; }
269 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
274 public const int DomainFieldNumber = 2;
275 private static readonly pb::FieldCodec<long> _repeated_domain_codec
276 = pb::FieldCodec.ForInt64(18);
277 private readonly pbc::RepeatedField<long> domain_ =
new pbc::RepeatedField<long>();
292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
294 get {
return domain_; }
297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
298 public override bool Equals(
object other) {
302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
304 if (ReferenceEquals(other,
null)) {
307 if (ReferenceEquals(other,
this)) {
310 if (Name != other.Name)
return false;
311 if(!domain_.Equals(other.domain_))
return false;
312 return Equals(_unknownFields, other._unknownFields);
315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
318 if (Name.Length != 0) hash ^= Name.GetHashCode();
319 hash ^= domain_.GetHashCode();
320 if (_unknownFields !=
null) {
321 hash ^= _unknownFields.GetHashCode();
326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
328 return pb::JsonFormatter.ToDiagnosticString(
this);
331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
332 public void WriteTo(pb::CodedOutputStream output) {
333 if (Name.Length != 0) {
334 output.WriteRawTag(10);
335 output.WriteString(Name);
337 domain_.WriteTo(output, _repeated_domain_codec);
338 if (_unknownFields !=
null) {
339 _unknownFields.WriteTo(output);
343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
346 if (Name.Length != 0) {
347 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
349 size += domain_.CalculateSize(_repeated_domain_codec);
350 if (_unknownFields !=
null) {
351 size += _unknownFields.CalculateSize();
356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
361 if (other.Name.Length != 0) {
364 domain_.Add(other.domain_);
365 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
371 while ((tag = input.ReadTag()) != 0) {
374 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
377 Name = input.ReadString();
382 domain_.AddEntriesFrom(input, _repeated_domain_codec);
395 private static readonly pb::MessageParser<BoolArgumentProto> _parser =
new pb::MessageParser<BoolArgumentProto>(() =>
new BoolArgumentProto());
396 private pb::UnknownFieldSet _unknownFields;
397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
398 public static pb::MessageParser<BoolArgumentProto> Parser {
get {
return _parser; } }
400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
401 public static pbr::MessageDescriptor Descriptor {
402 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[1]; }
405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
406 pbr::MessageDescriptor pb::IMessage.Descriptor {
407 get {
return Descriptor; }
410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415 partial
void OnConstruction();
417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
419 literals_ = other.literals_.Clone();
420 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
429 public const int LiteralsFieldNumber = 1;
430 private static readonly pb::FieldCodec<int> _repeated_literals_codec
431 = pb::FieldCodec.ForInt32(10);
432 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
433 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
434 public pbc::RepeatedField<int> Literals {
435 get {
return literals_; }
438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
439 public override bool Equals(
object other) {
443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
445 if (ReferenceEquals(other,
null)) {
448 if (ReferenceEquals(other,
this)) {
451 if(!literals_.Equals(other.literals_))
return false;
452 return Equals(_unknownFields, other._unknownFields);
455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
458 hash ^= literals_.GetHashCode();
459 if (_unknownFields !=
null) {
460 hash ^= _unknownFields.GetHashCode();
465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
467 return pb::JsonFormatter.ToDiagnosticString(
this);
470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
471 public void WriteTo(pb::CodedOutputStream output) {
472 literals_.WriteTo(output, _repeated_literals_codec);
473 if (_unknownFields !=
null) {
474 _unknownFields.WriteTo(output);
478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
481 size += literals_.CalculateSize(_repeated_literals_codec);
482 if (_unknownFields !=
null) {
483 size += _unknownFields.CalculateSize();
488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
493 literals_.Add(other.literals_);
494 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
500 while ((tag = input.ReadTag()) != 0) {
503 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
507 literals_.AddEntriesFrom(input, _repeated_literals_codec);
520 private static readonly pb::MessageParser<IntegerArgumentProto> _parser =
new pb::MessageParser<IntegerArgumentProto>(() =>
new IntegerArgumentProto());
521 private pb::UnknownFieldSet _unknownFields;
522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
523 public static pb::MessageParser<IntegerArgumentProto> Parser {
get {
return _parser; } }
525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
526 public static pbr::MessageDescriptor Descriptor {
527 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[2]; }
530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
531 pbr::MessageDescriptor pb::IMessage.Descriptor {
532 get {
return Descriptor; }
535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
540 partial
void OnConstruction();
542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544 target_ = other.target_;
545 vars_ = other.vars_.Clone();
546 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
555 public const int TargetFieldNumber = 1;
557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
559 get {
return target_; }
566 public const int VarsFieldNumber = 2;
567 private static readonly pb::FieldCodec<int> _repeated_vars_codec
568 = pb::FieldCodec.ForInt32(18);
569 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571 public pbc::RepeatedField<int> Vars {
572 get {
return vars_; }
575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
576 public override bool Equals(
object other) {
580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
582 if (ReferenceEquals(other,
null)) {
585 if (ReferenceEquals(other,
this)) {
588 if (Target != other.
Target)
return false;
589 if(!vars_.Equals(other.vars_))
return false;
590 return Equals(_unknownFields, other._unknownFields);
593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
596 if (Target != 0) hash ^= Target.GetHashCode();
597 hash ^= vars_.GetHashCode();
598 if (_unknownFields !=
null) {
599 hash ^= _unknownFields.GetHashCode();
604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
606 return pb::JsonFormatter.ToDiagnosticString(
this);
609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
610 public void WriteTo(pb::CodedOutputStream output) {
612 output.WriteRawTag(8);
613 output.WriteInt32(Target);
615 vars_.WriteTo(output, _repeated_vars_codec);
616 if (_unknownFields !=
null) {
617 _unknownFields.WriteTo(output);
621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
625 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Target);
627 size += vars_.CalculateSize(_repeated_vars_codec);
628 if (_unknownFields !=
null) {
629 size += _unknownFields.CalculateSize();
634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
642 vars_.Add(other.vars_);
643 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
649 while ((tag = input.ReadTag()) != 0) {
652 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
655 Target = input.ReadInt32();
660 vars_.AddEntriesFrom(input, _repeated_vars_codec);
673 private static readonly pb::MessageParser<AllDifferentConstraintProto> _parser =
new pb::MessageParser<AllDifferentConstraintProto>(() =>
new AllDifferentConstraintProto());
674 private pb::UnknownFieldSet _unknownFields;
675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
676 public static pb::MessageParser<AllDifferentConstraintProto> Parser {
get {
return _parser; } }
678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
679 public static pbr::MessageDescriptor Descriptor {
680 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[3]; }
683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684 pbr::MessageDescriptor pb::IMessage.Descriptor {
685 get {
return Descriptor; }
688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
693 partial
void OnConstruction();
695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
697 vars_ = other.vars_.Clone();
698 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
707 public const int VarsFieldNumber = 1;
708 private static readonly pb::FieldCodec<int> _repeated_vars_codec
709 = pb::FieldCodec.ForInt32(10);
710 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
712 public pbc::RepeatedField<int> Vars {
713 get {
return vars_; }
716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
717 public override bool Equals(
object other) {
721 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
723 if (ReferenceEquals(other,
null)) {
726 if (ReferenceEquals(other,
this)) {
729 if(!vars_.Equals(other.vars_))
return false;
730 return Equals(_unknownFields, other._unknownFields);
733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
736 hash ^= vars_.GetHashCode();
737 if (_unknownFields !=
null) {
738 hash ^= _unknownFields.GetHashCode();
743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
745 return pb::JsonFormatter.ToDiagnosticString(
this);
748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
749 public void WriteTo(pb::CodedOutputStream output) {
750 vars_.WriteTo(output, _repeated_vars_codec);
751 if (_unknownFields !=
null) {
752 _unknownFields.WriteTo(output);
756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
759 size += vars_.CalculateSize(_repeated_vars_codec);
760 if (_unknownFields !=
null) {
761 size += _unknownFields.CalculateSize();
766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
771 vars_.Add(other.vars_);
772 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
778 while ((tag = input.ReadTag()) != 0) {
781 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
785 vars_.AddEntriesFrom(input, _repeated_vars_codec);
803 private static readonly pb::MessageParser<LinearConstraintProto> _parser =
new pb::MessageParser<LinearConstraintProto>(() =>
new LinearConstraintProto());
804 private pb::UnknownFieldSet _unknownFields;
805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
806 public static pb::MessageParser<LinearConstraintProto> Parser {
get {
return _parser; } }
808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
809 public static pbr::MessageDescriptor Descriptor {
810 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[4]; }
813 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
814 pbr::MessageDescriptor pb::IMessage.Descriptor {
815 get {
return Descriptor; }
818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
823 partial
void OnConstruction();
825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
827 vars_ = other.vars_.Clone();
828 coeffs_ = other.coeffs_.Clone();
829 domain_ = other.domain_.Clone();
830 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
839 public const int VarsFieldNumber = 1;
840 private static readonly pb::FieldCodec<int> _repeated_vars_codec
841 = pb::FieldCodec.ForInt32(10);
842 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
844 public pbc::RepeatedField<int> Vars {
845 get {
return vars_; }
849 public const int CoeffsFieldNumber = 2;
850 private static readonly pb::FieldCodec<long> _repeated_coeffs_codec
851 = pb::FieldCodec.ForInt64(18);
852 private readonly pbc::RepeatedField<long> coeffs_ =
new pbc::RepeatedField<long>();
856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
857 public pbc::RepeatedField<long> Coeffs {
858 get {
return coeffs_; }
862 public const int DomainFieldNumber = 3;
863 private static readonly pb::FieldCodec<long> _repeated_domain_codec
864 = pb::FieldCodec.ForInt64(26);
865 private readonly pbc::RepeatedField<long> domain_ =
new pbc::RepeatedField<long>();
866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
868 get {
return domain_; }
871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
872 public override bool Equals(
object other) {
876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
878 if (ReferenceEquals(other,
null)) {
881 if (ReferenceEquals(other,
this)) {
884 if(!vars_.Equals(other.vars_))
return false;
885 if(!coeffs_.Equals(other.coeffs_))
return false;
886 if(!domain_.Equals(other.domain_))
return false;
887 return Equals(_unknownFields, other._unknownFields);
890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
893 hash ^= vars_.GetHashCode();
894 hash ^= coeffs_.GetHashCode();
895 hash ^= domain_.GetHashCode();
896 if (_unknownFields !=
null) {
897 hash ^= _unknownFields.GetHashCode();
902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
904 return pb::JsonFormatter.ToDiagnosticString(
this);
907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
908 public void WriteTo(pb::CodedOutputStream output) {
909 vars_.WriteTo(output, _repeated_vars_codec);
910 coeffs_.WriteTo(output, _repeated_coeffs_codec);
911 domain_.WriteTo(output, _repeated_domain_codec);
912 if (_unknownFields !=
null) {
913 _unknownFields.WriteTo(output);
917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
920 size += vars_.CalculateSize(_repeated_vars_codec);
921 size += coeffs_.CalculateSize(_repeated_coeffs_codec);
922 size += domain_.CalculateSize(_repeated_domain_codec);
923 if (_unknownFields !=
null) {
924 size += _unknownFields.CalculateSize();
929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
934 vars_.Add(other.vars_);
935 coeffs_.Add(other.coeffs_);
936 domain_.Add(other.domain_);
937 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
940 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
943 while ((tag = input.ReadTag()) != 0) {
946 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
950 vars_.AddEntriesFrom(input, _repeated_vars_codec);
955 coeffs_.AddEntriesFrom(input, _repeated_coeffs_codec);
960 domain_.AddEntriesFrom(input, _repeated_domain_codec);
974 private static readonly pb::MessageParser<ElementConstraintProto> _parser =
new pb::MessageParser<ElementConstraintProto>(() =>
new ElementConstraintProto());
975 private pb::UnknownFieldSet _unknownFields;
976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
977 public static pb::MessageParser<ElementConstraintProto> Parser {
get {
return _parser; } }
979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
980 public static pbr::MessageDescriptor Descriptor {
981 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[5]; }
984 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
985 pbr::MessageDescriptor pb::IMessage.Descriptor {
986 get {
return Descriptor; }
989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
994 partial
void OnConstruction();
996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
998 index_ = other.index_;
999 target_ = other.target_;
1000 vars_ = other.vars_.Clone();
1001 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1010 public const int IndexFieldNumber = 1;
1012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1014 get {
return index_; }
1021 public const int TargetFieldNumber = 2;
1022 private int target_;
1023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1025 get {
return target_; }
1032 public const int VarsFieldNumber = 3;
1033 private static readonly pb::FieldCodec<int> _repeated_vars_codec
1034 = pb::FieldCodec.ForInt32(26);
1035 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1037 public pbc::RepeatedField<int> Vars {
1038 get {
return vars_; }
1041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1048 if (ReferenceEquals(other,
null)) {
1051 if (ReferenceEquals(other,
this)) {
1054 if (Index != other.
Index)
return false;
1055 if (Target != other.
Target)
return false;
1056 if(!vars_.Equals(other.vars_))
return false;
1057 return Equals(_unknownFields, other._unknownFields);
1060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1063 if (Index != 0) hash ^= Index.GetHashCode();
1064 if (Target != 0) hash ^= Target.GetHashCode();
1065 hash ^= vars_.GetHashCode();
1066 if (_unknownFields !=
null) {
1067 hash ^= _unknownFields.GetHashCode();
1072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1074 return pb::JsonFormatter.ToDiagnosticString(
this);
1077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1078 public void WriteTo(pb::CodedOutputStream output) {
1080 output.WriteRawTag(8);
1081 output.WriteInt32(Index);
1084 output.WriteRawTag(16);
1085 output.WriteInt32(Target);
1087 vars_.WriteTo(output, _repeated_vars_codec);
1088 if (_unknownFields !=
null) {
1089 _unknownFields.WriteTo(output);
1093 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1097 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
1100 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Target);
1102 size += vars_.CalculateSize(_repeated_vars_codec);
1103 if (_unknownFields !=
null) {
1104 size += _unknownFields.CalculateSize();
1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1111 if (other ==
null) {
1114 if (other.
Index != 0) {
1115 Index = other.
Index;
1120 vars_.Add(other.vars_);
1121 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1127 while ((tag = input.ReadTag()) != 0) {
1130 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1133 Index = input.ReadInt32();
1137 Target = input.ReadInt32();
1142 vars_.AddEntriesFrom(input, _repeated_vars_codec);
1156 private static readonly pb::MessageParser<IntervalConstraintProto> _parser =
new pb::MessageParser<IntervalConstraintProto>(() =>
new IntervalConstraintProto());
1157 private pb::UnknownFieldSet _unknownFields;
1158 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1159 public static pb::MessageParser<IntervalConstraintProto> Parser {
get {
return _parser; } }
1161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1162 public static pbr::MessageDescriptor Descriptor {
1163 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[6]; }
1166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1167 pbr::MessageDescriptor pb::IMessage.Descriptor {
1168 get {
return Descriptor; }
1171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1176 partial
void OnConstruction();
1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1180 start_ = other.start_;
1182 size_ = other.size_;
1183 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1192 public const int StartFieldNumber = 1;
1194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1196 get {
return start_; }
1203 public const int EndFieldNumber = 2;
1205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1207 get {
return end_; }
1214 public const int SizeFieldNumber = 3;
1216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1218 get {
return size_; }
1224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1231 if (ReferenceEquals(other,
null)) {
1234 if (ReferenceEquals(other,
this)) {
1237 if (Start != other.
Start)
return false;
1238 if (End != other.
End)
return false;
1239 if (Size != other.
Size)
return false;
1240 return Equals(_unknownFields, other._unknownFields);
1243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1246 if (Start != 0) hash ^= Start.GetHashCode();
1247 if (End != 0) hash ^= End.GetHashCode();
1248 if (Size != 0) hash ^= Size.GetHashCode();
1249 if (_unknownFields !=
null) {
1250 hash ^= _unknownFields.GetHashCode();
1255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 return pb::JsonFormatter.ToDiagnosticString(
this);
1260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1261 public void WriteTo(pb::CodedOutputStream output) {
1263 output.WriteRawTag(8);
1264 output.WriteInt32(Start);
1267 output.WriteRawTag(16);
1268 output.WriteInt32(End);
1271 output.WriteRawTag(24);
1272 output.WriteInt32(Size);
1274 if (_unknownFields !=
null) {
1275 _unknownFields.WriteTo(output);
1279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1283 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
1286 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
1289 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size);
1291 if (_unknownFields !=
null) {
1292 size += _unknownFields.CalculateSize();
1297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1299 if (other ==
null) {
1302 if (other.
Start != 0) {
1303 Start = other.
Start;
1305 if (other.
End != 0) {
1308 if (other.
Size != 0) {
1311 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1317 while ((tag = input.ReadTag()) != 0) {
1320 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1323 Start = input.ReadInt32();
1327 End = input.ReadInt32();
1331 Size = input.ReadInt32();
1348 private static readonly pb::MessageParser<NoOverlapConstraintProto> _parser =
new pb::MessageParser<NoOverlapConstraintProto>(() =>
new NoOverlapConstraintProto());
1349 private pb::UnknownFieldSet _unknownFields;
1350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1351 public static pb::MessageParser<NoOverlapConstraintProto> Parser {
get {
return _parser; } }
1353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1354 public static pbr::MessageDescriptor Descriptor {
1355 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[7]; }
1358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1359 pbr::MessageDescriptor pb::IMessage.Descriptor {
1360 get {
return Descriptor; }
1363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1368 partial
void OnConstruction();
1370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1372 intervals_ = other.intervals_.Clone();
1373 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1382 public const int IntervalsFieldNumber = 1;
1383 private static readonly pb::FieldCodec<int> _repeated_intervals_codec
1384 = pb::FieldCodec.ForInt32(10);
1385 private readonly pbc::RepeatedField<int> intervals_ =
new pbc::RepeatedField<int>();
1386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1387 public pbc::RepeatedField<int> Intervals {
1388 get {
return intervals_; }
1391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1398 if (ReferenceEquals(other,
null)) {
1401 if (ReferenceEquals(other,
this)) {
1404 if(!intervals_.Equals(other.intervals_))
return false;
1405 return Equals(_unknownFields, other._unknownFields);
1408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1411 hash ^= intervals_.GetHashCode();
1412 if (_unknownFields !=
null) {
1413 hash ^= _unknownFields.GetHashCode();
1418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1420 return pb::JsonFormatter.ToDiagnosticString(
this);
1423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1424 public void WriteTo(pb::CodedOutputStream output) {
1425 intervals_.WriteTo(output, _repeated_intervals_codec);
1426 if (_unknownFields !=
null) {
1427 _unknownFields.WriteTo(output);
1431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1434 size += intervals_.CalculateSize(_repeated_intervals_codec);
1435 if (_unknownFields !=
null) {
1436 size += _unknownFields.CalculateSize();
1441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1443 if (other ==
null) {
1446 intervals_.Add(other.intervals_);
1447 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1453 while ((tag = input.ReadTag()) != 0) {
1456 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1460 intervals_.AddEntriesFrom(input, _repeated_intervals_codec);
1477 private static readonly pb::MessageParser<NoOverlap2DConstraintProto> _parser =
new pb::MessageParser<NoOverlap2DConstraintProto>(() =>
new NoOverlap2DConstraintProto());
1478 private pb::UnknownFieldSet _unknownFields;
1479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1480 public static pb::MessageParser<NoOverlap2DConstraintProto> Parser {
get {
return _parser; } }
1482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1483 public static pbr::MessageDescriptor Descriptor {
1484 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[8]; }
1487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1488 pbr::MessageDescriptor pb::IMessage.Descriptor {
1489 get {
return Descriptor; }
1492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497 partial
void OnConstruction();
1499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1501 xIntervals_ = other.xIntervals_.Clone();
1502 yIntervals_ = other.yIntervals_.Clone();
1503 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1512 public const int XIntervalsFieldNumber = 1;
1513 private static readonly pb::FieldCodec<int> _repeated_xIntervals_codec
1514 = pb::FieldCodec.ForInt32(10);
1515 private readonly pbc::RepeatedField<int> xIntervals_ =
new pbc::RepeatedField<int>();
1516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1517 public pbc::RepeatedField<int> XIntervals {
1518 get {
return xIntervals_; }
1522 public const int YIntervalsFieldNumber = 2;
1523 private static readonly pb::FieldCodec<int> _repeated_yIntervals_codec
1524 = pb::FieldCodec.ForInt32(18);
1525 private readonly pbc::RepeatedField<int> yIntervals_ =
new pbc::RepeatedField<int>();
1529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1530 public pbc::RepeatedField<int> YIntervals {
1531 get {
return yIntervals_; }
1534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1541 if (ReferenceEquals(other,
null)) {
1544 if (ReferenceEquals(other,
this)) {
1547 if(!xIntervals_.Equals(other.xIntervals_))
return false;
1548 if(!yIntervals_.Equals(other.yIntervals_))
return false;
1549 return Equals(_unknownFields, other._unknownFields);
1552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1555 hash ^= xIntervals_.GetHashCode();
1556 hash ^= yIntervals_.GetHashCode();
1557 if (_unknownFields !=
null) {
1558 hash ^= _unknownFields.GetHashCode();
1563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1565 return pb::JsonFormatter.ToDiagnosticString(
this);
1568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1569 public void WriteTo(pb::CodedOutputStream output) {
1570 xIntervals_.WriteTo(output, _repeated_xIntervals_codec);
1571 yIntervals_.WriteTo(output, _repeated_yIntervals_codec);
1572 if (_unknownFields !=
null) {
1573 _unknownFields.WriteTo(output);
1577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1580 size += xIntervals_.CalculateSize(_repeated_xIntervals_codec);
1581 size += yIntervals_.CalculateSize(_repeated_yIntervals_codec);
1582 if (_unknownFields !=
null) {
1583 size += _unknownFields.CalculateSize();
1588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1590 if (other ==
null) {
1593 xIntervals_.Add(other.xIntervals_);
1594 yIntervals_.Add(other.yIntervals_);
1595 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1601 while ((tag = input.ReadTag()) != 0) {
1604 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1608 xIntervals_.AddEntriesFrom(input, _repeated_xIntervals_codec);
1613 yIntervals_.AddEntriesFrom(input, _repeated_yIntervals_codec);
1629 private static readonly pb::MessageParser<CumulativeConstraintProto> _parser =
new pb::MessageParser<CumulativeConstraintProto>(() =>
new CumulativeConstraintProto());
1630 private pb::UnknownFieldSet _unknownFields;
1631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1632 public static pb::MessageParser<CumulativeConstraintProto> Parser {
get {
return _parser; } }
1634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1635 public static pbr::MessageDescriptor Descriptor {
1636 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[9]; }
1639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1640 pbr::MessageDescriptor pb::IMessage.Descriptor {
1641 get {
return Descriptor; }
1644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1649 partial
void OnConstruction();
1651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1653 capacity_ = other.capacity_;
1654 intervals_ = other.intervals_.Clone();
1655 demands_ = other.demands_.Clone();
1656 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1665 public const int CapacityFieldNumber = 1;
1666 private int capacity_;
1667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1668 public int Capacity {
1669 get {
return capacity_; }
1676 public const int IntervalsFieldNumber = 2;
1677 private static readonly pb::FieldCodec<int> _repeated_intervals_codec
1678 = pb::FieldCodec.ForInt32(18);
1679 private readonly pbc::RepeatedField<int> intervals_ =
new pbc::RepeatedField<int>();
1680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1681 public pbc::RepeatedField<int> Intervals {
1682 get {
return intervals_; }
1686 public const int DemandsFieldNumber = 3;
1687 private static readonly pb::FieldCodec<int> _repeated_demands_codec
1688 = pb::FieldCodec.ForInt32(26);
1689 private readonly pbc::RepeatedField<int> demands_ =
new pbc::RepeatedField<int>();
1693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1694 public pbc::RepeatedField<int> Demands {
1695 get {
return demands_; }
1698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1705 if (ReferenceEquals(other,
null)) {
1708 if (ReferenceEquals(other,
this)) {
1711 if (Capacity != other.
Capacity)
return false;
1712 if(!intervals_.Equals(other.intervals_))
return false;
1713 if(!demands_.Equals(other.demands_))
return false;
1714 return Equals(_unknownFields, other._unknownFields);
1717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1720 if (Capacity != 0) hash ^= Capacity.GetHashCode();
1721 hash ^= intervals_.GetHashCode();
1722 hash ^= demands_.GetHashCode();
1723 if (_unknownFields !=
null) {
1724 hash ^= _unknownFields.GetHashCode();
1729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1731 return pb::JsonFormatter.ToDiagnosticString(
this);
1734 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1735 public void WriteTo(pb::CodedOutputStream output) {
1736 if (Capacity != 0) {
1737 output.WriteRawTag(8);
1738 output.WriteInt32(Capacity);
1740 intervals_.WriteTo(output, _repeated_intervals_codec);
1741 demands_.WriteTo(output, _repeated_demands_codec);
1742 if (_unknownFields !=
null) {
1743 _unknownFields.WriteTo(output);
1747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1750 if (Capacity != 0) {
1751 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Capacity);
1753 size += intervals_.CalculateSize(_repeated_intervals_codec);
1754 size += demands_.CalculateSize(_repeated_demands_codec);
1755 if (_unknownFields !=
null) {
1756 size += _unknownFields.CalculateSize();
1761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1763 if (other ==
null) {
1769 intervals_.Add(other.intervals_);
1770 demands_.Add(other.demands_);
1771 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1777 while ((tag = input.ReadTag()) != 0) {
1780 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1783 Capacity = input.ReadInt32();
1788 intervals_.AddEntriesFrom(input, _repeated_intervals_codec);
1793 demands_.AddEntriesFrom(input, _repeated_demands_codec);
1819 private static readonly pb::MessageParser<ReservoirConstraintProto> _parser =
new pb::MessageParser<ReservoirConstraintProto>(() =>
new ReservoirConstraintProto());
1820 private pb::UnknownFieldSet _unknownFields;
1821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1822 public static pb::MessageParser<ReservoirConstraintProto> Parser {
get {
return _parser; } }
1824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1825 public static pbr::MessageDescriptor Descriptor {
1826 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[10]; }
1829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1830 pbr::MessageDescriptor pb::IMessage.Descriptor {
1831 get {
return Descriptor; }
1834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1839 partial
void OnConstruction();
1841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1843 minLevel_ = other.minLevel_;
1844 maxLevel_ = other.maxLevel_;
1845 times_ = other.times_.Clone();
1846 demands_ = other.demands_.Clone();
1847 actives_ = other.actives_.Clone();
1848 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1857 public const int MinLevelFieldNumber = 1;
1858 private long minLevel_;
1859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1860 public long MinLevel {
1861 get {
return minLevel_; }
1868 public const int MaxLevelFieldNumber = 2;
1869 private long maxLevel_;
1870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1871 public long MaxLevel {
1872 get {
return maxLevel_; }
1879 public const int TimesFieldNumber = 3;
1880 private static readonly pb::FieldCodec<int> _repeated_times_codec
1881 = pb::FieldCodec.ForInt32(26);
1882 private readonly pbc::RepeatedField<int> times_ =
new pbc::RepeatedField<int>();
1886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1887 public pbc::RepeatedField<int> Times {
1888 get {
return times_; }
1892 public const int DemandsFieldNumber = 4;
1893 private static readonly pb::FieldCodec<long> _repeated_demands_codec
1894 = pb::FieldCodec.ForInt64(34);
1895 private readonly pbc::RepeatedField<long> demands_ =
new pbc::RepeatedField<long>();
1899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1900 public pbc::RepeatedField<long> Demands {
1901 get {
return demands_; }
1905 public const int ActivesFieldNumber = 5;
1906 private static readonly pb::FieldCodec<int> _repeated_actives_codec
1907 = pb::FieldCodec.ForInt32(42);
1908 private readonly pbc::RepeatedField<int> actives_ =
new pbc::RepeatedField<int>();
1912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1913 public pbc::RepeatedField<int> Actives {
1914 get {
return actives_; }
1917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1924 if (ReferenceEquals(other,
null)) {
1927 if (ReferenceEquals(other,
this)) {
1930 if (MinLevel != other.
MinLevel)
return false;
1931 if (MaxLevel != other.
MaxLevel)
return false;
1932 if(!times_.Equals(other.times_))
return false;
1933 if(!demands_.Equals(other.demands_))
return false;
1934 if(!actives_.Equals(other.actives_))
return false;
1935 return Equals(_unknownFields, other._unknownFields);
1938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1941 if (MinLevel != 0L) hash ^= MinLevel.GetHashCode();
1942 if (MaxLevel != 0L) hash ^= MaxLevel.GetHashCode();
1943 hash ^= times_.GetHashCode();
1944 hash ^= demands_.GetHashCode();
1945 hash ^= actives_.GetHashCode();
1946 if (_unknownFields !=
null) {
1947 hash ^= _unknownFields.GetHashCode();
1952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1954 return pb::JsonFormatter.ToDiagnosticString(
this);
1957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1958 public void WriteTo(pb::CodedOutputStream output) {
1959 if (MinLevel != 0L) {
1960 output.WriteRawTag(8);
1961 output.WriteInt64(MinLevel);
1963 if (MaxLevel != 0L) {
1964 output.WriteRawTag(16);
1965 output.WriteInt64(MaxLevel);
1967 times_.WriteTo(output, _repeated_times_codec);
1968 demands_.WriteTo(output, _repeated_demands_codec);
1969 actives_.WriteTo(output, _repeated_actives_codec);
1970 if (_unknownFields !=
null) {
1971 _unknownFields.WriteTo(output);
1975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1978 if (MinLevel != 0L) {
1979 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinLevel);
1981 if (MaxLevel != 0L) {
1982 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxLevel);
1984 size += times_.CalculateSize(_repeated_times_codec);
1985 size += demands_.CalculateSize(_repeated_demands_codec);
1986 size += actives_.CalculateSize(_repeated_actives_codec);
1987 if (_unknownFields !=
null) {
1988 size += _unknownFields.CalculateSize();
1993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1995 if (other ==
null) {
2004 times_.Add(other.times_);
2005 demands_.Add(other.demands_);
2006 actives_.Add(other.actives_);
2007 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2013 while ((tag = input.ReadTag()) != 0) {
2016 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2019 MinLevel = input.ReadInt64();
2023 MaxLevel = input.ReadInt64();
2028 times_.AddEntriesFrom(input, _repeated_times_codec);
2033 demands_.AddEntriesFrom(input, _repeated_demands_codec);
2038 actives_.AddEntriesFrom(input, _repeated_actives_codec);
2058 private static readonly pb::MessageParser<CircuitConstraintProto> _parser =
new pb::MessageParser<CircuitConstraintProto>(() =>
new CircuitConstraintProto());
2059 private pb::UnknownFieldSet _unknownFields;
2060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2061 public static pb::MessageParser<CircuitConstraintProto> Parser {
get {
return _parser; } }
2063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2064 public static pbr::MessageDescriptor Descriptor {
2065 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[11]; }
2068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2069 pbr::MessageDescriptor pb::IMessage.Descriptor {
2070 get {
return Descriptor; }
2073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2078 partial
void OnConstruction();
2080 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2082 tails_ = other.tails_.Clone();
2083 heads_ = other.heads_.Clone();
2084 literals_ = other.literals_.Clone();
2085 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2094 public const int TailsFieldNumber = 3;
2095 private static readonly pb::FieldCodec<int> _repeated_tails_codec
2096 = pb::FieldCodec.ForInt32(26);
2097 private readonly pbc::RepeatedField<int> tails_ =
new pbc::RepeatedField<int>();
2098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2099 public pbc::RepeatedField<int> Tails {
2100 get {
return tails_; }
2104 public const int HeadsFieldNumber = 4;
2105 private static readonly pb::FieldCodec<int> _repeated_heads_codec
2106 = pb::FieldCodec.ForInt32(34);
2107 private readonly pbc::RepeatedField<int> heads_ =
new pbc::RepeatedField<int>();
2108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2109 public pbc::RepeatedField<int> Heads {
2110 get {
return heads_; }
2114 public const int LiteralsFieldNumber = 5;
2115 private static readonly pb::FieldCodec<int> _repeated_literals_codec
2116 = pb::FieldCodec.ForInt32(42);
2117 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
2118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2119 public pbc::RepeatedField<int> Literals {
2120 get {
return literals_; }
2123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2130 if (ReferenceEquals(other,
null)) {
2133 if (ReferenceEquals(other,
this)) {
2136 if(!tails_.Equals(other.tails_))
return false;
2137 if(!heads_.Equals(other.heads_))
return false;
2138 if(!literals_.Equals(other.literals_))
return false;
2139 return Equals(_unknownFields, other._unknownFields);
2142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2145 hash ^= tails_.GetHashCode();
2146 hash ^= heads_.GetHashCode();
2147 hash ^= literals_.GetHashCode();
2148 if (_unknownFields !=
null) {
2149 hash ^= _unknownFields.GetHashCode();
2154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2156 return pb::JsonFormatter.ToDiagnosticString(
this);
2159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2160 public void WriteTo(pb::CodedOutputStream output) {
2161 tails_.WriteTo(output, _repeated_tails_codec);
2162 heads_.WriteTo(output, _repeated_heads_codec);
2163 literals_.WriteTo(output, _repeated_literals_codec);
2164 if (_unknownFields !=
null) {
2165 _unknownFields.WriteTo(output);
2169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2172 size += tails_.CalculateSize(_repeated_tails_codec);
2173 size += heads_.CalculateSize(_repeated_heads_codec);
2174 size += literals_.CalculateSize(_repeated_literals_codec);
2175 if (_unknownFields !=
null) {
2176 size += _unknownFields.CalculateSize();
2181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2183 if (other ==
null) {
2186 tails_.Add(other.tails_);
2187 heads_.Add(other.heads_);
2188 literals_.Add(other.literals_);
2189 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2195 while ((tag = input.ReadTag()) != 0) {
2198 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2202 tails_.AddEntriesFrom(input, _repeated_tails_codec);
2207 heads_.AddEntriesFrom(input, _repeated_heads_codec);
2212 literals_.AddEntriesFrom(input, _repeated_literals_codec);
2239 private static readonly pb::MessageParser<RoutesConstraintProto> _parser =
new pb::MessageParser<RoutesConstraintProto>(() =>
new RoutesConstraintProto());
2240 private pb::UnknownFieldSet _unknownFields;
2241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2242 public static pb::MessageParser<RoutesConstraintProto> Parser {
get {
return _parser; } }
2244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2245 public static pbr::MessageDescriptor Descriptor {
2246 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[12]; }
2249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2250 pbr::MessageDescriptor pb::IMessage.Descriptor {
2251 get {
return Descriptor; }
2254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2259 partial
void OnConstruction();
2261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2263 tails_ = other.tails_.Clone();
2264 heads_ = other.heads_.Clone();
2265 literals_ = other.literals_.Clone();
2266 demands_ = other.demands_.Clone();
2267 capacity_ = other.capacity_;
2268 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2277 public const int TailsFieldNumber = 1;
2278 private static readonly pb::FieldCodec<int> _repeated_tails_codec
2279 = pb::FieldCodec.ForInt32(10);
2280 private readonly pbc::RepeatedField<int> tails_ =
new pbc::RepeatedField<int>();
2281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2282 public pbc::RepeatedField<int> Tails {
2283 get {
return tails_; }
2287 public const int HeadsFieldNumber = 2;
2288 private static readonly pb::FieldCodec<int> _repeated_heads_codec
2289 = pb::FieldCodec.ForInt32(18);
2290 private readonly pbc::RepeatedField<int> heads_ =
new pbc::RepeatedField<int>();
2291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2292 public pbc::RepeatedField<int> Heads {
2293 get {
return heads_; }
2297 public const int LiteralsFieldNumber = 3;
2298 private static readonly pb::FieldCodec<int> _repeated_literals_codec
2299 = pb::FieldCodec.ForInt32(26);
2300 private readonly pbc::RepeatedField<int> literals_ =
new pbc::RepeatedField<int>();
2301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2302 public pbc::RepeatedField<int> Literals {
2303 get {
return literals_; }
2307 public const int DemandsFieldNumber = 4;
2308 private static readonly pb::FieldCodec<int> _repeated_demands_codec
2309 = pb::FieldCodec.ForInt32(34);
2310 private readonly pbc::RepeatedField<int> demands_ =
new pbc::RepeatedField<int>();
2316 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2317 public pbc::RepeatedField<int> Demands {
2318 get {
return demands_; }
2322 public const int CapacityFieldNumber = 5;
2323 private long capacity_;
2324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2325 public long Capacity {
2326 get {
return capacity_; }
2332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2339 if (ReferenceEquals(other,
null)) {
2342 if (ReferenceEquals(other,
this)) {
2345 if(!tails_.Equals(other.tails_))
return false;
2346 if(!heads_.Equals(other.heads_))
return false;
2347 if(!literals_.Equals(other.literals_))
return false;
2348 if(!demands_.Equals(other.demands_))
return false;
2349 if (Capacity != other.
Capacity)
return false;
2350 return Equals(_unknownFields, other._unknownFields);
2353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2356 hash ^= tails_.GetHashCode();
2357 hash ^= heads_.GetHashCode();
2358 hash ^= literals_.GetHashCode();
2359 hash ^= demands_.GetHashCode();
2360 if (Capacity != 0L) hash ^= Capacity.GetHashCode();
2361 if (_unknownFields !=
null) {
2362 hash ^= _unknownFields.GetHashCode();
2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2369 return pb::JsonFormatter.ToDiagnosticString(
this);
2372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2373 public void WriteTo(pb::CodedOutputStream output) {
2374 tails_.WriteTo(output, _repeated_tails_codec);
2375 heads_.WriteTo(output, _repeated_heads_codec);
2376 literals_.WriteTo(output, _repeated_literals_codec);
2377 demands_.WriteTo(output, _repeated_demands_codec);
2378 if (Capacity != 0L) {
2379 output.WriteRawTag(40);
2380 output.WriteInt64(Capacity);
2382 if (_unknownFields !=
null) {
2383 _unknownFields.WriteTo(output);
2387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2390 size += tails_.CalculateSize(_repeated_tails_codec);
2391 size += heads_.CalculateSize(_repeated_heads_codec);
2392 size += literals_.CalculateSize(_repeated_literals_codec);
2393 size += demands_.CalculateSize(_repeated_demands_codec);
2394 if (Capacity != 0L) {
2395 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity);
2397 if (_unknownFields !=
null) {
2398 size += _unknownFields.CalculateSize();
2403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2405 if (other ==
null) {
2408 tails_.Add(other.tails_);
2409 heads_.Add(other.heads_);
2410 literals_.Add(other.literals_);
2411 demands_.Add(other.demands_);
2415 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2421 while ((tag = input.ReadTag()) != 0) {
2424 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2428 tails_.AddEntriesFrom(input, _repeated_tails_codec);
2433 heads_.AddEntriesFrom(input, _repeated_heads_codec);
2438 literals_.AddEntriesFrom(input, _repeated_literals_codec);
2443 demands_.AddEntriesFrom(input, _repeated_demands_codec);
2447 Capacity = input.ReadInt64();
2462 private static readonly pb::MessageParser<CircuitCoveringConstraintProto> _parser =
new pb::MessageParser<CircuitCoveringConstraintProto>(() =>
new CircuitCoveringConstraintProto());
2463 private pb::UnknownFieldSet _unknownFields;
2464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2465 public static pb::MessageParser<CircuitCoveringConstraintProto> Parser {
get {
return _parser; } }
2467 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2468 public static pbr::MessageDescriptor Descriptor {
2469 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[13]; }
2472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2473 pbr::MessageDescriptor pb::IMessage.Descriptor {
2474 get {
return Descriptor; }
2477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2482 partial
void OnConstruction();
2484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2486 nexts_ = other.nexts_.Clone();
2487 distinguishedNodes_ = other.distinguishedNodes_.Clone();
2488 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2497 public const int NextsFieldNumber = 1;
2498 private static readonly pb::FieldCodec<int> _repeated_nexts_codec
2499 = pb::FieldCodec.ForInt32(10);
2500 private readonly pbc::RepeatedField<int> nexts_ =
new pbc::RepeatedField<int>();
2501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2502 public pbc::RepeatedField<int> Nexts {
2503 get {
return nexts_; }
2507 public const int DistinguishedNodesFieldNumber = 2;
2508 private static readonly pb::FieldCodec<long> _repeated_distinguishedNodes_codec
2509 = pb::FieldCodec.ForInt64(18);
2510 private readonly pbc::RepeatedField<long> distinguishedNodes_ =
new pbc::RepeatedField<long>();
2511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2512 public pbc::RepeatedField<long> DistinguishedNodes {
2513 get {
return distinguishedNodes_; }
2516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2523 if (ReferenceEquals(other,
null)) {
2526 if (ReferenceEquals(other,
this)) {
2529 if(!nexts_.Equals(other.nexts_))
return false;
2530 if(!distinguishedNodes_.Equals(other.distinguishedNodes_))
return false;
2531 return Equals(_unknownFields, other._unknownFields);
2534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2537 hash ^= nexts_.GetHashCode();
2538 hash ^= distinguishedNodes_.GetHashCode();
2539 if (_unknownFields !=
null) {
2540 hash ^= _unknownFields.GetHashCode();
2545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2547 return pb::JsonFormatter.ToDiagnosticString(
this);
2550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2551 public void WriteTo(pb::CodedOutputStream output) {
2552 nexts_.WriteTo(output, _repeated_nexts_codec);
2553 distinguishedNodes_.WriteTo(output, _repeated_distinguishedNodes_codec);
2554 if (_unknownFields !=
null) {
2555 _unknownFields.WriteTo(output);
2559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2562 size += nexts_.CalculateSize(_repeated_nexts_codec);
2563 size += distinguishedNodes_.CalculateSize(_repeated_distinguishedNodes_codec);
2564 if (_unknownFields !=
null) {
2565 size += _unknownFields.CalculateSize();
2570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2572 if (other ==
null) {
2575 nexts_.Add(other.nexts_);
2576 distinguishedNodes_.Add(other.distinguishedNodes_);
2577 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2583 while ((tag = input.ReadTag()) != 0) {
2586 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2590 nexts_.AddEntriesFrom(input, _repeated_nexts_codec);
2595 distinguishedNodes_.AddEntriesFrom(input, _repeated_distinguishedNodes_codec);
2610 private static readonly pb::MessageParser<TableConstraintProto> _parser =
new pb::MessageParser<TableConstraintProto>(() =>
new TableConstraintProto());
2611 private pb::UnknownFieldSet _unknownFields;
2612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2613 public static pb::MessageParser<TableConstraintProto> Parser {
get {
return _parser; } }
2615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2616 public static pbr::MessageDescriptor Descriptor {
2617 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[14]; }
2620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2621 pbr::MessageDescriptor pb::IMessage.Descriptor {
2622 get {
return Descriptor; }
2625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2630 partial
void OnConstruction();
2632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2634 vars_ = other.vars_.Clone();
2635 values_ = other.values_.Clone();
2636 negated_ = other.negated_;
2637 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2646 public const int VarsFieldNumber = 1;
2647 private static readonly pb::FieldCodec<int> _repeated_vars_codec
2648 = pb::FieldCodec.ForInt32(10);
2649 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
2650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2651 public pbc::RepeatedField<int> Vars {
2652 get {
return vars_; }
2656 public const int ValuesFieldNumber = 2;
2657 private static readonly pb::FieldCodec<long> _repeated_values_codec
2658 = pb::FieldCodec.ForInt64(18);
2659 private readonly pbc::RepeatedField<long> values_ =
new pbc::RepeatedField<long>();
2660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2661 public pbc::RepeatedField<long> Values {
2662 get {
return values_; }
2666 public const int NegatedFieldNumber = 3;
2667 private bool negated_;
2672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2673 public bool Negated {
2674 get {
return negated_; }
2680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2687 if (ReferenceEquals(other,
null)) {
2690 if (ReferenceEquals(other,
this)) {
2693 if(!vars_.Equals(other.vars_))
return false;
2694 if(!values_.Equals(other.values_))
return false;
2695 if (Negated != other.
Negated)
return false;
2696 return Equals(_unknownFields, other._unknownFields);
2699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2702 hash ^= vars_.GetHashCode();
2703 hash ^= values_.GetHashCode();
2704 if (Negated !=
false) hash ^= Negated.GetHashCode();
2705 if (_unknownFields !=
null) {
2706 hash ^= _unknownFields.GetHashCode();
2711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2713 return pb::JsonFormatter.ToDiagnosticString(
this);
2716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2717 public void WriteTo(pb::CodedOutputStream output) {
2718 vars_.WriteTo(output, _repeated_vars_codec);
2719 values_.WriteTo(output, _repeated_values_codec);
2720 if (Negated !=
false) {
2721 output.WriteRawTag(24);
2722 output.WriteBool(Negated);
2724 if (_unknownFields !=
null) {
2725 _unknownFields.WriteTo(output);
2729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2732 size += vars_.CalculateSize(_repeated_vars_codec);
2733 size += values_.CalculateSize(_repeated_values_codec);
2734 if (Negated !=
false) {
2737 if (_unknownFields !=
null) {
2738 size += _unknownFields.CalculateSize();
2743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2745 if (other ==
null) {
2748 vars_.Add(other.vars_);
2749 values_.Add(other.values_);
2753 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2756 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2759 while ((tag = input.ReadTag()) != 0) {
2762 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2766 vars_.AddEntriesFrom(input, _repeated_vars_codec);
2771 values_.AddEntriesFrom(input, _repeated_values_codec);
2775 Negated = input.ReadBool();
2789 private static readonly pb::MessageParser<InverseConstraintProto> _parser =
new pb::MessageParser<InverseConstraintProto>(() =>
new InverseConstraintProto());
2790 private pb::UnknownFieldSet _unknownFields;
2791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2792 public static pb::MessageParser<InverseConstraintProto> Parser {
get {
return _parser; } }
2794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2795 public static pbr::MessageDescriptor Descriptor {
2796 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[15]; }
2799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2800 pbr::MessageDescriptor pb::IMessage.Descriptor {
2801 get {
return Descriptor; }
2804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2809 partial
void OnConstruction();
2811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2813 fDirect_ = other.fDirect_.Clone();
2814 fInverse_ = other.fInverse_.Clone();
2815 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2824 public const int FDirectFieldNumber = 1;
2825 private static readonly pb::FieldCodec<int> _repeated_fDirect_codec
2826 = pb::FieldCodec.ForInt32(10);
2827 private readonly pbc::RepeatedField<int> fDirect_ =
new pbc::RepeatedField<int>();
2828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2829 public pbc::RepeatedField<int> FDirect {
2830 get {
return fDirect_; }
2834 public const int FInverseFieldNumber = 2;
2835 private static readonly pb::FieldCodec<int> _repeated_fInverse_codec
2836 = pb::FieldCodec.ForInt32(18);
2837 private readonly pbc::RepeatedField<int> fInverse_ =
new pbc::RepeatedField<int>();
2838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2839 public pbc::RepeatedField<int> FInverse {
2840 get {
return fInverse_; }
2843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2850 if (ReferenceEquals(other,
null)) {
2853 if (ReferenceEquals(other,
this)) {
2856 if(!fDirect_.Equals(other.fDirect_))
return false;
2857 if(!fInverse_.Equals(other.fInverse_))
return false;
2858 return Equals(_unknownFields, other._unknownFields);
2861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2864 hash ^= fDirect_.GetHashCode();
2865 hash ^= fInverse_.GetHashCode();
2866 if (_unknownFields !=
null) {
2867 hash ^= _unknownFields.GetHashCode();
2872 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2874 return pb::JsonFormatter.ToDiagnosticString(
this);
2877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2878 public void WriteTo(pb::CodedOutputStream output) {
2879 fDirect_.WriteTo(output, _repeated_fDirect_codec);
2880 fInverse_.WriteTo(output, _repeated_fInverse_codec);
2881 if (_unknownFields !=
null) {
2882 _unknownFields.WriteTo(output);
2886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2889 size += fDirect_.CalculateSize(_repeated_fDirect_codec);
2890 size += fInverse_.CalculateSize(_repeated_fInverse_codec);
2891 if (_unknownFields !=
null) {
2892 size += _unknownFields.CalculateSize();
2897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2899 if (other ==
null) {
2902 fDirect_.Add(other.fDirect_);
2903 fInverse_.Add(other.fInverse_);
2904 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2910 while ((tag = input.ReadTag()) != 0) {
2913 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2917 fDirect_.AddEntriesFrom(input, _repeated_fDirect_codec);
2922 fInverse_.AddEntriesFrom(input, _repeated_fInverse_codec);
2936 private static readonly pb::MessageParser<AutomatonConstraintProto> _parser =
new pb::MessageParser<AutomatonConstraintProto>(() =>
new AutomatonConstraintProto());
2937 private pb::UnknownFieldSet _unknownFields;
2938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2939 public static pb::MessageParser<AutomatonConstraintProto> Parser {
get {
return _parser; } }
2941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2942 public static pbr::MessageDescriptor Descriptor {
2943 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[16]; }
2946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2947 pbr::MessageDescriptor pb::IMessage.Descriptor {
2948 get {
return Descriptor; }
2951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2956 partial
void OnConstruction();
2958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2960 startingState_ = other.startingState_;
2961 finalStates_ = other.finalStates_.Clone();
2962 transitionTail_ = other.transitionTail_.Clone();
2963 transitionHead_ = other.transitionHead_.Clone();
2964 transitionLabel_ = other.transitionLabel_.Clone();
2965 vars_ = other.vars_.Clone();
2966 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2975 public const int StartingStateFieldNumber = 2;
2976 private long startingState_;
2982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2983 public long StartingState {
2984 get {
return startingState_; }
2986 startingState_ = value;
2991 public const int FinalStatesFieldNumber = 3;
2992 private static readonly pb::FieldCodec<long> _repeated_finalStates_codec
2993 = pb::FieldCodec.ForInt64(26);
2994 private readonly pbc::RepeatedField<long> finalStates_ =
new pbc::RepeatedField<long>();
2995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2996 public pbc::RepeatedField<long> FinalStates {
2997 get {
return finalStates_; }
3001 public const int TransitionTailFieldNumber = 4;
3002 private static readonly pb::FieldCodec<long> _repeated_transitionTail_codec
3003 = pb::FieldCodec.ForInt64(34);
3004 private readonly pbc::RepeatedField<long> transitionTail_ =
new pbc::RepeatedField<long>();
3010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3011 public pbc::RepeatedField<long> TransitionTail {
3012 get {
return transitionTail_; }
3016 public const int TransitionHeadFieldNumber = 5;
3017 private static readonly pb::FieldCodec<long> _repeated_transitionHead_codec
3018 = pb::FieldCodec.ForInt64(42);
3019 private readonly pbc::RepeatedField<long> transitionHead_ =
new pbc::RepeatedField<long>();
3020 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3021 public pbc::RepeatedField<long> TransitionHead {
3022 get {
return transitionHead_; }
3026 public const int TransitionLabelFieldNumber = 6;
3027 private static readonly pb::FieldCodec<long> _repeated_transitionLabel_codec
3028 = pb::FieldCodec.ForInt64(50);
3029 private readonly pbc::RepeatedField<long> transitionLabel_ =
new pbc::RepeatedField<long>();
3030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3031 public pbc::RepeatedField<long> TransitionLabel {
3032 get {
return transitionLabel_; }
3036 public const int VarsFieldNumber = 7;
3037 private static readonly pb::FieldCodec<int> _repeated_vars_codec
3038 = pb::FieldCodec.ForInt32(58);
3039 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
3044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3045 public pbc::RepeatedField<int> Vars {
3046 get {
return vars_; }
3049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3056 if (ReferenceEquals(other,
null)) {
3059 if (ReferenceEquals(other,
this)) {
3063 if(!finalStates_.Equals(other.finalStates_))
return false;
3064 if(!transitionTail_.Equals(other.transitionTail_))
return false;
3065 if(!transitionHead_.Equals(other.transitionHead_))
return false;
3066 if(!transitionLabel_.Equals(other.transitionLabel_))
return false;
3067 if(!vars_.Equals(other.vars_))
return false;
3068 return Equals(_unknownFields, other._unknownFields);
3071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3074 if (StartingState != 0L) hash ^= StartingState.GetHashCode();
3075 hash ^= finalStates_.GetHashCode();
3076 hash ^= transitionTail_.GetHashCode();
3077 hash ^= transitionHead_.GetHashCode();
3078 hash ^= transitionLabel_.GetHashCode();
3079 hash ^= vars_.GetHashCode();
3080 if (_unknownFields !=
null) {
3081 hash ^= _unknownFields.GetHashCode();
3086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3088 return pb::JsonFormatter.ToDiagnosticString(
this);
3091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3092 public void WriteTo(pb::CodedOutputStream output) {
3093 if (StartingState != 0L) {
3094 output.WriteRawTag(16);
3095 output.WriteInt64(StartingState);
3097 finalStates_.WriteTo(output, _repeated_finalStates_codec);
3098 transitionTail_.WriteTo(output, _repeated_transitionTail_codec);
3099 transitionHead_.WriteTo(output, _repeated_transitionHead_codec);
3100 transitionLabel_.WriteTo(output, _repeated_transitionLabel_codec);
3101 vars_.WriteTo(output, _repeated_vars_codec);
3102 if (_unknownFields !=
null) {
3103 _unknownFields.WriteTo(output);
3107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3110 if (StartingState != 0L) {
3111 size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartingState);
3113 size += finalStates_.CalculateSize(_repeated_finalStates_codec);
3114 size += transitionTail_.CalculateSize(_repeated_transitionTail_codec);
3115 size += transitionHead_.CalculateSize(_repeated_transitionHead_codec);
3116 size += transitionLabel_.CalculateSize(_repeated_transitionLabel_codec);
3117 size += vars_.CalculateSize(_repeated_vars_codec);
3118 if (_unknownFields !=
null) {
3119 size += _unknownFields.CalculateSize();
3124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3126 if (other ==
null) {
3132 finalStates_.Add(other.finalStates_);
3133 transitionTail_.Add(other.transitionTail_);
3134 transitionHead_.Add(other.transitionHead_);
3135 transitionLabel_.Add(other.transitionLabel_);
3136 vars_.Add(other.vars_);
3137 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3143 while ((tag = input.ReadTag()) != 0) {
3146 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3149 StartingState = input.ReadInt64();
3154 finalStates_.AddEntriesFrom(input, _repeated_finalStates_codec);
3159 transitionTail_.AddEntriesFrom(input, _repeated_transitionTail_codec);
3164 transitionHead_.AddEntriesFrom(input, _repeated_transitionHead_codec);
3169 transitionLabel_.AddEntriesFrom(input, _repeated_transitionLabel_codec);
3174 vars_.AddEntriesFrom(input, _repeated_vars_codec);
3187 private static readonly pb::MessageParser<ConstraintProto> _parser =
new pb::MessageParser<ConstraintProto>(() =>
new ConstraintProto());
3188 private pb::UnknownFieldSet _unknownFields;
3189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3190 public static pb::MessageParser<ConstraintProto> Parser {
get {
return _parser; } }
3192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3193 public static pbr::MessageDescriptor Descriptor {
3194 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[17]; }
3197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3198 pbr::MessageDescriptor pb::IMessage.Descriptor {
3199 get {
return Descriptor; }
3202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3207 partial
void OnConstruction();
3209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3211 name_ = other.name_;
3212 enforcementLiteral_ = other.enforcementLiteral_.Clone();
3285 _unknownFields = pb::UnknownFieldSet.
Clone(other._unknownFields);
3288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3294 public const int NameFieldNumber = 1;
3295 private string name_ =
"";
3299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3300 public string Name {
3301 get {
return name_; }
3303 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
3308 public const int EnforcementLiteralFieldNumber = 2;
3309 private static readonly pb::FieldCodec<int> _repeated_enforcementLiteral_codec
3310 = pb::FieldCodec.ForInt32(18);
3311 private readonly pbc::RepeatedField<int> enforcementLiteral_ =
new pbc::RepeatedField<int>();
3328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3329 public pbc::RepeatedField<int> EnforcementLiteral {
3330 get {
return enforcementLiteral_; }
3334 public const int BoolOrFieldNumber = 3;
3338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3339 public global::Google.OrTools.Sat.BoolArgumentProto BoolOr {
3340 get {
return constraintCase_ ==
ConstraintOneofCase.BoolOr ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ :
null; }
3342 constraint_ = value;
3348 public const int BoolAndFieldNumber = 4;
3356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3357 public global::Google.OrTools.Sat.BoolArgumentProto BoolAnd {
3358 get {
return constraintCase_ ==
ConstraintOneofCase.BoolAnd ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ :
null; }
3360 constraint_ = value;
3366 public const int AtMostOneFieldNumber = 26;
3374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3375 public global::Google.OrTools.Sat.BoolArgumentProto AtMostOne {
3376 get {
return constraintCase_ ==
ConstraintOneofCase.AtMostOne ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ :
null; }
3378 constraint_ = value;
3384 public const int BoolXorFieldNumber = 5;
3388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3389 public global::Google.OrTools.Sat.BoolArgumentProto BoolXor {
3390 get {
return constraintCase_ ==
ConstraintOneofCase.BoolXor ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ :
null; }
3392 constraint_ = value;
3398 public const int IntDivFieldNumber = 7;
3402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3403 public global::Google.OrTools.Sat.IntegerArgumentProto IntDiv {
3404 get {
return constraintCase_ ==
ConstraintOneofCase.IntDiv ? (global::Google.OrTools.Sat.IntegerArgumentProto) constraint_ :
null; }
3406 constraint_ = value;
3412 public const int IntModFieldNumber = 8;
3416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3417 public global::Google.OrTools.Sat.IntegerArgumentProto IntMod {
3418 get {
return constraintCase_ ==
ConstraintOneofCase.IntMod ? (global::Google.OrTools.Sat.IntegerArgumentProto) constraint_ :
null; }
3420 constraint_ = value;
3426 public const int IntMaxFieldNumber = 9;
3431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3432 public global::Google.OrTools.Sat.IntegerArgumentProto IntMax {
3433 get {
return constraintCase_ ==
ConstraintOneofCase.IntMax ? (global::Google.OrTools.Sat.IntegerArgumentProto) constraint_ :
null; }
3435 constraint_ = value;
3441 public const int IntMinFieldNumber = 10;
3446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3447 public global::Google.OrTools.Sat.IntegerArgumentProto IntMin {
3448 get {
return constraintCase_ ==
ConstraintOneofCase.IntMin ? (global::Google.OrTools.Sat.IntegerArgumentProto) constraint_ :
null; }
3450 constraint_ = value;
3456 public const int IntProdFieldNumber = 11;
3461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3462 public global::Google.OrTools.Sat.IntegerArgumentProto IntProd {
3463 get {
return constraintCase_ ==
ConstraintOneofCase.IntProd ? (global::Google.OrTools.Sat.IntegerArgumentProto) constraint_ :
null; }
3465 constraint_ = value;
3471 public const int LinearFieldNumber = 12;
3476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3477 public global::Google.OrTools.Sat.LinearConstraintProto Linear {
3478 get {
return constraintCase_ ==
ConstraintOneofCase.Linear ? (global::Google.OrTools.Sat.LinearConstraintProto) constraint_ :
null; }
3480 constraint_ = value;
3486 public const int AllDiffFieldNumber = 13;
3490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3491 public global::Google.OrTools.Sat.AllDifferentConstraintProto AllDiff {
3492 get {
return constraintCase_ ==
ConstraintOneofCase.AllDiff ? (global::Google.OrTools.Sat.AllDifferentConstraintProto) constraint_ :
null; }
3494 constraint_ = value;
3500 public const int ElementFieldNumber = 14;
3505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3506 public global::Google.OrTools.Sat.ElementConstraintProto Element {
3507 get {
return constraintCase_ ==
ConstraintOneofCase.Element ? (global::Google.OrTools.Sat.ElementConstraintProto) constraint_ :
null; }
3509 constraint_ = value;
3515 public const int CircuitFieldNumber = 15;
3520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3521 public global::Google.OrTools.Sat.CircuitConstraintProto Circuit {
3522 get {
return constraintCase_ ==
ConstraintOneofCase.Circuit ? (global::Google.OrTools.Sat.CircuitConstraintProto) constraint_ :
null; }
3524 constraint_ = value;
3530 public const int RoutesFieldNumber = 23;
3534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3535 public global::Google.OrTools.Sat.RoutesConstraintProto Routes {
3536 get {
return constraintCase_ ==
ConstraintOneofCase.Routes ? (global::Google.OrTools.Sat.RoutesConstraintProto) constraint_ :
null; }
3538 constraint_ = value;
3544 public const int CircuitCoveringFieldNumber = 25;
3549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3550 public global::Google.OrTools.Sat.CircuitCoveringConstraintProto CircuitCovering {
3551 get {
return constraintCase_ ==
ConstraintOneofCase.CircuitCovering ? (global::Google.OrTools.Sat.CircuitCoveringConstraintProto) constraint_ :
null; }
3553 constraint_ = value;
3559 public const int TableFieldNumber = 16;
3564 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3565 public global::Google.OrTools.Sat.TableConstraintProto Table {
3566 get {
return constraintCase_ ==
ConstraintOneofCase.Table ? (global::Google.OrTools.Sat.TableConstraintProto) constraint_ :
null; }
3568 constraint_ = value;
3574 public const int AutomatonFieldNumber = 17;
3579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3580 public global::Google.OrTools.Sat.AutomatonConstraintProto Automaton {
3581 get {
return constraintCase_ ==
ConstraintOneofCase.Automaton ? (global::Google.OrTools.Sat.AutomatonConstraintProto) constraint_ :
null; }
3583 constraint_ = value;
3589 public const int InverseFieldNumber = 18;
3594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3595 public global::Google.OrTools.Sat.InverseConstraintProto Inverse {
3596 get {
return constraintCase_ ==
ConstraintOneofCase.Inverse ? (global::Google.OrTools.Sat.InverseConstraintProto) constraint_ :
null; }
3598 constraint_ = value;
3604 public const int ReservoirFieldNumber = 24;
3610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3611 public global::Google.OrTools.Sat.ReservoirConstraintProto Reservoir {
3612 get {
return constraintCase_ ==
ConstraintOneofCase.Reservoir ? (global::Google.OrTools.Sat.ReservoirConstraintProto) constraint_ :
null; }
3614 constraint_ = value;
3620 public const int IntervalFieldNumber = 19;
3625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3626 public global::Google.OrTools.Sat.IntervalConstraintProto Interval {
3627 get {
return constraintCase_ ==
ConstraintOneofCase.Interval ? (global::Google.OrTools.Sat.IntervalConstraintProto) constraint_ :
null; }
3629 constraint_ = value;
3635 public const int NoOverlapFieldNumber = 20;
3641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3642 public global::Google.OrTools.Sat.NoOverlapConstraintProto NoOverlap {
3643 get {
return constraintCase_ ==
ConstraintOneofCase.NoOverlap ? (global::Google.OrTools.Sat.NoOverlapConstraintProto) constraint_ :
null; }
3645 constraint_ = value;
3651 public const int NoOverlap2DFieldNumber = 21;
3655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3656 public global::Google.OrTools.Sat.NoOverlap2DConstraintProto NoOverlap2D {
3657 get {
return constraintCase_ ==
ConstraintOneofCase.NoOverlap2D ? (global::Google.OrTools.Sat.NoOverlap2DConstraintProto) constraint_ :
null; }
3659 constraint_ = value;
3665 public const int CumulativeFieldNumber = 22;
3671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3672 public global::Google.OrTools.Sat.CumulativeConstraintProto Cumulative {
3673 get {
return constraintCase_ ==
ConstraintOneofCase.Cumulative ? (global::Google.OrTools.Sat.CumulativeConstraintProto) constraint_ :
null; }
3675 constraint_ = value;
3680 private object constraint_;
3698 CircuitCovering = 25,
3708 private ConstraintOneofCase constraintCase_ = ConstraintOneofCase.None;
3709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3711 get {
return constraintCase_; }
3714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3727 if (ReferenceEquals(other,
null)) {
3730 if (ReferenceEquals(other,
this)) {
3733 if (Name != other.
Name)
return false;
3734 if(!enforcementLiteral_.Equals(other.enforcementLiteral_))
return false;
3735 if (!
object.Equals(BoolOr, other.
BoolOr))
return false;
3736 if (!
object.Equals(BoolAnd, other.
BoolAnd))
return false;
3737 if (!
object.Equals(AtMostOne, other.
AtMostOne))
return false;
3738 if (!
object.Equals(BoolXor, other.
BoolXor))
return false;
3739 if (!
object.Equals(IntDiv, other.
IntDiv))
return false;
3740 if (!
object.Equals(IntMod, other.
IntMod))
return false;
3741 if (!
object.Equals(IntMax, other.
IntMax))
return false;
3742 if (!
object.Equals(IntMin, other.
IntMin))
return false;
3743 if (!
object.Equals(IntProd, other.
IntProd))
return false;
3744 if (!
object.Equals(Linear, other.
Linear))
return false;
3745 if (!
object.Equals(AllDiff, other.
AllDiff))
return false;
3746 if (!
object.Equals(Element, other.
Element))
return false;
3747 if (!
object.Equals(Circuit, other.
Circuit))
return false;
3748 if (!
object.Equals(Routes, other.
Routes))
return false;
3749 if (!
object.Equals(CircuitCovering, other.
CircuitCovering))
return false;
3750 if (!
object.Equals(Table, other.
Table))
return false;
3751 if (!
object.Equals(Automaton, other.
Automaton))
return false;
3752 if (!
object.Equals(Inverse, other.
Inverse))
return false;
3753 if (!
object.Equals(Reservoir, other.
Reservoir))
return false;
3754 if (!
object.Equals(Interval, other.
Interval))
return false;
3755 if (!
object.Equals(NoOverlap, other.
NoOverlap))
return false;
3756 if (!
object.Equals(NoOverlap2D, other.
NoOverlap2D))
return false;
3757 if (!
object.Equals(Cumulative, other.
Cumulative))
return false;
3759 return Equals(_unknownFields, other._unknownFields);
3762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3765 if (Name.Length != 0) hash ^= Name.GetHashCode();
3766 hash ^= enforcementLiteral_.GetHashCode();
3781 if (constraintCase_ ==
ConstraintOneofCase.CircuitCovering) hash ^= CircuitCovering.GetHashCode();
3788 if (constraintCase_ ==
ConstraintOneofCase.NoOverlap2D) hash ^= NoOverlap2D.GetHashCode();
3790 hash ^= (int) constraintCase_;
3791 if (_unknownFields !=
null) {
3792 hash ^= _unknownFields.GetHashCode();
3797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3799 return pb::JsonFormatter.ToDiagnosticString(
this);
3802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3803 public void WriteTo(pb::CodedOutputStream output) {
3804 if (Name.Length != 0) {
3805 output.WriteRawTag(10);
3806 output.WriteString(Name);
3808 enforcementLiteral_.WriteTo(output, _repeated_enforcementLiteral_codec);
3810 output.WriteRawTag(26);
3811 output.WriteMessage(BoolOr);
3814 output.WriteRawTag(34);
3815 output.WriteMessage(BoolAnd);
3818 output.WriteRawTag(42);
3819 output.WriteMessage(BoolXor);
3822 output.WriteRawTag(58);
3823 output.WriteMessage(IntDiv);
3826 output.WriteRawTag(66);
3827 output.WriteMessage(IntMod);
3830 output.WriteRawTag(74);
3831 output.WriteMessage(IntMax);
3834 output.WriteRawTag(82);
3835 output.WriteMessage(IntMin);
3838 output.WriteRawTag(90);
3839 output.WriteMessage(IntProd);
3842 output.WriteRawTag(98);
3843 output.WriteMessage(Linear);
3846 output.WriteRawTag(106);
3847 output.WriteMessage(AllDiff);
3850 output.WriteRawTag(114);
3851 output.WriteMessage(Element);
3854 output.WriteRawTag(122);
3855 output.WriteMessage(Circuit);
3858 output.WriteRawTag(130, 1);
3859 output.WriteMessage(Table);
3862 output.WriteRawTag(138, 1);
3863 output.WriteMessage(Automaton);
3866 output.WriteRawTag(146, 1);
3867 output.WriteMessage(Inverse);
3870 output.WriteRawTag(154, 1);
3871 output.WriteMessage(Interval);
3874 output.WriteRawTag(162, 1);
3875 output.WriteMessage(NoOverlap);
3878 output.WriteRawTag(170, 1);
3879 output.WriteMessage(NoOverlap2D);
3882 output.WriteRawTag(178, 1);
3883 output.WriteMessage(Cumulative);
3886 output.WriteRawTag(186, 1);
3887 output.WriteMessage(Routes);
3890 output.WriteRawTag(194, 1);
3891 output.WriteMessage(Reservoir);
3894 output.WriteRawTag(202, 1);
3895 output.WriteMessage(CircuitCovering);
3898 output.WriteRawTag(210, 1);
3899 output.WriteMessage(AtMostOne);
3901 if (_unknownFields !=
null) {
3902 _unknownFields.WriteTo(output);
3906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3909 if (Name.Length != 0) {
3910 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
3912 size += enforcementLiteral_.CalculateSize(_repeated_enforcementLiteral_codec);
3914 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolOr);
3917 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolAnd);
3920 size += 2 + pb::CodedOutputStream.ComputeMessageSize(AtMostOne);
3923 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolXor);
3926 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntDiv);
3929 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntMod);
3932 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntMax);
3935 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntMin);
3938 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntProd);
3941 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Linear);
3944 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllDiff);
3947 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Element);
3950 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Circuit);
3953 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Routes);
3956 size += 2 + pb::CodedOutputStream.ComputeMessageSize(CircuitCovering);
3959 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Table);
3962 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Automaton);
3965 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Inverse);
3968 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reservoir);
3971 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Interval);
3974 size += 2 + pb::CodedOutputStream.ComputeMessageSize(NoOverlap);
3977 size += 2 + pb::CodedOutputStream.ComputeMessageSize(NoOverlap2D);
3980 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Cumulative);
3982 if (_unknownFields !=
null) {
3983 size += _unknownFields.CalculateSize();
3988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3990 if (other ==
null) {
3993 if (other.
Name.Length != 0) {
3996 enforcementLiteral_.Add(other.enforcementLiteral_);
3999 if (BoolOr ==
null) {
4000 BoolOr =
new global::Google.OrTools.Sat.BoolArgumentProto();
4002 BoolOr.MergeFrom(other.
BoolOr);
4005 if (BoolAnd ==
null) {
4006 BoolAnd =
new global::Google.OrTools.Sat.BoolArgumentProto();
4008 BoolAnd.MergeFrom(other.
BoolAnd);
4011 if (AtMostOne ==
null) {
4012 AtMostOne =
new global::Google.OrTools.Sat.BoolArgumentProto();
4017 if (BoolXor ==
null) {
4018 BoolXor =
new global::Google.OrTools.Sat.BoolArgumentProto();
4020 BoolXor.MergeFrom(other.
BoolXor);
4023 if (IntDiv ==
null) {
4024 IntDiv =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4026 IntDiv.MergeFrom(other.
IntDiv);
4029 if (IntMod ==
null) {
4030 IntMod =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4032 IntMod.MergeFrom(other.
IntMod);
4035 if (IntMax ==
null) {
4036 IntMax =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4038 IntMax.MergeFrom(other.
IntMax);
4041 if (IntMin ==
null) {
4042 IntMin =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4044 IntMin.MergeFrom(other.
IntMin);
4047 if (IntProd ==
null) {
4048 IntProd =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4050 IntProd.MergeFrom(other.
IntProd);
4053 if (Linear ==
null) {
4054 Linear =
new global::Google.OrTools.Sat.LinearConstraintProto();
4056 Linear.MergeFrom(other.
Linear);
4059 if (AllDiff ==
null) {
4060 AllDiff =
new global::Google.OrTools.Sat.AllDifferentConstraintProto();
4062 AllDiff.MergeFrom(other.
AllDiff);
4065 if (Element ==
null) {
4066 Element =
new global::Google.OrTools.Sat.ElementConstraintProto();
4068 Element.MergeFrom(other.
Element);
4071 if (Circuit ==
null) {
4072 Circuit =
new global::Google.OrTools.Sat.CircuitConstraintProto();
4074 Circuit.MergeFrom(other.
Circuit);
4077 if (Routes ==
null) {
4078 Routes =
new global::Google.OrTools.Sat.RoutesConstraintProto();
4080 Routes.MergeFrom(other.
Routes);
4083 if (CircuitCovering ==
null) {
4084 CircuitCovering =
new global::Google.OrTools.Sat.CircuitCoveringConstraintProto();
4089 if (Table ==
null) {
4090 Table =
new global::Google.OrTools.Sat.TableConstraintProto();
4092 Table.MergeFrom(other.
Table);
4095 if (Automaton ==
null) {
4096 Automaton =
new global::Google.OrTools.Sat.AutomatonConstraintProto();
4101 if (Inverse ==
null) {
4102 Inverse =
new global::Google.OrTools.Sat.InverseConstraintProto();
4104 Inverse.MergeFrom(other.
Inverse);
4107 if (Reservoir ==
null) {
4108 Reservoir =
new global::Google.OrTools.Sat.ReservoirConstraintProto();
4113 if (Interval ==
null) {
4114 Interval =
new global::Google.OrTools.Sat.IntervalConstraintProto();
4116 Interval.MergeFrom(other.
Interval);
4119 if (NoOverlap ==
null) {
4120 NoOverlap =
new global::Google.OrTools.Sat.NoOverlapConstraintProto();
4125 if (NoOverlap2D ==
null) {
4126 NoOverlap2D =
new global::Google.OrTools.Sat.NoOverlap2DConstraintProto();
4131 if (Cumulative ==
null) {
4132 Cumulative =
new global::Google.OrTools.Sat.CumulativeConstraintProto();
4138 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4144 while ((tag = input.ReadTag()) != 0) {
4147 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4150 Name = input.ReadString();
4155 enforcementLiteral_.AddEntriesFrom(input, _repeated_enforcementLiteral_codec);
4159 global::Google.OrTools.Sat.BoolArgumentProto subBuilder =
new global::Google.OrTools.Sat.BoolArgumentProto();
4161 subBuilder.MergeFrom(BoolOr);
4163 input.ReadMessage(subBuilder);
4164 BoolOr = subBuilder;
4168 global::Google.OrTools.Sat.BoolArgumentProto subBuilder =
new global::Google.OrTools.Sat.BoolArgumentProto();
4170 subBuilder.MergeFrom(BoolAnd);
4172 input.ReadMessage(subBuilder);
4173 BoolAnd = subBuilder;
4177 global::Google.OrTools.Sat.BoolArgumentProto subBuilder =
new global::Google.OrTools.Sat.BoolArgumentProto();
4179 subBuilder.MergeFrom(BoolXor);
4181 input.ReadMessage(subBuilder);
4182 BoolXor = subBuilder;
4186 global::Google.OrTools.Sat.IntegerArgumentProto subBuilder =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4188 subBuilder.MergeFrom(IntDiv);
4190 input.ReadMessage(subBuilder);
4191 IntDiv = subBuilder;
4195 global::Google.OrTools.Sat.IntegerArgumentProto subBuilder =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4197 subBuilder.MergeFrom(IntMod);
4199 input.ReadMessage(subBuilder);
4200 IntMod = subBuilder;
4204 global::Google.OrTools.Sat.IntegerArgumentProto subBuilder =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4206 subBuilder.MergeFrom(IntMax);
4208 input.ReadMessage(subBuilder);
4209 IntMax = subBuilder;
4213 global::Google.OrTools.Sat.IntegerArgumentProto subBuilder =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4215 subBuilder.MergeFrom(IntMin);
4217 input.ReadMessage(subBuilder);
4218 IntMin = subBuilder;
4222 global::Google.OrTools.Sat.IntegerArgumentProto subBuilder =
new global::Google.OrTools.Sat.IntegerArgumentProto();
4224 subBuilder.MergeFrom(IntProd);
4226 input.ReadMessage(subBuilder);
4227 IntProd = subBuilder;
4231 global::Google.OrTools.Sat.LinearConstraintProto subBuilder =
new global::Google.OrTools.Sat.LinearConstraintProto();
4233 subBuilder.MergeFrom(Linear);
4235 input.ReadMessage(subBuilder);
4236 Linear = subBuilder;
4240 global::Google.OrTools.Sat.AllDifferentConstraintProto subBuilder =
new global::Google.OrTools.Sat.AllDifferentConstraintProto();
4242 subBuilder.MergeFrom(AllDiff);
4244 input.ReadMessage(subBuilder);
4245 AllDiff = subBuilder;
4249 global::Google.OrTools.Sat.ElementConstraintProto subBuilder =
new global::Google.OrTools.Sat.ElementConstraintProto();
4251 subBuilder.MergeFrom(Element);
4253 input.ReadMessage(subBuilder);
4254 Element = subBuilder;
4258 global::Google.OrTools.Sat.CircuitConstraintProto subBuilder =
new global::Google.OrTools.Sat.CircuitConstraintProto();
4260 subBuilder.MergeFrom(Circuit);
4262 input.ReadMessage(subBuilder);
4263 Circuit = subBuilder;
4267 global::Google.OrTools.Sat.TableConstraintProto subBuilder =
new global::Google.OrTools.Sat.TableConstraintProto();
4269 subBuilder.MergeFrom(Table);
4271 input.ReadMessage(subBuilder);
4276 global::Google.OrTools.Sat.AutomatonConstraintProto subBuilder =
new global::Google.OrTools.Sat.AutomatonConstraintProto();
4278 subBuilder.MergeFrom(Automaton);
4280 input.ReadMessage(subBuilder);
4281 Automaton = subBuilder;
4285 global::Google.OrTools.Sat.InverseConstraintProto subBuilder =
new global::Google.OrTools.Sat.InverseConstraintProto();
4287 subBuilder.MergeFrom(Inverse);
4289 input.ReadMessage(subBuilder);
4290 Inverse = subBuilder;
4294 global::Google.OrTools.Sat.IntervalConstraintProto subBuilder =
new global::Google.OrTools.Sat.IntervalConstraintProto();
4296 subBuilder.MergeFrom(Interval);
4298 input.ReadMessage(subBuilder);
4299 Interval = subBuilder;
4303 global::Google.OrTools.Sat.NoOverlapConstraintProto subBuilder =
new global::Google.OrTools.Sat.NoOverlapConstraintProto();
4305 subBuilder.MergeFrom(NoOverlap);
4307 input.ReadMessage(subBuilder);
4308 NoOverlap = subBuilder;
4312 global::Google.OrTools.Sat.NoOverlap2DConstraintProto subBuilder =
new global::Google.OrTools.Sat.NoOverlap2DConstraintProto();
4314 subBuilder.MergeFrom(NoOverlap2D);
4316 input.ReadMessage(subBuilder);
4317 NoOverlap2D = subBuilder;
4321 global::Google.OrTools.Sat.CumulativeConstraintProto subBuilder =
new global::Google.OrTools.Sat.CumulativeConstraintProto();
4323 subBuilder.MergeFrom(Cumulative);
4325 input.ReadMessage(subBuilder);
4326 Cumulative = subBuilder;
4330 global::Google.OrTools.Sat.RoutesConstraintProto subBuilder =
new global::Google.OrTools.Sat.RoutesConstraintProto();
4332 subBuilder.MergeFrom(Routes);
4334 input.ReadMessage(subBuilder);
4335 Routes = subBuilder;
4339 global::Google.OrTools.Sat.ReservoirConstraintProto subBuilder =
new global::Google.OrTools.Sat.ReservoirConstraintProto();
4341 subBuilder.MergeFrom(Reservoir);
4343 input.ReadMessage(subBuilder);
4344 Reservoir = subBuilder;
4348 global::Google.OrTools.Sat.CircuitCoveringConstraintProto subBuilder =
new global::Google.OrTools.Sat.CircuitCoveringConstraintProto();
4350 subBuilder.MergeFrom(CircuitCovering);
4352 input.ReadMessage(subBuilder);
4353 CircuitCovering = subBuilder;
4357 global::Google.OrTools.Sat.BoolArgumentProto subBuilder =
new global::Google.OrTools.Sat.BoolArgumentProto();
4359 subBuilder.MergeFrom(AtMostOne);
4361 input.ReadMessage(subBuilder);
4362 AtMostOne = subBuilder;
4377 private static readonly pb::MessageParser<CpObjectiveProto> _parser =
new pb::MessageParser<CpObjectiveProto>(() =>
new CpObjectiveProto());
4378 private pb::UnknownFieldSet _unknownFields;
4379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4380 public static pb::MessageParser<CpObjectiveProto> Parser {
get {
return _parser; } }
4382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4383 public static pbr::MessageDescriptor Descriptor {
4384 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[18]; }
4387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4388 pbr::MessageDescriptor pb::IMessage.Descriptor {
4389 get {
return Descriptor; }
4392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4397 partial
void OnConstruction();
4399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4401 vars_ = other.vars_.Clone();
4402 coeffs_ = other.coeffs_.Clone();
4403 offset_ = other.offset_;
4404 scalingFactor_ = other.scalingFactor_;
4405 domain_ = other.domain_.Clone();
4406 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4415 public const int VarsFieldNumber = 1;
4416 private static readonly pb::FieldCodec<int> _repeated_vars_codec
4417 = pb::FieldCodec.ForInt32(10);
4418 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
4424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4425 public pbc::RepeatedField<int> Vars {
4426 get {
return vars_; }
4430 public const int CoeffsFieldNumber = 4;
4431 private static readonly pb::FieldCodec<long> _repeated_coeffs_codec
4432 = pb::FieldCodec.ForInt64(34);
4433 private readonly pbc::RepeatedField<long> coeffs_ =
new pbc::RepeatedField<long>();
4434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4435 public pbc::RepeatedField<long> Coeffs {
4436 get {
return coeffs_; }
4440 public const int OffsetFieldNumber = 2;
4441 private double offset_;
4451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4452 public double Offset {
4453 get {
return offset_; }
4460 public const int ScalingFactorFieldNumber = 3;
4461 private double scalingFactor_;
4462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4463 public double ScalingFactor {
4464 get {
return scalingFactor_; }
4466 scalingFactor_ = value;
4471 public const int DomainFieldNumber = 5;
4472 private static readonly pb::FieldCodec<long> _repeated_domain_codec
4473 = pb::FieldCodec.ForInt64(42);
4474 private readonly pbc::RepeatedField<long> domain_ =
new pbc::RepeatedField<long>();
4480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4482 get {
return domain_; }
4485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4492 if (ReferenceEquals(other,
null)) {
4495 if (ReferenceEquals(other,
this)) {
4498 if(!vars_.Equals(other.vars_))
return false;
4499 if(!coeffs_.Equals(other.coeffs_))
return false;
4500 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Offset, other.
Offset))
return false;
4501 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ScalingFactor, other.
ScalingFactor))
return false;
4502 if(!domain_.Equals(other.domain_))
return false;
4503 return Equals(_unknownFields, other._unknownFields);
4506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4509 hash ^= vars_.GetHashCode();
4510 hash ^= coeffs_.GetHashCode();
4511 if (Offset != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Offset);
4512 if (ScalingFactor != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ScalingFactor);
4513 hash ^= domain_.GetHashCode();
4514 if (_unknownFields !=
null) {
4515 hash ^= _unknownFields.GetHashCode();
4520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4522 return pb::JsonFormatter.ToDiagnosticString(
this);
4525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4526 public void WriteTo(pb::CodedOutputStream output) {
4527 vars_.WriteTo(output, _repeated_vars_codec);
4529 output.WriteRawTag(17);
4530 output.WriteDouble(Offset);
4532 if (ScalingFactor != 0D) {
4533 output.WriteRawTag(25);
4534 output.WriteDouble(ScalingFactor);
4536 coeffs_.WriteTo(output, _repeated_coeffs_codec);
4537 domain_.WriteTo(output, _repeated_domain_codec);
4538 if (_unknownFields !=
null) {
4539 _unknownFields.WriteTo(output);
4543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4546 size += vars_.CalculateSize(_repeated_vars_codec);
4547 size += coeffs_.CalculateSize(_repeated_coeffs_codec);
4551 if (ScalingFactor != 0D) {
4554 size += domain_.CalculateSize(_repeated_domain_codec);
4555 if (_unknownFields !=
null) {
4556 size += _unknownFields.CalculateSize();
4561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4563 if (other ==
null) {
4566 vars_.Add(other.vars_);
4567 coeffs_.Add(other.coeffs_);
4568 if (other.
Offset != 0D) {
4574 domain_.Add(other.domain_);
4575 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4581 while ((tag = input.ReadTag()) != 0) {
4584 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4588 vars_.AddEntriesFrom(input, _repeated_vars_codec);
4592 Offset = input.ReadDouble();
4596 ScalingFactor = input.ReadDouble();
4601 coeffs_.AddEntriesFrom(input, _repeated_coeffs_codec);
4606 domain_.AddEntriesFrom(input, _repeated_domain_codec);
4620 private static readonly pb::MessageParser<DecisionStrategyProto> _parser =
new pb::MessageParser<DecisionStrategyProto>(() =>
new DecisionStrategyProto());
4621 private pb::UnknownFieldSet _unknownFields;
4622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4623 public static pb::MessageParser<DecisionStrategyProto> Parser {
get {
return _parser; } }
4625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4626 public static pbr::MessageDescriptor Descriptor {
4627 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[19]; }
4630 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4631 pbr::MessageDescriptor pb::IMessage.Descriptor {
4632 get {
return Descriptor; }
4635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4640 partial
void OnConstruction();
4642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4644 variables_ = other.variables_.Clone();
4645 variableSelectionStrategy_ = other.variableSelectionStrategy_;
4646 domainReductionStrategy_ = other.domainReductionStrategy_;
4647 transformations_ = other.transformations_.Clone();
4648 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4657 public const int VariablesFieldNumber = 1;
4658 private static readonly pb::FieldCodec<int> _repeated_variables_codec
4659 = pb::FieldCodec.ForInt32(10);
4660 private readonly pbc::RepeatedField<int> variables_ =
new pbc::RepeatedField<int>();
4666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4667 public pbc::RepeatedField<int> Variables {
4668 get {
return variables_; }
4672 public const int VariableSelectionStrategyFieldNumber = 2;
4673 private global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy variableSelectionStrategy_ = 0;
4674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4675 public global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy VariableSelectionStrategy {
4676 get {
return variableSelectionStrategy_; }
4678 variableSelectionStrategy_ = value;
4683 public const int DomainReductionStrategyFieldNumber = 3;
4684 private global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy domainReductionStrategy_ = 0;
4685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4686 public global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy DomainReductionStrategy {
4687 get {
return domainReductionStrategy_; }
4689 domainReductionStrategy_ = value;
4694 public const int TransformationsFieldNumber = 4;
4695 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation> _repeated_transformations_codec
4696 = pb::FieldCodec.ForMessage(34, global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation.Parser);
4697 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation> transformations_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation>();
4698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4699 public pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto.Types.AffineTransformation> Transformations {
4700 get {
return transformations_; }
4703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4710 if (ReferenceEquals(other,
null)) {
4713 if (ReferenceEquals(other,
this)) {
4716 if(!variables_.Equals(other.variables_))
return false;
4719 if(!transformations_.Equals(other.transformations_))
return false;
4720 return Equals(_unknownFields, other._unknownFields);
4723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4726 hash ^= variables_.GetHashCode();
4727 if (VariableSelectionStrategy != 0) hash ^= VariableSelectionStrategy.GetHashCode();
4728 if (DomainReductionStrategy != 0) hash ^= DomainReductionStrategy.GetHashCode();
4729 hash ^= transformations_.GetHashCode();
4730 if (_unknownFields !=
null) {
4731 hash ^= _unknownFields.GetHashCode();
4736 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4738 return pb::JsonFormatter.ToDiagnosticString(
this);
4741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4742 public void WriteTo(pb::CodedOutputStream output) {
4743 variables_.WriteTo(output, _repeated_variables_codec);
4744 if (VariableSelectionStrategy != 0) {
4745 output.WriteRawTag(16);
4746 output.WriteEnum((
int) VariableSelectionStrategy);
4748 if (DomainReductionStrategy != 0) {
4749 output.WriteRawTag(24);
4750 output.WriteEnum((
int) DomainReductionStrategy);
4752 transformations_.WriteTo(output, _repeated_transformations_codec);
4753 if (_unknownFields !=
null) {
4754 _unknownFields.WriteTo(output);
4758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4761 size += variables_.CalculateSize(_repeated_variables_codec);
4762 if (VariableSelectionStrategy != 0) {
4763 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) VariableSelectionStrategy);
4765 if (DomainReductionStrategy != 0) {
4766 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) DomainReductionStrategy);
4768 size += transformations_.CalculateSize(_repeated_transformations_codec);
4769 if (_unknownFields !=
null) {
4770 size += _unknownFields.CalculateSize();
4775 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4777 if (other ==
null) {
4780 variables_.Add(other.variables_);
4787 transformations_.Add(other.transformations_);
4788 _unknownFields = pb::UnknownFieldSet.
MergeFrom(_unknownFields, other._unknownFields);
4791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4794 while ((tag = input.ReadTag()) != 0) {
4797 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4801 variables_.AddEntriesFrom(input, _repeated_variables_codec);
4805 VariableSelectionStrategy = (global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy) input.ReadEnum();
4809 DomainReductionStrategy = (global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy) input.ReadEnum();
4813 transformations_.AddEntriesFrom(input, _repeated_transformations_codec);
4820 #region Nested types 4821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4831 [pbr::OriginalName(
"CHOOSE_FIRST")] ChooseFirst = 0,
4832 [pbr::OriginalName(
"CHOOSE_LOWEST_MIN")] ChooseLowestMin = 1,
4833 [pbr::OriginalName(
"CHOOSE_HIGHEST_MAX")] ChooseHighestMax = 2,
4834 [pbr::OriginalName(
"CHOOSE_MIN_DOMAIN_SIZE")] ChooseMinDomainSize = 3,
4835 [pbr::OriginalName(
"CHOOSE_MAX_DOMAIN_SIZE")] ChooseMaxDomainSize = 4,
4845 [pbr::OriginalName(
"SELECT_MIN_VALUE")] SelectMinValue = 0,
4846 [pbr::OriginalName(
"SELECT_MAX_VALUE")] SelectMaxValue = 1,
4847 [pbr::OriginalName(
"SELECT_LOWER_HALF")] SelectLowerHalf = 2,
4848 [pbr::OriginalName(
"SELECT_UPPER_HALF")] SelectUpperHalf = 3,
4858 private static readonly pb::MessageParser<AffineTransformation> _parser =
new pb::MessageParser<AffineTransformation>(() =>
new AffineTransformation());
4859 private pb::UnknownFieldSet _unknownFields;
4860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4861 public static pb::MessageParser<AffineTransformation> Parser {
get {
return _parser; } }
4863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4864 public static pbr::MessageDescriptor Descriptor {
4865 get {
return global::Google.OrTools.Sat.DecisionStrategyProto.Descriptor.NestedTypes[0]; }
4868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4869 pbr::MessageDescriptor pb::IMessage.Descriptor {
4870 get {
return Descriptor; }
4873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4878 partial
void OnConstruction();
4880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4883 offset_ = other.offset_;
4884 positiveCoeff_ = other.positiveCoeff_;
4885 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4894 public const int VarFieldNumber = 1;
4896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4898 get {
return var_; }
4905 public const int OffsetFieldNumber = 2;
4906 private long offset_;
4907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4908 public long Offset {
4909 get {
return offset_; }
4916 public const int PositiveCoeffFieldNumber = 3;
4917 private long positiveCoeff_;
4918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4919 public long PositiveCoeff {
4920 get {
return positiveCoeff_; }
4922 positiveCoeff_ = value;
4926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4933 if (ReferenceEquals(other,
null)) {
4936 if (ReferenceEquals(other,
this)) {
4939 if (Var != other.
Var)
return false;
4940 if (Offset != other.
Offset)
return false;
4942 return Equals(_unknownFields, other._unknownFields);
4945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4948 if (Var != 0) hash ^= Var.GetHashCode();
4949 if (Offset != 0L) hash ^= Offset.GetHashCode();
4950 if (PositiveCoeff != 0L) hash ^= PositiveCoeff.GetHashCode();
4951 if (_unknownFields !=
null) {
4952 hash ^= _unknownFields.GetHashCode();
4957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4959 return pb::JsonFormatter.ToDiagnosticString(
this);
4962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4963 public void WriteTo(pb::CodedOutputStream output) {
4965 output.WriteRawTag(8);
4966 output.WriteInt32(Var);
4969 output.WriteRawTag(16);
4970 output.WriteInt64(Offset);
4972 if (PositiveCoeff != 0L) {
4973 output.WriteRawTag(24);
4974 output.WriteInt64(PositiveCoeff);
4976 if (_unknownFields !=
null) {
4977 _unknownFields.WriteTo(output);
4981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4985 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Var);
4988 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset);
4990 if (PositiveCoeff != 0L) {
4991 size += 1 + pb::CodedOutputStream.ComputeInt64Size(PositiveCoeff);
4993 if (_unknownFields !=
null) {
4994 size += _unknownFields.CalculateSize();
4999 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5001 if (other ==
null) {
5004 if (other.
Var != 0) {
5007 if (other.
Offset != 0L) {
5013 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5019 while ((tag = input.ReadTag()) != 0) {
5022 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5025 Var = input.ReadInt32();
5029 Offset = input.ReadInt64();
5033 PositiveCoeff = input.ReadInt64();
5053 private static readonly pb::MessageParser<PartialVariableAssignment> _parser =
new pb::MessageParser<PartialVariableAssignment>(() =>
new PartialVariableAssignment());
5054 private pb::UnknownFieldSet _unknownFields;
5055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5056 public static pb::MessageParser<PartialVariableAssignment> Parser {
get {
return _parser; } }
5058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5059 public static pbr::MessageDescriptor Descriptor {
5060 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[20]; }
5063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5064 pbr::MessageDescriptor pb::IMessage.Descriptor {
5065 get {
return Descriptor; }
5068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5073 partial
void OnConstruction();
5075 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5077 vars_ = other.vars_.Clone();
5078 values_ = other.values_.Clone();
5079 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5088 public const int VarsFieldNumber = 1;
5089 private static readonly pb::FieldCodec<int> _repeated_vars_codec
5090 = pb::FieldCodec.ForInt32(10);
5091 private readonly pbc::RepeatedField<int> vars_ =
new pbc::RepeatedField<int>();
5092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5093 public pbc::RepeatedField<int> Vars {
5094 get {
return vars_; }
5098 public const int ValuesFieldNumber = 2;
5099 private static readonly pb::FieldCodec<long> _repeated_values_codec
5100 = pb::FieldCodec.ForInt64(18);
5101 private readonly pbc::RepeatedField<long> values_ =
new pbc::RepeatedField<long>();
5102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5103 public pbc::RepeatedField<long> Values {
5104 get {
return values_; }
5107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5114 if (ReferenceEquals(other,
null)) {
5117 if (ReferenceEquals(other,
this)) {
5120 if(!vars_.Equals(other.vars_))
return false;
5121 if(!values_.Equals(other.values_))
return false;
5122 return Equals(_unknownFields, other._unknownFields);
5125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5128 hash ^= vars_.GetHashCode();
5129 hash ^= values_.GetHashCode();
5130 if (_unknownFields !=
null) {
5131 hash ^= _unknownFields.GetHashCode();
5136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5138 return pb::JsonFormatter.ToDiagnosticString(
this);
5141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5142 public void WriteTo(pb::CodedOutputStream output) {
5143 vars_.WriteTo(output, _repeated_vars_codec);
5144 values_.WriteTo(output, _repeated_values_codec);
5145 if (_unknownFields !=
null) {
5146 _unknownFields.WriteTo(output);
5150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5153 size += vars_.CalculateSize(_repeated_vars_codec);
5154 size += values_.CalculateSize(_repeated_values_codec);
5155 if (_unknownFields !=
null) {
5156 size += _unknownFields.CalculateSize();
5161 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5163 if (other ==
null) {
5166 vars_.Add(other.vars_);
5167 values_.Add(other.values_);
5168 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5171 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5174 while ((tag = input.ReadTag()) != 0) {
5177 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5181 vars_.AddEntriesFrom(input, _repeated_vars_codec);
5186 values_.AddEntriesFrom(input, _repeated_values_codec);
5199 private static readonly pb::MessageParser<CpModelProto> _parser =
new pb::MessageParser<CpModelProto>(() =>
new CpModelProto());
5200 private pb::UnknownFieldSet _unknownFields;
5201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5202 public static pb::MessageParser<CpModelProto> Parser {
get {
return _parser; } }
5204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5205 public static pbr::MessageDescriptor Descriptor {
5206 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[21]; }
5209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5210 pbr::MessageDescriptor pb::IMessage.Descriptor {
5211 get {
return Descriptor; }
5214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5219 partial
void OnConstruction();
5221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5223 name_ = other.name_;
5224 variables_ = other.variables_.Clone();
5225 constraints_ = other.constraints_.Clone();
5226 objective_ = other.objective_ !=
null ? other.objective_.
Clone() :
null;
5227 searchStrategy_ = other.searchStrategy_.Clone();
5228 solutionHint_ = other.solutionHint_ !=
null ? other.solutionHint_.
Clone() :
null;
5229 _unknownFields = pb::UnknownFieldSet.
Clone(other._unknownFields);
5232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5238 public const int NameFieldNumber = 1;
5239 private string name_ =
"";
5243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5244 public string Name {
5245 get {
return name_; }
5247 name_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5252 public const int VariablesFieldNumber = 2;
5253 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.IntegerVariableProto> _repeated_variables_codec
5254 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.Sat.IntegerVariableProto.Parser);
5255 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> variables_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto>();
5259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5260 public pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> Variables {
5261 get {
return variables_; }
5265 public const int ConstraintsFieldNumber = 3;
5266 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.ConstraintProto> _repeated_constraints_codec
5267 = pb::FieldCodec.ForMessage(26, global::Google.OrTools.Sat.ConstraintProto.Parser);
5268 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.ConstraintProto> constraints_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.ConstraintProto>();
5269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5270 public pbc::RepeatedField<global::Google.OrTools.Sat.ConstraintProto> Constraints {
5271 get {
return constraints_; }
5275 public const int ObjectiveFieldNumber = 4;
5276 private global::Google.OrTools.Sat.CpObjectiveProto objective_;
5280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5281 public global::Google.OrTools.Sat.CpObjectiveProto Objective {
5282 get {
return objective_; }
5289 public const int SearchStrategyFieldNumber = 5;
5290 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.DecisionStrategyProto> _repeated_searchStrategy_codec
5291 = pb::FieldCodec.ForMessage(42, global::Google.OrTools.Sat.DecisionStrategyProto.Parser);
5292 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto> searchStrategy_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto>();
5305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5306 public pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto> SearchStrategy {
5307 get {
return searchStrategy_; }
5311 public const int SolutionHintFieldNumber = 6;
5312 private global::Google.OrTools.Sat.PartialVariableAssignment solutionHint_;
5326 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5327 public global::Google.OrTools.Sat.PartialVariableAssignment SolutionHint {
5328 get {
return solutionHint_; }
5330 solutionHint_ = value;
5334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5341 if (ReferenceEquals(other,
null)) {
5344 if (ReferenceEquals(other,
this)) {
5347 if (Name != other.
Name)
return false;
5348 if(!variables_.Equals(other.variables_))
return false;
5349 if(!constraints_.Equals(other.constraints_))
return false;
5350 if (!
object.Equals(Objective, other.
Objective))
return false;
5351 if(!searchStrategy_.Equals(other.searchStrategy_))
return false;
5352 if (!
object.Equals(SolutionHint, other.
SolutionHint))
return false;
5353 return Equals(_unknownFields, other._unknownFields);
5356 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5359 if (Name.Length != 0) hash ^= Name.GetHashCode();
5360 hash ^= variables_.GetHashCode();
5361 hash ^= constraints_.GetHashCode();
5362 if (objective_ !=
null) hash ^= Objective.GetHashCode();
5363 hash ^= searchStrategy_.GetHashCode();
5364 if (solutionHint_ !=
null) hash ^= SolutionHint.GetHashCode();
5365 if (_unknownFields !=
null) {
5366 hash ^= _unknownFields.GetHashCode();
5371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5373 return pb::JsonFormatter.ToDiagnosticString(
this);
5376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5377 public void WriteTo(pb::CodedOutputStream output) {
5378 if (Name.Length != 0) {
5379 output.WriteRawTag(10);
5380 output.WriteString(Name);
5382 variables_.WriteTo(output, _repeated_variables_codec);
5383 constraints_.WriteTo(output, _repeated_constraints_codec);
5384 if (objective_ !=
null) {
5385 output.WriteRawTag(34);
5386 output.WriteMessage(Objective);
5388 searchStrategy_.WriteTo(output, _repeated_searchStrategy_codec);
5389 if (solutionHint_ !=
null) {
5390 output.WriteRawTag(50);
5391 output.WriteMessage(SolutionHint);
5393 if (_unknownFields !=
null) {
5394 _unknownFields.WriteTo(output);
5398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5401 if (Name.Length != 0) {
5402 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
5404 size += variables_.CalculateSize(_repeated_variables_codec);
5405 size += constraints_.CalculateSize(_repeated_constraints_codec);
5406 if (objective_ !=
null) {
5407 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Objective);
5409 size += searchStrategy_.CalculateSize(_repeated_searchStrategy_codec);
5410 if (solutionHint_ !=
null) {
5411 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolutionHint);
5413 if (_unknownFields !=
null) {
5414 size += _unknownFields.CalculateSize();
5419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5421 if (other ==
null) {
5424 if (other.
Name.Length != 0) {
5427 variables_.Add(other.variables_);
5428 constraints_.Add(other.constraints_);
5429 if (other.objective_ !=
null) {
5430 if (objective_ ==
null) {
5431 Objective =
new global::Google.OrTools.Sat.CpObjectiveProto();
5435 searchStrategy_.Add(other.searchStrategy_);
5436 if (other.solutionHint_ !=
null) {
5437 if (solutionHint_ ==
null) {
5438 SolutionHint =
new global::Google.OrTools.Sat.PartialVariableAssignment();
5442 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5448 while ((tag = input.ReadTag()) != 0) {
5451 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5454 Name = input.ReadString();
5458 variables_.AddEntriesFrom(input, _repeated_variables_codec);
5462 constraints_.AddEntriesFrom(input, _repeated_constraints_codec);
5466 if (objective_ ==
null) {
5467 Objective =
new global::Google.OrTools.Sat.CpObjectiveProto();
5469 input.ReadMessage(Objective);
5473 searchStrategy_.AddEntriesFrom(input, _repeated_searchStrategy_codec);
5477 if (solutionHint_ ==
null) {
5478 SolutionHint =
new global::Google.OrTools.Sat.PartialVariableAssignment();
5480 input.ReadMessage(SolutionHint);
5496 private static readonly pb::MessageParser<CpSolverResponse> _parser =
new pb::MessageParser<CpSolverResponse>(() =>
new CpSolverResponse());
5497 private pb::UnknownFieldSet _unknownFields;
5498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5499 public static pb::MessageParser<CpSolverResponse> Parser {
get {
return _parser; } }
5501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5502 public static pbr::MessageDescriptor Descriptor {
5503 get {
return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[22]; }
5506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5507 pbr::MessageDescriptor pb::IMessage.Descriptor {
5508 get {
return Descriptor; }
5511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5516 partial
void OnConstruction();
5518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5520 status_ = other.status_;
5521 solution_ = other.solution_.Clone();
5522 objectiveValue_ = other.objectiveValue_;
5523 bestObjectiveBound_ = other.bestObjectiveBound_;
5524 solutionLowerBounds_ = other.solutionLowerBounds_.Clone();
5525 solutionUpperBounds_ = other.solutionUpperBounds_.Clone();
5526 tightenedVariables_ = other.tightenedVariables_.Clone();
5527 allSolutionsWereFound_ = other.allSolutionsWereFound_;
5528 numBooleans_ = other.numBooleans_;
5529 numConflicts_ = other.numConflicts_;
5530 numBranches_ = other.numBranches_;
5531 numBinaryPropagations_ = other.numBinaryPropagations_;
5532 numIntegerPropagations_ = other.numIntegerPropagations_;
5533 wallTime_ = other.wallTime_;
5534 userTime_ = other.userTime_;
5535 deterministicTime_ = other.deterministicTime_;
5536 solutionInfo_ = other.solutionInfo_;
5537 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5546 public const int StatusFieldNumber = 1;
5547 private global::Google.OrTools.Sat.CpSolverStatus status_ = 0;
5551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5552 public global::Google.OrTools.Sat.CpSolverStatus Status {
5553 get {
return status_; }
5560 public const int SolutionFieldNumber = 2;
5561 private static readonly pb::FieldCodec<long> _repeated_solution_codec
5562 = pb::FieldCodec.ForInt64(18);
5563 private readonly pbc::RepeatedField<long> solution_ =
new pbc::RepeatedField<long>();
5570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5571 public pbc::RepeatedField<long> Solution {
5572 get {
return solution_; }
5576 public const int ObjectiveValueFieldNumber = 3;
5577 private double objectiveValue_;
5584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5585 public double ObjectiveValue {
5586 get {
return objectiveValue_; }
5588 objectiveValue_ = value;
5593 public const int BestObjectiveBoundFieldNumber = 4;
5594 private double bestObjectiveBound_;
5600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5601 public double BestObjectiveBound {
5602 get {
return bestObjectiveBound_; }
5604 bestObjectiveBound_ = value;
5609 public const int SolutionLowerBoundsFieldNumber = 18;
5610 private static readonly pb::FieldCodec<long> _repeated_solutionLowerBounds_codec
5611 = pb::FieldCodec.ForInt64(146);
5612 private readonly pbc::RepeatedField<long> solutionLowerBounds_ =
new pbc::RepeatedField<long>();
5622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5623 public pbc::RepeatedField<long> SolutionLowerBounds {
5624 get {
return solutionLowerBounds_; }
5628 public const int SolutionUpperBoundsFieldNumber = 19;
5629 private static readonly pb::FieldCodec<long> _repeated_solutionUpperBounds_codec
5630 = pb::FieldCodec.ForInt64(154);
5631 private readonly pbc::RepeatedField<long> solutionUpperBounds_ =
new pbc::RepeatedField<long>();
5632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5633 public pbc::RepeatedField<long> SolutionUpperBounds {
5634 get {
return solutionUpperBounds_; }
5638 public const int TightenedVariablesFieldNumber = 21;
5639 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.IntegerVariableProto> _repeated_tightenedVariables_codec
5640 = pb::FieldCodec.ForMessage(170, global::Google.OrTools.Sat.IntegerVariableProto.Parser);
5641 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> tightenedVariables_ =
new pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto>();
5656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5657 public pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> TightenedVariables {
5658 get {
return tightenedVariables_; }
5662 public const int AllSolutionsWereFoundFieldNumber = 5;
5663 private bool allSolutionsWereFound_;
5671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5672 public bool AllSolutionsWereFound {
5673 get {
return allSolutionsWereFound_; }
5675 allSolutionsWereFound_ = value;
5680 public const int NumBooleansFieldNumber = 10;
5681 private long numBooleans_;
5685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5686 public long NumBooleans {
5687 get {
return numBooleans_; }
5689 numBooleans_ = value;
5694 public const int NumConflictsFieldNumber = 11;
5695 private long numConflicts_;
5696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5697 public long NumConflicts {
5698 get {
return numConflicts_; }
5700 numConflicts_ = value;
5705 public const int NumBranchesFieldNumber = 12;
5706 private long numBranches_;
5707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5708 public long NumBranches {
5709 get {
return numBranches_; }
5711 numBranches_ = value;
5716 public const int NumBinaryPropagationsFieldNumber = 13;
5717 private long numBinaryPropagations_;
5718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5719 public long NumBinaryPropagations {
5720 get {
return numBinaryPropagations_; }
5722 numBinaryPropagations_ = value;
5727 public const int NumIntegerPropagationsFieldNumber = 14;
5728 private long numIntegerPropagations_;
5729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5730 public long NumIntegerPropagations {
5731 get {
return numIntegerPropagations_; }
5733 numIntegerPropagations_ = value;
5738 public const int WallTimeFieldNumber = 15;
5739 private double wallTime_;
5740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5741 public double WallTime {
5742 get {
return wallTime_; }
5749 public const int UserTimeFieldNumber = 16;
5750 private double userTime_;
5751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5752 public double UserTime {
5753 get {
return userTime_; }
5760 public const int DeterministicTimeFieldNumber = 17;
5761 private double deterministicTime_;
5762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5763 public double DeterministicTime {
5764 get {
return deterministicTime_; }
5766 deterministicTime_ = value;
5771 public const int SolutionInfoFieldNumber = 20;
5772 private string solutionInfo_ =
"";
5776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5777 public string SolutionInfo {
5778 get {
return solutionInfo_; }
5780 solutionInfo_ = pb::ProtoPreconditions.CheckNotNull(value,
"value");
5784 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5791 if (ReferenceEquals(other,
null)) {
5794 if (ReferenceEquals(other,
this)) {
5797 if (Status != other.
Status)
return false;
5798 if(!solution_.Equals(other.solution_))
return false;
5799 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.
ObjectiveValue))
return false;
5800 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BestObjectiveBound, other.
BestObjectiveBound))
return false;
5801 if(!solutionLowerBounds_.Equals(other.solutionLowerBounds_))
return false;
5802 if(!solutionUpperBounds_.Equals(other.solutionUpperBounds_))
return false;
5803 if(!tightenedVariables_.Equals(other.tightenedVariables_))
return false;
5805 if (NumBooleans != other.
NumBooleans)
return false;
5807 if (NumBranches != other.
NumBranches)
return false;
5810 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(WallTime, other.
WallTime))
return false;
5811 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UserTime, other.
UserTime))
return false;
5812 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DeterministicTime, other.
DeterministicTime))
return false;
5814 return Equals(_unknownFields, other._unknownFields);
5817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5820 if (Status != 0) hash ^= Status.GetHashCode();
5821 hash ^= solution_.GetHashCode();
5822 if (ObjectiveValue != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
5823 if (BestObjectiveBound != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BestObjectiveBound);
5824 hash ^= solutionLowerBounds_.GetHashCode();
5825 hash ^= solutionUpperBounds_.GetHashCode();
5826 hash ^= tightenedVariables_.GetHashCode();
5827 if (AllSolutionsWereFound !=
false) hash ^= AllSolutionsWereFound.GetHashCode();
5828 if (NumBooleans != 0L) hash ^= NumBooleans.GetHashCode();
5829 if (NumConflicts != 0L) hash ^= NumConflicts.GetHashCode();
5830 if (NumBranches != 0L) hash ^= NumBranches.GetHashCode();
5831 if (NumBinaryPropagations != 0L) hash ^= NumBinaryPropagations.GetHashCode();
5832 if (NumIntegerPropagations != 0L) hash ^= NumIntegerPropagations.GetHashCode();
5833 if (WallTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(WallTime);
5834 if (UserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UserTime);
5835 if (DeterministicTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeterministicTime);
5836 if (SolutionInfo.Length != 0) hash ^= SolutionInfo.GetHashCode();
5837 if (_unknownFields !=
null) {
5838 hash ^= _unknownFields.GetHashCode();
5843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5845 return pb::JsonFormatter.ToDiagnosticString(
this);
5848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5849 public void WriteTo(pb::CodedOutputStream output) {
5851 output.WriteRawTag(8);
5852 output.WriteEnum((
int) Status);
5854 solution_.WriteTo(output, _repeated_solution_codec);
5855 if (ObjectiveValue != 0D) {
5856 output.WriteRawTag(25);
5857 output.WriteDouble(ObjectiveValue);
5859 if (BestObjectiveBound != 0D) {
5860 output.WriteRawTag(33);
5861 output.WriteDouble(BestObjectiveBound);
5863 if (AllSolutionsWereFound !=
false) {
5864 output.WriteRawTag(40);
5865 output.WriteBool(AllSolutionsWereFound);
5867 if (NumBooleans != 0L) {
5868 output.WriteRawTag(80);
5869 output.WriteInt64(NumBooleans);
5871 if (NumConflicts != 0L) {
5872 output.WriteRawTag(88);
5873 output.WriteInt64(NumConflicts);
5875 if (NumBranches != 0L) {
5876 output.WriteRawTag(96);
5877 output.WriteInt64(NumBranches);
5879 if (NumBinaryPropagations != 0L) {
5880 output.WriteRawTag(104);
5881 output.WriteInt64(NumBinaryPropagations);
5883 if (NumIntegerPropagations != 0L) {
5884 output.WriteRawTag(112);
5885 output.WriteInt64(NumIntegerPropagations);
5887 if (WallTime != 0D) {
5888 output.WriteRawTag(121);
5889 output.WriteDouble(WallTime);
5891 if (UserTime != 0D) {
5892 output.WriteRawTag(129, 1);
5893 output.WriteDouble(UserTime);
5895 if (DeterministicTime != 0D) {
5896 output.WriteRawTag(137, 1);
5897 output.WriteDouble(DeterministicTime);
5899 solutionLowerBounds_.WriteTo(output, _repeated_solutionLowerBounds_codec);
5900 solutionUpperBounds_.WriteTo(output, _repeated_solutionUpperBounds_codec);
5901 if (SolutionInfo.Length != 0) {
5902 output.WriteRawTag(162, 1);
5903 output.WriteString(SolutionInfo);
5905 tightenedVariables_.WriteTo(output, _repeated_tightenedVariables_codec);
5906 if (_unknownFields !=
null) {
5907 _unknownFields.WriteTo(output);
5911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5915 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) Status);
5917 size += solution_.CalculateSize(_repeated_solution_codec);
5918 if (ObjectiveValue != 0D) {
5921 if (BestObjectiveBound != 0D) {
5924 size += solutionLowerBounds_.CalculateSize(_repeated_solutionLowerBounds_codec);
5925 size += solutionUpperBounds_.CalculateSize(_repeated_solutionUpperBounds_codec);
5926 size += tightenedVariables_.CalculateSize(_repeated_tightenedVariables_codec);
5927 if (AllSolutionsWereFound !=
false) {
5930 if (NumBooleans != 0L) {
5931 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBooleans);
5933 if (NumConflicts != 0L) {
5934 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumConflicts);
5936 if (NumBranches != 0L) {
5937 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBranches);
5939 if (NumBinaryPropagations != 0L) {
5940 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBinaryPropagations);
5942 if (NumIntegerPropagations != 0L) {
5943 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumIntegerPropagations);
5945 if (WallTime != 0D) {
5948 if (UserTime != 0D) {
5951 if (DeterministicTime != 0D) {
5954 if (SolutionInfo.Length != 0) {
5955 size += 2 + pb::CodedOutputStream.ComputeStringSize(SolutionInfo);
5957 if (_unknownFields !=
null) {
5958 size += _unknownFields.CalculateSize();
5963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5965 if (other ==
null) {
5971 solution_.Add(other.solution_);
5978 solutionLowerBounds_.Add(other.solutionLowerBounds_);
5979 solutionUpperBounds_.Add(other.solutionUpperBounds_);
5980 tightenedVariables_.Add(other.tightenedVariables_);
6011 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6017 while ((tag = input.ReadTag()) != 0) {
6020 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6023 Status = (global::Google.OrTools.Sat.CpSolverStatus) input.ReadEnum();
6028 solution_.AddEntriesFrom(input, _repeated_solution_codec);
6032 ObjectiveValue = input.ReadDouble();
6036 BestObjectiveBound = input.ReadDouble();
6040 AllSolutionsWereFound = input.ReadBool();
6044 NumBooleans = input.ReadInt64();
6048 NumConflicts = input.ReadInt64();
6052 NumBranches = input.ReadInt64();
6056 NumBinaryPropagations = input.ReadInt64();
6060 NumIntegerPropagations = input.ReadInt64();
6064 WallTime = input.ReadDouble();
6068 UserTime = input.ReadDouble();
6072 DeterministicTime = input.ReadDouble();
6077 solutionLowerBounds_.AddEntriesFrom(input, _repeated_solutionLowerBounds_codec);
6082 solutionUpperBounds_.AddEntriesFrom(input, _repeated_solutionUpperBounds_codec);
6086 SolutionInfo = input.ReadString();
6090 tightenedVariables_.AddEntriesFrom(input, _repeated_tightenedVariables_codec);
6103 #endregion Designer generated code
global::Google.Protobuf.Reflection pbr
global::Google.Protobuf.Collections pbc
global::System.Collections.Generic scg
global::Google.Protobuf pb