Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
CpModel.pb.cs
Go to the documentation of this file.
1// <auto-generated>
2// Generated by the protocol buffer compiler. DO NOT EDIT!
3// source: ortools/sat/cp_model.proto
4// </auto-generated>
5#pragma warning disable 1591, 0612, 3021, 8981
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
12namespace Google.OrTools.Sat {
13
15 public static partial class CpModelReflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static CpModelReflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "ChpvcnRvb2xzL3NhdC9jcF9tb2RlbC5wcm90bxIXb3BlcmF0aW9uc19yZXNl",
28 "YXJjaC5zYXQiNAoUSW50ZWdlclZhcmlhYmxlUHJvdG8SDAoEbmFtZRgBIAEo",
29 "CRIOCgZkb21haW4YAiADKAMiJQoRQm9vbEFyZ3VtZW50UHJvdG8SEAoIbGl0",
30 "ZXJhbHMYASADKAUiRQoVTGluZWFyRXhwcmVzc2lvblByb3RvEgwKBHZhcnMY",
31 "ASADKAUSDgoGY29lZmZzGAIgAygDEg4KBm9mZnNldBgDIAEoAyKUAQoTTGlu",
32 "ZWFyQXJndW1lbnRQcm90bxI+CgZ0YXJnZXQYASABKAsyLi5vcGVyYXRpb25z",
33 "X3Jlc2VhcmNoLnNhdC5MaW5lYXJFeHByZXNzaW9uUHJvdG8SPQoFZXhwcnMY",
34 "AiADKAsyLi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5MaW5lYXJFeHByZXNz",
35 "aW9uUHJvdG8iXAobQWxsRGlmZmVyZW50Q29uc3RyYWludFByb3RvEj0KBWV4",
36 "cHJzGAEgAygLMi4ub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuTGluZWFyRXhw",
37 "cmVzc2lvblByb3RvIkUKFUxpbmVhckNvbnN0cmFpbnRQcm90bxIMCgR2YXJz",
38 "GAEgAygFEg4KBmNvZWZmcxgCIAMoAxIOCgZkb21haW4YAyADKAMiRQoWRWxl",
39 "bWVudENvbnN0cmFpbnRQcm90bxINCgVpbmRleBgBIAEoBRIOCgZ0YXJnZXQY",
40 "AiABKAUSDAoEdmFycxgDIAMoBSLTAQoXSW50ZXJ2YWxDb25zdHJhaW50UHJv",
41 "dG8SPQoFc3RhcnQYBCABKAsyLi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5M",
42 "aW5lYXJFeHByZXNzaW9uUHJvdG8SOwoDZW5kGAUgASgLMi4ub3BlcmF0aW9u",
43 "c19yZXNlYXJjaC5zYXQuTGluZWFyRXhwcmVzc2lvblByb3RvEjwKBHNpemUY",
44 "BiABKAsyLi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5MaW5lYXJFeHByZXNz",
45 "aW9uUHJvdG8iLQoYTm9PdmVybGFwQ29uc3RyYWludFByb3RvEhEKCWludGVy",
46 "dmFscxgBIAMoBSJGChpOb092ZXJsYXAyRENvbnN0cmFpbnRQcm90bxITCgt4",
47 "X2ludGVydmFscxgBIAMoBRITCgt5X2ludGVydmFscxgCIAMoBSKxAQoZQ3Vt",
48 "dWxhdGl2ZUNvbnN0cmFpbnRQcm90bxJACghjYXBhY2l0eRgBIAEoCzIuLm9w",
49 "ZXJhdGlvbnNfcmVzZWFyY2guc2F0LkxpbmVhckV4cHJlc3Npb25Qcm90bxIR",
50 "CglpbnRlcnZhbHMYAiADKAUSPwoHZGVtYW5kcxgDIAMoCzIuLm9wZXJhdGlv",
51 "bnNfcmVzZWFyY2guc2F0LkxpbmVhckV4cHJlc3Npb25Qcm90byLqAQoYUmVz",
52 "ZXJ2b2lyQ29uc3RyYWludFByb3RvEhEKCW1pbl9sZXZlbBgBIAEoAxIRCglt",
53 "YXhfbGV2ZWwYAiABKAMSQgoKdGltZV9leHBycxgDIAMoCzIuLm9wZXJhdGlv",
54 "bnNfcmVzZWFyY2guc2F0LkxpbmVhckV4cHJlc3Npb25Qcm90bxJFCg1sZXZl",
55 "bF9jaGFuZ2VzGAYgAygLMi4ub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuTGlu",
56 "ZWFyRXhwcmVzc2lvblByb3RvEhcKD2FjdGl2ZV9saXRlcmFscxgFIAMoBUoE",
57 "CAQQBSJIChZDaXJjdWl0Q29uc3RyYWludFByb3RvEg0KBXRhaWxzGAMgAygF",
58 "Eg0KBWhlYWRzGAQgAygFEhAKCGxpdGVyYWxzGAUgAygFImoKFVJvdXRlc0Nv",
59 "bnN0cmFpbnRQcm90bxINCgV0YWlscxgBIAMoBRINCgVoZWFkcxgCIAMoBRIQ",
60 "CghsaXRlcmFscxgDIAMoBRIPCgdkZW1hbmRzGAQgAygFEhAKCGNhcGFjaXR5",
61 "GAUgASgDIkUKFFRhYmxlQ29uc3RyYWludFByb3RvEgwKBHZhcnMYASADKAUS",
62 "DgoGdmFsdWVzGAIgAygDEg8KB25lZ2F0ZWQYAyABKAgiPQoWSW52ZXJzZUNv",
63 "bnN0cmFpbnRQcm90bxIQCghmX2RpcmVjdBgBIAMoBRIRCglmX2ludmVyc2UY",
64 "AiADKAUiogEKGEF1dG9tYXRvbkNvbnN0cmFpbnRQcm90bxIWCg5zdGFydGlu",
65 "Z19zdGF0ZRgCIAEoAxIUCgxmaW5hbF9zdGF0ZXMYAyADKAMSFwoPdHJhbnNp",
66 "dGlvbl90YWlsGAQgAygDEhcKD3RyYW5zaXRpb25faGVhZBgFIAMoAxIYChB0",
67 "cmFuc2l0aW9uX2xhYmVsGAYgAygDEgwKBHZhcnMYByADKAUiJAoUTGlzdE9m",
68 "VmFyaWFibGVzUHJvdG8SDAoEdmFycxgBIAMoBSLwDAoPQ29uc3RyYWludFBy",
69 "b3RvEgwKBG5hbWUYASABKAkSGwoTZW5mb3JjZW1lbnRfbGl0ZXJhbBgCIAMo",
70 "BRI9Cgdib29sX29yGAMgASgLMioub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQu",
71 "Qm9vbEFyZ3VtZW50UHJvdG9IABI+Cghib29sX2FuZBgEIAEoCzIqLm9wZXJh",
72 "dGlvbnNfcmVzZWFyY2guc2F0LkJvb2xBcmd1bWVudFByb3RvSAASQQoLYXRf",
73 "bW9zdF9vbmUYGiABKAsyKi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5Cb29s",
74 "QXJndW1lbnRQcm90b0gAEkEKC2V4YWN0bHlfb25lGB0gASgLMioub3BlcmF0",
75 "aW9uc19yZXNlYXJjaC5zYXQuQm9vbEFyZ3VtZW50UHJvdG9IABI+Cghib29s",
76 "X3hvchgFIAEoCzIqLm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkJvb2xBcmd1",
77 "bWVudFByb3RvSAASPwoHaW50X2RpdhgHIAEoCzIsLm9wZXJhdGlvbnNfcmVz",
78 "ZWFyY2guc2F0LkxpbmVhckFyZ3VtZW50UHJvdG9IABI/CgdpbnRfbW9kGAgg",
79 "ASgLMiwub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuTGluZWFyQXJndW1lbnRQ",
80 "cm90b0gAEkAKCGludF9wcm9kGAsgASgLMiwub3BlcmF0aW9uc19yZXNlYXJj",
81 "aC5zYXQuTGluZWFyQXJndW1lbnRQcm90b0gAEj8KB2xpbl9tYXgYGyABKAsy",
82 "LC5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5MaW5lYXJBcmd1bWVudFByb3Rv",
83 "SAASQAoGbGluZWFyGAwgASgLMi4ub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQu",
84 "TGluZWFyQ29uc3RyYWludFByb3RvSAASSAoIYWxsX2RpZmYYDSABKAsyNC5v",
85 "cGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5BbGxEaWZmZXJlbnRDb25zdHJhaW50",
86 "UHJvdG9IABJCCgdlbGVtZW50GA4gASgLMi8ub3BlcmF0aW9uc19yZXNlYXJj",
87 "aC5zYXQuRWxlbWVudENvbnN0cmFpbnRQcm90b0gAEkIKB2NpcmN1aXQYDyAB",
88 "KAsyLy5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5DaXJjdWl0Q29uc3RyYWlu",
89 "dFByb3RvSAASQAoGcm91dGVzGBcgASgLMi4ub3BlcmF0aW9uc19yZXNlYXJj",
90 "aC5zYXQuUm91dGVzQ29uc3RyYWludFByb3RvSAASPgoFdGFibGUYECABKAsy",
91 "LS5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5UYWJsZUNvbnN0cmFpbnRQcm90",
92 "b0gAEkYKCWF1dG9tYXRvbhgRIAEoCzIxLm9wZXJhdGlvbnNfcmVzZWFyY2gu",
93 "c2F0LkF1dG9tYXRvbkNvbnN0cmFpbnRQcm90b0gAEkIKB2ludmVyc2UYEiAB",
94 "KAsyLy5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5JbnZlcnNlQ29uc3RyYWlu",
95 "dFByb3RvSAASRgoJcmVzZXJ2b2lyGBggASgLMjEub3BlcmF0aW9uc19yZXNl",
96 "YXJjaC5zYXQuUmVzZXJ2b2lyQ29uc3RyYWludFByb3RvSAASRAoIaW50ZXJ2",
97 "YWwYEyABKAsyMC5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5JbnRlcnZhbENv",
98 "bnN0cmFpbnRQcm90b0gAEkcKCm5vX292ZXJsYXAYFCABKAsyMS5vcGVyYXRp",
99 "b25zX3Jlc2VhcmNoLnNhdC5Ob092ZXJsYXBDb25zdHJhaW50UHJvdG9IABJM",
100 "Cg1ub19vdmVybGFwXzJkGBUgASgLMjMub3BlcmF0aW9uc19yZXNlYXJjaC5z",
101 "YXQuTm9PdmVybGFwMkRDb25zdHJhaW50UHJvdG9IABJICgpjdW11bGF0aXZl",
102 "GBYgASgLMjIub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuQ3VtdWxhdGl2ZUNv",
103 "bnN0cmFpbnRQcm90b0gAEkkKEGR1bW15X2NvbnN0cmFpbnQYHiABKAsyLS5v",
104 "cGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5MaXN0T2ZWYXJpYWJsZXNQcm90b0gA",
105 "QgwKCmNvbnN0cmFpbnQi4AEKEENwT2JqZWN0aXZlUHJvdG8SDAoEdmFycxgB",
106 "IAMoBRIOCgZjb2VmZnMYBCADKAMSDgoGb2Zmc2V0GAIgASgBEhYKDnNjYWxp",
107 "bmdfZmFjdG9yGAMgASgBEg4KBmRvbWFpbhgFIAMoAxIZChFzY2FsaW5nX3dh",
108 "c19leGFjdBgGIAEoCBIdChVpbnRlZ2VyX2JlZm9yZV9vZmZzZXQYByABKAMS",
109 "HAoUaW50ZWdlcl9hZnRlcl9vZmZzZXQYCSABKAMSHgoWaW50ZWdlcl9zY2Fs",
110 "aW5nX2ZhY3RvchgIIAEoAyJVChNGbG9hdE9iamVjdGl2ZVByb3RvEgwKBHZh",
111 "cnMYASADKAUSDgoGY29lZmZzGAIgAygBEg4KBm9mZnNldBgDIAEoARIQCght",
112 "YXhpbWl6ZRgEIAEoCCLpBAoVRGVjaXNpb25TdHJhdGVneVByb3RvEhEKCXZh",
113 "cmlhYmxlcxgBIAMoBRI9CgVleHBycxgFIAMoCzIuLm9wZXJhdGlvbnNfcmVz",
114 "ZWFyY2guc2F0LkxpbmVhckV4cHJlc3Npb25Qcm90bxJtCht2YXJpYWJsZV9z",
115 "ZWxlY3Rpb25fc3RyYXRlZ3kYAiABKA4ySC5vcGVyYXRpb25zX3Jlc2VhcmNo",
116 "LnNhdC5EZWNpc2lvblN0cmF0ZWd5UHJvdG8uVmFyaWFibGVTZWxlY3Rpb25T",
117 "dHJhdGVneRJpChlkb21haW5fcmVkdWN0aW9uX3N0cmF0ZWd5GAMgASgOMkYu",
118 "b3BlcmF0aW9uc19yZXNlYXJjaC5zYXQuRGVjaXNpb25TdHJhdGVneVByb3Rv",
119 "LkRvbWFpblJlZHVjdGlvblN0cmF0ZWd5IpQBChlWYXJpYWJsZVNlbGVjdGlv",
120 "blN0cmF0ZWd5EhAKDENIT09TRV9GSVJTVBAAEhUKEUNIT09TRV9MT1dFU1Rf",
121 "TUlOEAESFgoSQ0hPT1NFX0hJR0hFU1RfTUFYEAISGgoWQ0hPT1NFX01JTl9E",
122 "T01BSU5fU0laRRADEhoKFkNIT09TRV9NQVhfRE9NQUlOX1NJWkUQBCKMAQoX",
123 "RG9tYWluUmVkdWN0aW9uU3RyYXRlZ3kSFAoQU0VMRUNUX01JTl9WQUxVRRAA",
124 "EhQKEFNFTEVDVF9NQVhfVkFMVUUQARIVChFTRUxFQ1RfTE9XRVJfSEFMRhAC",
125 "EhUKEVNFTEVDVF9VUFBFUl9IQUxGEAMSFwoTU0VMRUNUX01FRElBTl9WQUxV",
126 "RRAEIjkKGVBhcnRpYWxWYXJpYWJsZUFzc2lnbm1lbnQSDAoEdmFycxgBIAMo",
127 "BRIOCgZ2YWx1ZXMYAiADKAMiPgoWU3BhcnNlUGVybXV0YXRpb25Qcm90bxIP",
128 "CgdzdXBwb3J0GAEgAygFEhMKC2N5Y2xlX3NpemVzGAIgAygFIkcKEERlbnNl",
129 "TWF0cml4UHJvdG8SEAoIbnVtX3Jvd3MYASABKAUSEAoIbnVtX2NvbHMYAiAB",
130 "KAUSDwoHZW50cmllcxgDIAMoBSKUAQoNU3ltbWV0cnlQcm90bxJFCgxwZXJt",
131 "dXRhdGlvbnMYASADKAsyLy5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5TcGFy",
132 "c2VQZXJtdXRhdGlvblByb3RvEjwKCW9yYml0b3BlcxgCIAMoCzIpLm9wZXJh",
133 "dGlvbnNfcmVzZWFyY2guc2F0LkRlbnNlTWF0cml4UHJvdG8ijgQKDENwTW9k",
134 "ZWxQcm90bxIMCgRuYW1lGAEgASgJEkAKCXZhcmlhYmxlcxgCIAMoCzItLm9w",
135 "ZXJhdGlvbnNfcmVzZWFyY2guc2F0LkludGVnZXJWYXJpYWJsZVByb3RvEj0K",
136 "C2NvbnN0cmFpbnRzGAMgAygLMigub3BlcmF0aW9uc19yZXNlYXJjaC5zYXQu",
137 "Q29uc3RyYWludFByb3RvEjwKCW9iamVjdGl2ZRgEIAEoCzIpLm9wZXJhdGlv",
138 "bnNfcmVzZWFyY2guc2F0LkNwT2JqZWN0aXZlUHJvdG8STgoYZmxvYXRpbmdf",
139 "cG9pbnRfb2JqZWN0aXZlGAkgASgLMiwub3BlcmF0aW9uc19yZXNlYXJjaC5z",
140 "YXQuRmxvYXRPYmplY3RpdmVQcm90bxJHCg9zZWFyY2hfc3RyYXRlZ3kYBSAD",
141 "KAsyLi5vcGVyYXRpb25zX3Jlc2VhcmNoLnNhdC5EZWNpc2lvblN0cmF0ZWd5",
142 "UHJvdG8SSQoNc29sdXRpb25faGludBgGIAEoCzIyLm9wZXJhdGlvbnNfcmVz",
143 "ZWFyY2guc2F0LlBhcnRpYWxWYXJpYWJsZUFzc2lnbm1lbnQSEwoLYXNzdW1w",
144 "dGlvbnMYByADKAUSOAoIc3ltbWV0cnkYCCABKAsyJi5vcGVyYXRpb25zX3Jl",
145 "c2VhcmNoLnNhdC5TeW1tZXRyeVByb3RvIiIKEENwU29sdmVyU29sdXRpb24S",
146 "DgoGdmFsdWVzGAEgAygDIpUGChBDcFNvbHZlclJlc3BvbnNlEjcKBnN0YXR1",
147 "cxgBIAEoDjInLm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkNwU29sdmVyU3Rh",
148 "dHVzEhAKCHNvbHV0aW9uGAIgAygDEhcKD29iamVjdGl2ZV92YWx1ZRgDIAEo",
149 "ARIcChRiZXN0X29iamVjdGl2ZV9ib3VuZBgEIAEoARJHChRhZGRpdGlvbmFs",
150 "X3NvbHV0aW9ucxgbIAMoCzIpLm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkNw",
151 "U29sdmVyU29sdXRpb24SSgoTdGlnaHRlbmVkX3ZhcmlhYmxlcxgVIAMoCzIt",
152 "Lm9wZXJhdGlvbnNfcmVzZWFyY2guc2F0LkludGVnZXJWYXJpYWJsZVByb3Rv",
153 "EjAKKHN1ZmZpY2llbnRfYXNzdW1wdGlvbnNfZm9yX2luZmVhc2liaWxpdHkY",
154 "FyADKAUSRAoRaW50ZWdlcl9vYmplY3RpdmUYHCABKAsyKS5vcGVyYXRpb25z",
155 "X3Jlc2VhcmNoLnNhdC5DcE9iamVjdGl2ZVByb3RvEiMKG2lubmVyX29iamVj",
156 "dGl2ZV9sb3dlcl9ib3VuZBgdIAEoAxIUCgxudW1faW50ZWdlcnMYHiABKAMS",
157 "FAoMbnVtX2Jvb2xlYW5zGAogASgDEhUKDW51bV9jb25mbGljdHMYCyABKAMS",
158 "FAoMbnVtX2JyYW5jaGVzGAwgASgDEh8KF251bV9iaW5hcnlfcHJvcGFnYXRp",
159 "b25zGA0gASgDEiAKGG51bV9pbnRlZ2VyX3Byb3BhZ2F0aW9ucxgOIAEoAxIU",
160 "CgxudW1fcmVzdGFydHMYGCABKAMSGQoRbnVtX2xwX2l0ZXJhdGlvbnMYGSAB",
161 "KAMSEQoJd2FsbF90aW1lGA8gASgBEhEKCXVzZXJfdGltZRgQIAEoARIaChJk",
162 "ZXRlcm1pbmlzdGljX3RpbWUYESABKAESFAoMZ2FwX2ludGVncmFsGBYgASgB",
163 "EhUKDXNvbHV0aW9uX2luZm8YFCABKAkSEQoJc29sdmVfbG9nGBogASgJKlsK",
164 "DkNwU29sdmVyU3RhdHVzEgsKB1VOS05PV04QABIRCg1NT0RFTF9JTlZBTElE",
165 "EAESDAoIRkVBU0lCTEUQAhIOCgpJTkZFQVNJQkxFEAMSCwoHT1BUSU1BTBAE",
166 "QkAKFmNvbS5nb29nbGUub3J0b29scy5zYXRCD0NwTW9kZWxQcm90b2J1ZlAB",
167 "qgISR29vZ2xlLk9yVG9vbHMuU2F0YgZwcm90bzM="));
168 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
169 new pbr::FileDescriptor[] { },
170 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.OrTools.Sat.CpSolverStatus), }, null, new pbr::GeneratedClrTypeInfo[] {
171 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.IntegerVariableProto), global::Google.OrTools.Sat.IntegerVariableProto.Parser, new[]{ "Name", "Domain" }, null, null, null, null),
172 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.BoolArgumentProto), global::Google.OrTools.Sat.BoolArgumentProto.Parser, new[]{ "Literals" }, null, null, null, null),
173 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearExpressionProto), global::Google.OrTools.Sat.LinearExpressionProto.Parser, new[]{ "Vars", "Coeffs", "Offset" }, null, null, null, null),
174 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearArgumentProto), global::Google.OrTools.Sat.LinearArgumentProto.Parser, new[]{ "Target", "Exprs" }, null, null, null, null),
175 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.AllDifferentConstraintProto), global::Google.OrTools.Sat.AllDifferentConstraintProto.Parser, new[]{ "Exprs" }, null, null, null, null),
176 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.LinearConstraintProto), global::Google.OrTools.Sat.LinearConstraintProto.Parser, new[]{ "Vars", "Coeffs", "Domain" }, null, null, null, null),
177 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ElementConstraintProto), global::Google.OrTools.Sat.ElementConstraintProto.Parser, new[]{ "Index", "Target", "Vars" }, null, null, null, null),
178 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.IntervalConstraintProto), global::Google.OrTools.Sat.IntervalConstraintProto.Parser, new[]{ "Start", "End", "Size" }, null, null, null, null),
179 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.NoOverlapConstraintProto), global::Google.OrTools.Sat.NoOverlapConstraintProto.Parser, new[]{ "Intervals" }, null, null, null, null),
180 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.NoOverlap2DConstraintProto), global::Google.OrTools.Sat.NoOverlap2DConstraintProto.Parser, new[]{ "XIntervals", "YIntervals" }, null, null, null, null),
181 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CumulativeConstraintProto), global::Google.OrTools.Sat.CumulativeConstraintProto.Parser, new[]{ "Capacity", "Intervals", "Demands" }, null, null, null, null),
182 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ReservoirConstraintProto), global::Google.OrTools.Sat.ReservoirConstraintProto.Parser, new[]{ "MinLevel", "MaxLevel", "TimeExprs", "LevelChanges", "ActiveLiterals" }, null, null, null, null),
183 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CircuitConstraintProto), global::Google.OrTools.Sat.CircuitConstraintProto.Parser, new[]{ "Tails", "Heads", "Literals" }, null, null, null, null),
184 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.RoutesConstraintProto), global::Google.OrTools.Sat.RoutesConstraintProto.Parser, new[]{ "Tails", "Heads", "Literals", "Demands", "Capacity" }, null, null, null, null),
185 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.TableConstraintProto), global::Google.OrTools.Sat.TableConstraintProto.Parser, new[]{ "Vars", "Values", "Negated" }, null, null, null, null),
186 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.InverseConstraintProto), global::Google.OrTools.Sat.InverseConstraintProto.Parser, new[]{ "FDirect", "FInverse" }, null, null, null, null),
187 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, null),
188 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ListOfVariablesProto), global::Google.OrTools.Sat.ListOfVariablesProto.Parser, new[]{ "Vars" }, null, null, null, null),
189 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.ConstraintProto), global::Google.OrTools.Sat.ConstraintProto.Parser, new[]{ "Name", "EnforcementLiteral", "BoolOr", "BoolAnd", "AtMostOne", "ExactlyOne", "BoolXor", "IntDiv", "IntMod", "IntProd", "LinMax", "Linear", "AllDiff", "Element", "Circuit", "Routes", "Table", "Automaton", "Inverse", "Reservoir", "Interval", "NoOverlap", "NoOverlap2D", "Cumulative", "DummyConstraint" }, new[]{ "Constraint" }, null, null, null),
190 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpObjectiveProto), global::Google.OrTools.Sat.CpObjectiveProto.Parser, new[]{ "Vars", "Coeffs", "Offset", "ScalingFactor", "Domain", "ScalingWasExact", "IntegerBeforeOffset", "IntegerAfterOffset", "IntegerScalingFactor" }, null, null, null, null),
191 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.FloatObjectiveProto), global::Google.OrTools.Sat.FloatObjectiveProto.Parser, new[]{ "Vars", "Coeffs", "Offset", "Maximize" }, null, null, null, null),
192 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.DecisionStrategyProto), global::Google.OrTools.Sat.DecisionStrategyProto.Parser, new[]{ "Variables", "Exprs", "VariableSelectionStrategy", "DomainReductionStrategy" }, null, new[]{ typeof(global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy), typeof(global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy) }, null, null),
193 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.PartialVariableAssignment), global::Google.OrTools.Sat.PartialVariableAssignment.Parser, new[]{ "Vars", "Values" }, null, null, null, null),
194 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.SparsePermutationProto), global::Google.OrTools.Sat.SparsePermutationProto.Parser, new[]{ "Support", "CycleSizes" }, null, null, null, null),
195 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.DenseMatrixProto), global::Google.OrTools.Sat.DenseMatrixProto.Parser, new[]{ "NumRows", "NumCols", "Entries" }, null, null, null, null),
196 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.SymmetryProto), global::Google.OrTools.Sat.SymmetryProto.Parser, new[]{ "Permutations", "Orbitopes" }, null, null, null, null),
197 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpModelProto), global::Google.OrTools.Sat.CpModelProto.Parser, new[]{ "Name", "Variables", "Constraints", "Objective", "FloatingPointObjective", "SearchStrategy", "SolutionHint", "Assumptions", "Symmetry" }, null, null, null, null),
198 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpSolverSolution), global::Google.OrTools.Sat.CpSolverSolution.Parser, new[]{ "Values" }, null, null, null, null),
199 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpSolverResponse), global::Google.OrTools.Sat.CpSolverResponse.Parser, new[]{ "Status", "Solution", "ObjectiveValue", "BestObjectiveBound", "AdditionalSolutions", "TightenedVariables", "SufficientAssumptionsForInfeasibility", "IntegerObjective", "InnerObjectiveLowerBound", "NumIntegers", "NumBooleans", "NumConflicts", "NumBranches", "NumBinaryPropagations", "NumIntegerPropagations", "NumRestarts", "NumLpIterations", "WallTime", "UserTime", "DeterministicTime", "GapIntegral", "SolutionInfo", "SolveLog" }, null, null, null, null)
200 }));
201 }
202 #endregion
203
204 }
205 #region Enums
209 public enum CpSolverStatus {
214 [pbr::OriginalName("UNKNOWN")] Unknown = 0,
219 [pbr::OriginalName("MODEL_INVALID")] ModelInvalid = 1,
225 [pbr::OriginalName("FEASIBLE")] Feasible = 2,
229 [pbr::OriginalName("INFEASIBLE")] Infeasible = 3,
240 [pbr::OriginalName("OPTIMAL")] Optimal = 4,
241 }
242
243 #endregion
244
245 #region Messages
267 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
268 public sealed partial class IntegerVariableProto : pb::IMessage<IntegerVariableProto>
269 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
270 , pb::IBufferMessage
271 #endif
272 {
273 private static readonly pb::MessageParser<IntegerVariableProto> _parser = new pb::MessageParser<IntegerVariableProto>(() => new IntegerVariableProto());
274 private pb::UnknownFieldSet _unknownFields;
275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
276 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
277 public static pb::MessageParser<IntegerVariableProto> Parser { get { return _parser; } }
278
279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
280 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
281 public static pbr::MessageDescriptor Descriptor {
282 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[0]; }
283 }
284
285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
286 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
287 pbr::MessageDescriptor pb::IMessage.Descriptor {
288 get { return Descriptor; }
289 }
290
291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
293 public IntegerVariableProto() {
294 OnConstruction();
295 }
296
297 partial void OnConstruction();
299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
300 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
301 public IntegerVariableProto(IntegerVariableProto other) : this() {
302 name_ = other.name_;
303 domain_ = other.domain_.Clone();
304 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
305 }
307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
309 public IntegerVariableProto Clone() {
310 return new IntegerVariableProto(this);
311 }
312
314 public const int NameFieldNumber = 1;
315 private string name_ = "";
319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
320 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
321 public string Name {
322 get { return name_; }
323 set {
324 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
325 }
327
329 public const int DomainFieldNumber = 2;
330 private static readonly pb::FieldCodec<long> _repeated_domain_codec
331 = pb::FieldCodec.ForInt64(18);
332 private readonly pbc::RepeatedField<long> domain_ = new pbc::RepeatedField<long>();
352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
354 public pbc::RepeatedField<long> Domain {
355 get { return domain_; }
356 }
357
358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
360 public override bool Equals(object other) {
361 return Equals(other as IntegerVariableProto);
363
364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
366 public bool Equals(IntegerVariableProto other) {
367 if (ReferenceEquals(other, null)) {
368 return false;
369 }
370 if (ReferenceEquals(other, this)) {
371 return true;
372 }
373 if (Name != other.Name) return false;
374 if(!domain_.Equals(other.domain_)) return false;
375 return Equals(_unknownFields, other._unknownFields);
376 }
377
378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
380 public override int GetHashCode() {
381 int hash = 1;
382 if (Name.Length != 0) hash ^= Name.GetHashCode();
383 hash ^= domain_.GetHashCode();
384 if (_unknownFields != null) {
385 hash ^= _unknownFields.GetHashCode();
386 }
387 return hash;
389
390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
392 public override string ToString() {
393 return pb::JsonFormatter.ToDiagnosticString(this);
394 }
395
396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
398 public void WriteTo(pb::CodedOutputStream output) {
399 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
400 output.WriteRawMessage(this);
401 #else
402 if (Name.Length != 0) {
403 output.WriteRawTag(10);
404 output.WriteString(Name);
405 }
406 domain_.WriteTo(output, _repeated_domain_codec);
407 if (_unknownFields != null) {
408 _unknownFields.WriteTo(output);
409 }
410 #endif
411 }
412
413 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
416 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
417 if (Name.Length != 0) {
418 output.WriteRawTag(10);
419 output.WriteString(Name);
420 }
421 domain_.WriteTo(ref output, _repeated_domain_codec);
422 if (_unknownFields != null) {
423 _unknownFields.WriteTo(ref output);
424 }
425 }
426 #endif
427
428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
430 public int CalculateSize() {
431 int size = 0;
432 if (Name.Length != 0) {
433 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
434 }
435 size += domain_.CalculateSize(_repeated_domain_codec);
436 if (_unknownFields != null) {
437 size += _unknownFields.CalculateSize();
439 return size;
440 }
441
442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
444 public void MergeFrom(IntegerVariableProto other) {
445 if (other == null) {
446 return;
447 }
448 if (other.Name.Length != 0) {
449 Name = other.Name;
450 }
451 domain_.Add(other.domain_);
452 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
453 }
454
455 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
456 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
457 public void MergeFrom(pb::CodedInputStream input) {
458 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
459 input.ReadRawMessage(this);
460 #else
461 uint tag;
462 while ((tag = input.ReadTag()) != 0) {
463 switch(tag) {
464 default:
465 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
466 break;
467 case 10: {
468 Name = input.ReadString();
469 break;
470 }
471 case 18:
472 case 16: {
473 domain_.AddEntriesFrom(input, _repeated_domain_codec);
474 break;
475 }
476 }
477 }
478 #endif
479 }
480
481 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
483 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
484 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
485 uint tag;
486 while ((tag = input.ReadTag()) != 0) {
487 switch(tag) {
488 default:
489 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
490 break;
491 case 10: {
492 Name = input.ReadString();
493 break;
494 }
495 case 18:
496 case 16: {
497 domain_.AddEntriesFrom(ref input, _repeated_domain_codec);
498 break;
499 }
500 }
501 }
502 }
503 #endif
504
505 }
506
510 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
511 public sealed partial class BoolArgumentProto : pb::IMessage<BoolArgumentProto>
512 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
513 , pb::IBufferMessage
514 #endif
515 {
516 private static readonly pb::MessageParser<BoolArgumentProto> _parser = new pb::MessageParser<BoolArgumentProto>(() => new BoolArgumentProto());
517 private pb::UnknownFieldSet _unknownFields;
518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
520 public static pb::MessageParser<BoolArgumentProto> Parser { get { return _parser; } }
521
522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
524 public static pbr::MessageDescriptor Descriptor {
525 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[1]; }
526 }
527
528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
529 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
530 pbr::MessageDescriptor pb::IMessage.Descriptor {
531 get { return Descriptor; }
533
534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
536 public BoolArgumentProto() {
537 OnConstruction();
538 }
539
540 partial void OnConstruction();
541
542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
544 public BoolArgumentProto(BoolArgumentProto other) : this() {
545 literals_ = other.literals_.Clone();
546 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
547 }
548
549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
550 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
551 public BoolArgumentProto Clone() {
552 return new BoolArgumentProto(this);
553 }
554
556 public const int LiteralsFieldNumber = 1;
557 private static readonly pb::FieldCodec<int> _repeated_literals_codec
558 = pb::FieldCodec.ForInt32(10);
559 private readonly pbc::RepeatedField<int> literals_ = new pbc::RepeatedField<int>();
560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
562 public pbc::RepeatedField<int> Literals {
563 get { return literals_; }
565
566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
568 public override bool Equals(object other) {
569 return Equals(other as BoolArgumentProto);
571
572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
574 public bool Equals(BoolArgumentProto other) {
575 if (ReferenceEquals(other, null)) {
576 return false;
577 }
578 if (ReferenceEquals(other, this)) {
579 return true;
580 }
581 if(!literals_.Equals(other.literals_)) return false;
582 return Equals(_unknownFields, other._unknownFields);
583 }
584
585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
586 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
587 public override int GetHashCode() {
588 int hash = 1;
589 hash ^= literals_.GetHashCode();
590 if (_unknownFields != null) {
591 hash ^= _unknownFields.GetHashCode();
592 }
593 return hash;
594 }
596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
597 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
598 public override string ToString() {
599 return pb::JsonFormatter.ToDiagnosticString(this);
600 }
601
602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
604 public void WriteTo(pb::CodedOutputStream output) {
605 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
606 output.WriteRawMessage(this);
607 #else
608 literals_.WriteTo(output, _repeated_literals_codec);
609 if (_unknownFields != null) {
610 _unknownFields.WriteTo(output);
611 }
612 #endif
613 }
614
615 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
617 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
618 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
619 literals_.WriteTo(ref output, _repeated_literals_codec);
620 if (_unknownFields != null) {
621 _unknownFields.WriteTo(ref output);
622 }
623 }
624 #endif
625
626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
628 public int CalculateSize() {
629 int size = 0;
630 size += literals_.CalculateSize(_repeated_literals_codec);
631 if (_unknownFields != null) {
632 size += _unknownFields.CalculateSize();
633 }
634 return size;
635 }
637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
638 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
639 public void MergeFrom(BoolArgumentProto other) {
640 if (other == null) {
641 return;
642 }
643 literals_.Add(other.literals_);
644 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
645 }
646
647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
649 public void MergeFrom(pb::CodedInputStream input) {
650 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
651 input.ReadRawMessage(this);
652 #else
653 uint tag;
654 while ((tag = input.ReadTag()) != 0) {
655 switch(tag) {
656 default:
657 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
658 break;
659 case 10:
660 case 8: {
661 literals_.AddEntriesFrom(input, _repeated_literals_codec);
662 break;
663 }
664 }
665 }
666 #endif
667 }
668
669 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
671 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
672 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
673 uint tag;
674 while ((tag = input.ReadTag()) != 0) {
675 switch(tag) {
676 default:
677 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
678 break;
679 case 10:
680 case 8: {
681 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
682 break;
683 }
684 }
685 }
686 }
687 #endif
688
689 }
690
696 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
697 public sealed partial class LinearExpressionProto : pb::IMessage<LinearExpressionProto>
698 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
699 , pb::IBufferMessage
700 #endif
701 {
702 private static readonly pb::MessageParser<LinearExpressionProto> _parser = new pb::MessageParser<LinearExpressionProto>(() => new LinearExpressionProto());
703 private pb::UnknownFieldSet _unknownFields;
704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
706 public static pb::MessageParser<LinearExpressionProto> Parser { get { return _parser; } }
707
708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
709 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
710 public static pbr::MessageDescriptor Descriptor {
711 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[2]; }
712 }
713
714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
715 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
716 pbr::MessageDescriptor pb::IMessage.Descriptor {
717 get { return Descriptor; }
719
720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
722 public LinearExpressionProto() {
723 OnConstruction();
724 }
725
726 partial void OnConstruction();
727
728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
731 vars_ = other.vars_.Clone();
732 coeffs_ = other.coeffs_.Clone();
733 offset_ = other.offset_;
734 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
735 }
736
737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
738 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
740 return new LinearExpressionProto(this);
741 }
742
744 public const int VarsFieldNumber = 1;
745 private static readonly pb::FieldCodec<int> _repeated_vars_codec
746 = pb::FieldCodec.ForInt32(10);
747 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
749 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
750 public pbc::RepeatedField<int> Vars {
751 get { return vars_; }
753
755 public const int CoeffsFieldNumber = 2;
756 private static readonly pb::FieldCodec<long> _repeated_coeffs_codec
757 = pb::FieldCodec.ForInt64(18);
758 private readonly pbc::RepeatedField<long> coeffs_ = new pbc::RepeatedField<long>();
759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
760 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
761 public pbc::RepeatedField<long> Coeffs {
762 get { return coeffs_; }
764
766 public const int OffsetFieldNumber = 3;
767 private long offset_;
768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
770 public long Offset {
771 get { return offset_; }
772 set {
773 offset_ = value;
775 }
776
777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
778 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
779 public override bool Equals(object other) {
780 return Equals(other as LinearExpressionProto);
781 }
782
783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
784 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
785 public bool Equals(LinearExpressionProto other) {
786 if (ReferenceEquals(other, null)) {
787 return false;
788 }
789 if (ReferenceEquals(other, this)) {
790 return true;
791 }
792 if(!vars_.Equals(other.vars_)) return false;
793 if(!coeffs_.Equals(other.coeffs_)) return false;
794 if (Offset != other.Offset) return false;
795 return Equals(_unknownFields, other._unknownFields);
796 }
797
798 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
799 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
800 public override int GetHashCode() {
801 int hash = 1;
802 hash ^= vars_.GetHashCode();
803 hash ^= coeffs_.GetHashCode();
804 if (Offset != 0L) hash ^= Offset.GetHashCode();
805 if (_unknownFields != null) {
806 hash ^= _unknownFields.GetHashCode();
807 }
808 return hash;
809 }
810
811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
813 public override string ToString() {
814 return pb::JsonFormatter.ToDiagnosticString(this);
815 }
816
817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
819 public void WriteTo(pb::CodedOutputStream output) {
820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
821 output.WriteRawMessage(this);
822 #else
823 vars_.WriteTo(output, _repeated_vars_codec);
824 coeffs_.WriteTo(output, _repeated_coeffs_codec);
825 if (Offset != 0L) {
826 output.WriteRawTag(24);
827 output.WriteInt64(Offset);
828 }
829 if (_unknownFields != null) {
830 _unknownFields.WriteTo(output);
831 }
832 #endif
833 }
834
835 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
838 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
839 vars_.WriteTo(ref output, _repeated_vars_codec);
840 coeffs_.WriteTo(ref output, _repeated_coeffs_codec);
841 if (Offset != 0L) {
842 output.WriteRawTag(24);
843 output.WriteInt64(Offset);
844 }
845 if (_unknownFields != null) {
846 _unknownFields.WriteTo(ref output);
847 }
848 }
849 #endif
850
851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
852 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
853 public int CalculateSize() {
854 int size = 0;
855 size += vars_.CalculateSize(_repeated_vars_codec);
856 size += coeffs_.CalculateSize(_repeated_coeffs_codec);
857 if (Offset != 0L) {
858 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Offset);
859 }
860 if (_unknownFields != null) {
861 size += _unknownFields.CalculateSize();
862 }
863 return size;
864 }
865
866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
868 public void MergeFrom(LinearExpressionProto other) {
869 if (other == null) {
870 return;
871 }
872 vars_.Add(other.vars_);
873 coeffs_.Add(other.coeffs_);
874 if (other.Offset != 0L) {
875 Offset = other.Offset;
877 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
878 }
879
880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
882 public void MergeFrom(pb::CodedInputStream input) {
883 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
884 input.ReadRawMessage(this);
885 #else
886 uint tag;
887 while ((tag = input.ReadTag()) != 0) {
888 switch(tag) {
889 default:
890 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
891 break;
892 case 10:
893 case 8: {
894 vars_.AddEntriesFrom(input, _repeated_vars_codec);
895 break;
896 }
897 case 18:
898 case 16: {
899 coeffs_.AddEntriesFrom(input, _repeated_coeffs_codec);
900 break;
901 }
902 case 24: {
903 Offset = input.ReadInt64();
904 break;
905 }
906 }
907 }
908 #endif
909 }
910
911 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
913 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
914 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
915 uint tag;
916 while ((tag = input.ReadTag()) != 0) {
917 switch(tag) {
918 default:
919 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
920 break;
921 case 10:
922 case 8: {
923 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
924 break;
925 }
926 case 18:
927 case 16: {
928 coeffs_.AddEntriesFrom(ref input, _repeated_coeffs_codec);
929 break;
930 }
931 case 24: {
932 Offset = input.ReadInt64();
933 break;
934 }
935 }
936 }
937 }
938 #endif
939
940 }
941
942 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
943 public sealed partial class LinearArgumentProto : pb::IMessage<LinearArgumentProto>
944 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
945 , pb::IBufferMessage
946 #endif
947 {
948 private static readonly pb::MessageParser<LinearArgumentProto> _parser = new pb::MessageParser<LinearArgumentProto>(() => new LinearArgumentProto());
949 private pb::UnknownFieldSet _unknownFields;
950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
952 public static pb::MessageParser<LinearArgumentProto> Parser { get { return _parser; } }
953
954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
955 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
956 public static pbr::MessageDescriptor Descriptor {
957 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[3]; }
958 }
959
960 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
961 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
962 pbr::MessageDescriptor pb::IMessage.Descriptor {
963 get { return Descriptor; }
965
966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
967 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
968 public LinearArgumentProto() {
969 OnConstruction();
970 }
971
972 partial void OnConstruction();
973
974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
977 target_ = other.target_ != null ? other.target_.Clone() : null;
978 exprs_ = other.exprs_.Clone();
979 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
980 }
981
982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
983 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
985 return new LinearArgumentProto(this);
986 }
987
989 public const int TargetFieldNumber = 1;
990 private global::Google.OrTools.Sat.LinearExpressionProto target_;
991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
992 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
993 public global::Google.OrTools.Sat.LinearExpressionProto Target {
994 get { return target_; }
995 set {
996 target_ = value;
998 }
999
1001 public const int ExprsFieldNumber = 2;
1002 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearExpressionProto> _repeated_exprs_codec
1003 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.Sat.LinearExpressionProto.Parser);
1004 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> exprs_ = new pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto>();
1005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1007 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> Exprs {
1008 get { return exprs_; }
1010
1011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1013 public override bool Equals(object other) {
1014 return Equals(other as LinearArgumentProto);
1016
1017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1019 public bool Equals(LinearArgumentProto other) {
1020 if (ReferenceEquals(other, null)) {
1021 return false;
1022 }
1023 if (ReferenceEquals(other, this)) {
1024 return true;
1025 }
1026 if (!object.Equals(Target, other.Target)) return false;
1027 if(!exprs_.Equals(other.exprs_)) return false;
1028 return Equals(_unknownFields, other._unknownFields);
1029 }
1030
1031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1032 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1033 public override int GetHashCode() {
1034 int hash = 1;
1035 if (target_ != null) hash ^= Target.GetHashCode();
1036 hash ^= exprs_.GetHashCode();
1037 if (_unknownFields != null) {
1038 hash ^= _unknownFields.GetHashCode();
1039 }
1040 return hash;
1042
1043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1044 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1045 public override string ToString() {
1046 return pb::JsonFormatter.ToDiagnosticString(this);
1047 }
1048
1049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1051 public void WriteTo(pb::CodedOutputStream output) {
1052 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1053 output.WriteRawMessage(this);
1054 #else
1055 if (target_ != null) {
1056 output.WriteRawTag(10);
1057 output.WriteMessage(Target);
1058 }
1059 exprs_.WriteTo(output, _repeated_exprs_codec);
1060 if (_unknownFields != null) {
1061 _unknownFields.WriteTo(output);
1062 }
1063 #endif
1064 }
1065
1066 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1069 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1070 if (target_ != null) {
1071 output.WriteRawTag(10);
1072 output.WriteMessage(Target);
1073 }
1074 exprs_.WriteTo(ref output, _repeated_exprs_codec);
1075 if (_unknownFields != null) {
1076 _unknownFields.WriteTo(ref output);
1077 }
1078 }
1079 #endif
1080
1081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1083 public int CalculateSize() {
1084 int size = 0;
1085 if (target_ != null) {
1086 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target);
1087 }
1088 size += exprs_.CalculateSize(_repeated_exprs_codec);
1089 if (_unknownFields != null) {
1090 size += _unknownFields.CalculateSize();
1092 return size;
1093 }
1094
1095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1096 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1097 public void MergeFrom(LinearArgumentProto other) {
1098 if (other == null) {
1099 return;
1100 }
1101 if (other.target_ != null) {
1102 if (target_ == null) {
1103 Target = new global::Google.OrTools.Sat.LinearExpressionProto();
1104 }
1105 Target.MergeFrom(other.Target);
1106 }
1107 exprs_.Add(other.exprs_);
1108 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1109 }
1110
1111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1112 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1113 public void MergeFrom(pb::CodedInputStream input) {
1114 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1115 input.ReadRawMessage(this);
1116 #else
1117 uint tag;
1118 while ((tag = input.ReadTag()) != 0) {
1119 switch(tag) {
1120 default:
1121 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1122 break;
1123 case 10: {
1124 if (target_ == null) {
1125 Target = new global::Google.OrTools.Sat.LinearExpressionProto();
1126 }
1127 input.ReadMessage(Target);
1128 break;
1129 }
1130 case 18: {
1131 exprs_.AddEntriesFrom(input, _repeated_exprs_codec);
1132 break;
1133 }
1134 }
1135 }
1136 #endif
1137 }
1138
1139 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1142 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1143 uint tag;
1144 while ((tag = input.ReadTag()) != 0) {
1145 switch(tag) {
1146 default:
1147 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1148 break;
1149 case 10: {
1150 if (target_ == null) {
1151 Target = new global::Google.OrTools.Sat.LinearExpressionProto();
1152 }
1153 input.ReadMessage(Target);
1154 break;
1155 }
1156 case 18: {
1157 exprs_.AddEntriesFrom(ref input, _repeated_exprs_codec);
1158 break;
1159 }
1160 }
1161 }
1162 }
1163 #endif
1164
1165 }
1166
1170 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1171 public sealed partial class AllDifferentConstraintProto : pb::IMessage<AllDifferentConstraintProto>
1172 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1173 , pb::IBufferMessage
1174 #endif
1175 {
1176 private static readonly pb::MessageParser<AllDifferentConstraintProto> _parser = new pb::MessageParser<AllDifferentConstraintProto>(() => new AllDifferentConstraintProto());
1177 private pb::UnknownFieldSet _unknownFields;
1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1179 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1180 public static pb::MessageParser<AllDifferentConstraintProto> Parser { get { return _parser; } }
1181
1182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1184 public static pbr::MessageDescriptor Descriptor {
1185 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[4]; }
1186 }
1187
1188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1189 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1190 pbr::MessageDescriptor pb::IMessage.Descriptor {
1191 get { return Descriptor; }
1193
1194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1197 OnConstruction();
1198 }
1199
1200 partial void OnConstruction();
1201
1202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1203 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1205 exprs_ = other.exprs_.Clone();
1206 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1207 }
1208
1209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1210 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1211 public AllDifferentConstraintProto Clone() {
1213 }
1214
1216 public const int ExprsFieldNumber = 1;
1217 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearExpressionProto> _repeated_exprs_codec
1218 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.Sat.LinearExpressionProto.Parser);
1219 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> exprs_ = new pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto>();
1220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1222 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> Exprs {
1223 get { return exprs_; }
1225
1226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1227 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1228 public override bool Equals(object other) {
1229 return Equals(other as AllDifferentConstraintProto);
1231
1232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1234 public bool Equals(AllDifferentConstraintProto other) {
1235 if (ReferenceEquals(other, null)) {
1236 return false;
1237 }
1238 if (ReferenceEquals(other, this)) {
1239 return true;
1240 }
1241 if(!exprs_.Equals(other.exprs_)) return false;
1242 return Equals(_unknownFields, other._unknownFields);
1243 }
1244
1245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1246 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1247 public override int GetHashCode() {
1248 int hash = 1;
1249 hash ^= exprs_.GetHashCode();
1250 if (_unknownFields != null) {
1251 hash ^= _unknownFields.GetHashCode();
1252 }
1253 return hash;
1254 }
1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1258 public override string ToString() {
1259 return pb::JsonFormatter.ToDiagnosticString(this);
1260 }
1261
1262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1264 public void WriteTo(pb::CodedOutputStream output) {
1265 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1266 output.WriteRawMessage(this);
1267 #else
1268 exprs_.WriteTo(output, _repeated_exprs_codec);
1269 if (_unknownFields != null) {
1270 _unknownFields.WriteTo(output);
1271 }
1272 #endif
1273 }
1274
1275 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1276 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1277 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1278 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1279 exprs_.WriteTo(ref output, _repeated_exprs_codec);
1280 if (_unknownFields != null) {
1281 _unknownFields.WriteTo(ref output);
1282 }
1283 }
1284 #endif
1285
1286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1288 public int CalculateSize() {
1289 int size = 0;
1290 size += exprs_.CalculateSize(_repeated_exprs_codec);
1291 if (_unknownFields != null) {
1292 size += _unknownFields.CalculateSize();
1293 }
1294 return size;
1295 }
1297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1299 public void MergeFrom(AllDifferentConstraintProto other) {
1300 if (other == null) {
1301 return;
1302 }
1303 exprs_.Add(other.exprs_);
1304 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1305 }
1306
1307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1309 public void MergeFrom(pb::CodedInputStream input) {
1310 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1311 input.ReadRawMessage(this);
1312 #else
1313 uint tag;
1314 while ((tag = input.ReadTag()) != 0) {
1315 switch(tag) {
1316 default:
1317 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1318 break;
1319 case 10: {
1320 exprs_.AddEntriesFrom(input, _repeated_exprs_codec);
1321 break;
1322 }
1323 }
1324 }
1325 #endif
1326 }
1327
1328 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1331 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1332 uint tag;
1333 while ((tag = input.ReadTag()) != 0) {
1334 switch(tag) {
1335 default:
1336 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1337 break;
1338 case 10: {
1339 exprs_.AddEntriesFrom(ref input, _repeated_exprs_codec);
1340 break;
1341 }
1342 }
1343 }
1344 }
1345 #endif
1346
1347 }
1348
1357 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1358 public sealed partial class LinearConstraintProto : pb::IMessage<LinearConstraintProto>
1359 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1360 , pb::IBufferMessage
1361 #endif
1362 {
1363 private static readonly pb::MessageParser<LinearConstraintProto> _parser = new pb::MessageParser<LinearConstraintProto>(() => new LinearConstraintProto());
1364 private pb::UnknownFieldSet _unknownFields;
1365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1367 public static pb::MessageParser<LinearConstraintProto> Parser { get { return _parser; } }
1368
1369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1370 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1371 public static pbr::MessageDescriptor Descriptor {
1372 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[5]; }
1373 }
1374
1375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1376 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1377 pbr::MessageDescriptor pb::IMessage.Descriptor {
1378 get { return Descriptor; }
1379 }
1381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1382 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1383 public LinearConstraintProto() {
1384 OnConstruction();
1385 }
1386
1387 partial void OnConstruction();
1388
1389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1391 public LinearConstraintProto(LinearConstraintProto other) : this() {
1392 vars_ = other.vars_.Clone();
1393 coeffs_ = other.coeffs_.Clone();
1394 domain_ = other.domain_.Clone();
1395 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1396 }
1397
1398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1399 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1400 public LinearConstraintProto Clone() {
1401 return new LinearConstraintProto(this);
1402 }
1403
1405 public const int VarsFieldNumber = 1;
1406 private static readonly pb::FieldCodec<int> _repeated_vars_codec
1407 = pb::FieldCodec.ForInt32(10);
1408 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
1409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1410 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1411 public pbc::RepeatedField<int> Vars {
1412 get { return vars_; }
1413 }
1416 public const int CoeffsFieldNumber = 2;
1417 private static readonly pb::FieldCodec<long> _repeated_coeffs_codec
1418 = pb::FieldCodec.ForInt64(18);
1419 private readonly pbc::RepeatedField<long> coeffs_ = new pbc::RepeatedField<long>();
1423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1425 public pbc::RepeatedField<long> Coeffs {
1426 get { return coeffs_; }
1427 }
1428
1430 public const int DomainFieldNumber = 3;
1431 private static readonly pb::FieldCodec<long> _repeated_domain_codec
1432 = pb::FieldCodec.ForInt64(26);
1433 private readonly pbc::RepeatedField<long> domain_ = new pbc::RepeatedField<long>();
1434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1435 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1436 public pbc::RepeatedField<long> Domain {
1437 get { return domain_; }
1438 }
1440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1442 public override bool Equals(object other) {
1443 return Equals(other as LinearConstraintProto);
1444 }
1446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1448 public bool Equals(LinearConstraintProto other) {
1449 if (ReferenceEquals(other, null)) {
1450 return false;
1452 if (ReferenceEquals(other, this)) {
1453 return true;
1454 }
1455 if(!vars_.Equals(other.vars_)) return false;
1456 if(!coeffs_.Equals(other.coeffs_)) return false;
1457 if(!domain_.Equals(other.domain_)) return false;
1458 return Equals(_unknownFields, other._unknownFields);
1459 }
1460
1461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1462 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1463 public override int GetHashCode() {
1464 int hash = 1;
1465 hash ^= vars_.GetHashCode();
1466 hash ^= coeffs_.GetHashCode();
1467 hash ^= domain_.GetHashCode();
1468 if (_unknownFields != null) {
1469 hash ^= _unknownFields.GetHashCode();
1470 }
1471 return hash;
1473
1474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1476 public override string ToString() {
1477 return pb::JsonFormatter.ToDiagnosticString(this);
1478 }
1479
1480 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1481 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1482 public void WriteTo(pb::CodedOutputStream output) {
1483 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1484 output.WriteRawMessage(this);
1485 #else
1486 vars_.WriteTo(output, _repeated_vars_codec);
1487 coeffs_.WriteTo(output, _repeated_coeffs_codec);
1488 domain_.WriteTo(output, _repeated_domain_codec);
1489 if (_unknownFields != null) {
1490 _unknownFields.WriteTo(output);
1492 #endif
1493 }
1494
1495 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1498 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1499 vars_.WriteTo(ref output, _repeated_vars_codec);
1500 coeffs_.WriteTo(ref output, _repeated_coeffs_codec);
1501 domain_.WriteTo(ref output, _repeated_domain_codec);
1502 if (_unknownFields != null) {
1503 _unknownFields.WriteTo(ref output);
1504 }
1505 }
1506 #endif
1507
1508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1509 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1510 public int CalculateSize() {
1511 int size = 0;
1512 size += vars_.CalculateSize(_repeated_vars_codec);
1513 size += coeffs_.CalculateSize(_repeated_coeffs_codec);
1514 size += domain_.CalculateSize(_repeated_domain_codec);
1515 if (_unknownFields != null) {
1516 size += _unknownFields.CalculateSize();
1517 }
1518 return size;
1520
1521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1522 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1523 public void MergeFrom(LinearConstraintProto other) {
1524 if (other == null) {
1525 return;
1526 }
1527 vars_.Add(other.vars_);
1528 coeffs_.Add(other.coeffs_);
1529 domain_.Add(other.domain_);
1530 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1531 }
1533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1534 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1535 public void MergeFrom(pb::CodedInputStream input) {
1536 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1537 input.ReadRawMessage(this);
1538 #else
1539 uint tag;
1540 while ((tag = input.ReadTag()) != 0) {
1541 switch(tag) {
1542 default:
1543 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1544 break;
1545 case 10:
1546 case 8: {
1547 vars_.AddEntriesFrom(input, _repeated_vars_codec);
1548 break;
1549 }
1550 case 18:
1551 case 16: {
1552 coeffs_.AddEntriesFrom(input, _repeated_coeffs_codec);
1553 break;
1554 }
1555 case 26:
1556 case 24: {
1557 domain_.AddEntriesFrom(input, _repeated_domain_codec);
1558 break;
1559 }
1560 }
1561 }
1562 #endif
1563 }
1564
1565 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1568 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1569 uint tag;
1570 while ((tag = input.ReadTag()) != 0) {
1571 switch(tag) {
1572 default:
1573 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1574 break;
1575 case 10:
1576 case 8: {
1577 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
1578 break;
1579 }
1580 case 18:
1581 case 16: {
1582 coeffs_.AddEntriesFrom(ref input, _repeated_coeffs_codec);
1583 break;
1584 }
1585 case 26:
1586 case 24: {
1587 domain_.AddEntriesFrom(ref input, _repeated_domain_codec);
1588 break;
1589 }
1590 }
1591 }
1592 }
1593 #endif
1594
1595 }
1596
1601 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1602 public sealed partial class ElementConstraintProto : pb::IMessage<ElementConstraintProto>
1603 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1604 , pb::IBufferMessage
1605 #endif
1606 {
1607 private static readonly pb::MessageParser<ElementConstraintProto> _parser = new pb::MessageParser<ElementConstraintProto>(() => new ElementConstraintProto());
1608 private pb::UnknownFieldSet _unknownFields;
1609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1611 public static pb::MessageParser<ElementConstraintProto> Parser { get { return _parser; } }
1612
1613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1615 public static pbr::MessageDescriptor Descriptor {
1616 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[6]; }
1617 }
1618
1619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1621 pbr::MessageDescriptor pb::IMessage.Descriptor {
1622 get { return Descriptor; }
1623 }
1625 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1626 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1627 public ElementConstraintProto() {
1628 OnConstruction();
1629 }
1630
1631 partial void OnConstruction();
1632
1633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1634 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1635 public ElementConstraintProto(ElementConstraintProto other) : this() {
1636 index_ = other.index_;
1637 target_ = other.target_;
1638 vars_ = other.vars_.Clone();
1639 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1640 }
1641
1642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1644 public ElementConstraintProto Clone() {
1645 return new ElementConstraintProto(this);
1646 }
1647
1649 public const int IndexFieldNumber = 1;
1650 private int index_;
1651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1652 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1653 public int Index {
1654 get { return index_; }
1655 set {
1656 index_ = value;
1657 }
1659
1661 public const int TargetFieldNumber = 2;
1662 private int target_;
1663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1664 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1665 public int Target {
1666 get { return target_; }
1667 set {
1668 target_ = value;
1669 }
1671
1673 public const int VarsFieldNumber = 3;
1674 private static readonly pb::FieldCodec<int> _repeated_vars_codec
1675 = pb::FieldCodec.ForInt32(26);
1676 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
1677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1679 public pbc::RepeatedField<int> Vars {
1680 get { return vars_; }
1681 }
1683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1684 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1685 public override bool Equals(object other) {
1686 return Equals(other as ElementConstraintProto);
1687 }
1689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1690 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1691 public bool Equals(ElementConstraintProto other) {
1692 if (ReferenceEquals(other, null)) {
1693 return false;
1695 if (ReferenceEquals(other, this)) {
1696 return true;
1697 }
1698 if (Index != other.Index) return false;
1699 if (Target != other.Target) return false;
1700 if(!vars_.Equals(other.vars_)) return false;
1701 return Equals(_unknownFields, other._unknownFields);
1702 }
1703
1704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1705 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1706 public override int GetHashCode() {
1707 int hash = 1;
1708 if (Index != 0) hash ^= Index.GetHashCode();
1709 if (Target != 0) hash ^= Target.GetHashCode();
1710 hash ^= vars_.GetHashCode();
1711 if (_unknownFields != null) {
1712 hash ^= _unknownFields.GetHashCode();
1713 }
1714 return hash;
1716
1717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1718 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1719 public override string ToString() {
1720 return pb::JsonFormatter.ToDiagnosticString(this);
1721 }
1722
1723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1724 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1725 public void WriteTo(pb::CodedOutputStream output) {
1726 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1727 output.WriteRawMessage(this);
1728 #else
1729 if (Index != 0) {
1730 output.WriteRawTag(8);
1731 output.WriteInt32(Index);
1732 }
1733 if (Target != 0) {
1734 output.WriteRawTag(16);
1735 output.WriteInt32(Target);
1736 }
1737 vars_.WriteTo(output, _repeated_vars_codec);
1738 if (_unknownFields != null) {
1739 _unknownFields.WriteTo(output);
1740 }
1741 #endif
1742 }
1743
1744 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1745 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1746 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1747 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1748 if (Index != 0) {
1749 output.WriteRawTag(8);
1750 output.WriteInt32(Index);
1751 }
1752 if (Target != 0) {
1753 output.WriteRawTag(16);
1754 output.WriteInt32(Target);
1755 }
1756 vars_.WriteTo(ref output, _repeated_vars_codec);
1757 if (_unknownFields != null) {
1758 _unknownFields.WriteTo(ref output);
1759 }
1760 }
1761 #endif
1762
1763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1764 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1765 public int CalculateSize() {
1766 int size = 0;
1767 if (Index != 0) {
1768 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
1769 }
1770 if (Target != 0) {
1771 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Target);
1772 }
1773 size += vars_.CalculateSize(_repeated_vars_codec);
1774 if (_unknownFields != null) {
1775 size += _unknownFields.CalculateSize();
1776 }
1777 return size;
1778 }
1779
1780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1782 public void MergeFrom(ElementConstraintProto other) {
1783 if (other == null) {
1784 return;
1785 }
1786 if (other.Index != 0) {
1787 Index = other.Index;
1788 }
1789 if (other.Target != 0) {
1790 Target = other.Target;
1792 vars_.Add(other.vars_);
1793 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1794 }
1795
1796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1797 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1798 public void MergeFrom(pb::CodedInputStream input) {
1799 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1800 input.ReadRawMessage(this);
1801 #else
1802 uint tag;
1803 while ((tag = input.ReadTag()) != 0) {
1804 switch(tag) {
1805 default:
1806 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1807 break;
1808 case 8: {
1809 Index = input.ReadInt32();
1810 break;
1811 }
1812 case 16: {
1813 Target = input.ReadInt32();
1814 break;
1815 }
1816 case 26:
1817 case 24: {
1818 vars_.AddEntriesFrom(input, _repeated_vars_codec);
1819 break;
1820 }
1821 }
1822 }
1823 #endif
1824 }
1825
1826 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1828 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1829 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1830 uint tag;
1831 while ((tag = input.ReadTag()) != 0) {
1832 switch(tag) {
1833 default:
1834 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1835 break;
1836 case 8: {
1837 Index = input.ReadInt32();
1838 break;
1839 }
1840 case 16: {
1841 Target = input.ReadInt32();
1842 break;
1843 }
1844 case 26:
1845 case 24: {
1846 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
1847 break;
1848 }
1849 }
1850 }
1851 }
1852 #endif
1853
1854 }
1855
1869 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1870 public sealed partial class IntervalConstraintProto : pb::IMessage<IntervalConstraintProto>
1871 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1872 , pb::IBufferMessage
1873 #endif
1874 {
1875 private static readonly pb::MessageParser<IntervalConstraintProto> _parser = new pb::MessageParser<IntervalConstraintProto>(() => new IntervalConstraintProto());
1876 private pb::UnknownFieldSet _unknownFields;
1877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1878 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1879 public static pb::MessageParser<IntervalConstraintProto> Parser { get { return _parser; } }
1880
1881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1883 public static pbr::MessageDescriptor Descriptor {
1884 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[7]; }
1885 }
1886
1887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1889 pbr::MessageDescriptor pb::IMessage.Descriptor {
1890 get { return Descriptor; }
1891 }
1892
1893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1894 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1895 public IntervalConstraintProto() {
1896 OnConstruction();
1897 }
1898
1899 partial void OnConstruction();
1900
1901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1903 public IntervalConstraintProto(IntervalConstraintProto other) : this() {
1904 start_ = other.start_ != null ? other.start_.Clone() : null;
1905 end_ = other.end_ != null ? other.end_.Clone() : null;
1906 size_ = other.size_ != null ? other.size_.Clone() : null;
1907 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1908 }
1909
1910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1912 public IntervalConstraintProto Clone() {
1913 return new IntervalConstraintProto(this);
1915
1917 public const int StartFieldNumber = 4;
1918 private global::Google.OrTools.Sat.LinearExpressionProto start_;
1919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1921 public global::Google.OrTools.Sat.LinearExpressionProto Start {
1922 get { return start_; }
1923 set {
1924 start_ = value;
1925 }
1926 }
1927
1929 public const int EndFieldNumber = 5;
1930 private global::Google.OrTools.Sat.LinearExpressionProto end_;
1931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1932 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1933 public global::Google.OrTools.Sat.LinearExpressionProto End {
1934 get { return end_; }
1935 set {
1936 end_ = value;
1937 }
1938 }
1939
1941 public const int SizeFieldNumber = 6;
1942 private global::Google.OrTools.Sat.LinearExpressionProto size_;
1943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1944 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1945 public global::Google.OrTools.Sat.LinearExpressionProto Size {
1946 get { return size_; }
1947 set {
1948 size_ = value;
1949 }
1950 }
1951
1952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1953 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1954 public override bool Equals(object other) {
1955 return Equals(other as IntervalConstraintProto);
1957
1958 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1959 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1960 public bool Equals(IntervalConstraintProto other) {
1961 if (ReferenceEquals(other, null)) {
1962 return false;
1963 }
1964 if (ReferenceEquals(other, this)) {
1965 return true;
1966 }
1967 if (!object.Equals(Start, other.Start)) return false;
1968 if (!object.Equals(End, other.End)) return false;
1969 if (!object.Equals(Size, other.Size)) return false;
1970 return Equals(_unknownFields, other._unknownFields);
1972
1973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1975 public override int GetHashCode() {
1976 int hash = 1;
1977 if (start_ != null) hash ^= Start.GetHashCode();
1978 if (end_ != null) hash ^= End.GetHashCode();
1979 if (size_ != null) hash ^= Size.GetHashCode();
1980 if (_unknownFields != null) {
1981 hash ^= _unknownFields.GetHashCode();
1982 }
1983 return hash;
1984 }
1985
1986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1988 public override string ToString() {
1989 return pb::JsonFormatter.ToDiagnosticString(this);
1990 }
1991
1992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1994 public void WriteTo(pb::CodedOutputStream output) {
1995 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1996 output.WriteRawMessage(this);
1997 #else
1998 if (start_ != null) {
1999 output.WriteRawTag(34);
2000 output.WriteMessage(Start);
2001 }
2002 if (end_ != null) {
2003 output.WriteRawTag(42);
2004 output.WriteMessage(End);
2006 if (size_ != null) {
2007 output.WriteRawTag(50);
2008 output.WriteMessage(Size);
2009 }
2010 if (_unknownFields != null) {
2011 _unknownFields.WriteTo(output);
2012 }
2013 #endif
2014 }
2015
2016 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2018 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2019 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2020 if (start_ != null) {
2021 output.WriteRawTag(34);
2022 output.WriteMessage(Start);
2023 }
2024 if (end_ != null) {
2025 output.WriteRawTag(42);
2026 output.WriteMessage(End);
2027 }
2028 if (size_ != null) {
2029 output.WriteRawTag(50);
2030 output.WriteMessage(Size);
2031 }
2032 if (_unknownFields != null) {
2033 _unknownFields.WriteTo(ref output);
2034 }
2035 }
2036 #endif
2037
2038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2039 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2040 public int CalculateSize() {
2041 int size = 0;
2042 if (start_ != null) {
2043 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Start);
2044 }
2045 if (end_ != null) {
2046 size += 1 + pb::CodedOutputStream.ComputeMessageSize(End);
2047 }
2048 if (size_ != null) {
2049 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size);
2050 }
2051 if (_unknownFields != null) {
2052 size += _unknownFields.CalculateSize();
2053 }
2054 return size;
2055 }
2056
2057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2059 public void MergeFrom(IntervalConstraintProto other) {
2060 if (other == null) {
2061 return;
2062 }
2063 if (other.start_ != null) {
2064 if (start_ == null) {
2065 Start = new global::Google.OrTools.Sat.LinearExpressionProto();
2066 }
2067 Start.MergeFrom(other.Start);
2068 }
2069 if (other.end_ != null) {
2070 if (end_ == null) {
2071 End = new global::Google.OrTools.Sat.LinearExpressionProto();
2072 }
2073 End.MergeFrom(other.End);
2074 }
2075 if (other.size_ != null) {
2076 if (size_ == null) {
2077 Size = new global::Google.OrTools.Sat.LinearExpressionProto();
2078 }
2079 Size.MergeFrom(other.Size);
2080 }
2081 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2082 }
2083
2084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2086 public void MergeFrom(pb::CodedInputStream input) {
2087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2088 input.ReadRawMessage(this);
2089 #else
2090 uint tag;
2091 while ((tag = input.ReadTag()) != 0) {
2092 switch(tag) {
2093 default:
2094 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2095 break;
2096 case 34: {
2097 if (start_ == null) {
2098 Start = new global::Google.OrTools.Sat.LinearExpressionProto();
2099 }
2100 input.ReadMessage(Start);
2101 break;
2102 }
2103 case 42: {
2104 if (end_ == null) {
2105 End = new global::Google.OrTools.Sat.LinearExpressionProto();
2106 }
2107 input.ReadMessage(End);
2108 break;
2109 }
2110 case 50: {
2111 if (size_ == null) {
2112 Size = new global::Google.OrTools.Sat.LinearExpressionProto();
2113 }
2114 input.ReadMessage(Size);
2115 break;
2116 }
2117 }
2118 }
2119 #endif
2120 }
2121
2122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2123 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2124 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2125 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2126 uint tag;
2127 while ((tag = input.ReadTag()) != 0) {
2128 switch(tag) {
2129 default:
2130 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2131 break;
2132 case 34: {
2133 if (start_ == null) {
2134 Start = new global::Google.OrTools.Sat.LinearExpressionProto();
2135 }
2136 input.ReadMessage(Start);
2137 break;
2138 }
2139 case 42: {
2140 if (end_ == null) {
2141 End = new global::Google.OrTools.Sat.LinearExpressionProto();
2142 }
2143 input.ReadMessage(End);
2144 break;
2145 }
2146 case 50: {
2147 if (size_ == null) {
2148 Size = new global::Google.OrTools.Sat.LinearExpressionProto();
2149 }
2150 input.ReadMessage(Size);
2151 break;
2152 }
2153 }
2154 }
2155 }
2156 #endif
2157
2158 }
2159
2167 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2168 public sealed partial class NoOverlapConstraintProto : pb::IMessage<NoOverlapConstraintProto>
2169 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2170 , pb::IBufferMessage
2171 #endif
2172 {
2173 private static readonly pb::MessageParser<NoOverlapConstraintProto> _parser = new pb::MessageParser<NoOverlapConstraintProto>(() => new NoOverlapConstraintProto());
2174 private pb::UnknownFieldSet _unknownFields;
2175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2177 public static pb::MessageParser<NoOverlapConstraintProto> Parser { get { return _parser; } }
2178
2179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2180 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2181 public static pbr::MessageDescriptor Descriptor {
2182 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[8]; }
2183 }
2184
2185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2186 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2187 pbr::MessageDescriptor pb::IMessage.Descriptor {
2188 get { return Descriptor; }
2189 }
2190
2191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2193 public NoOverlapConstraintProto() {
2194 OnConstruction();
2195 }
2196
2197 partial void OnConstruction();
2198
2199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2201 public NoOverlapConstraintProto(NoOverlapConstraintProto other) : this() {
2202 intervals_ = other.intervals_.Clone();
2203 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2205
2206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2207 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2208 public NoOverlapConstraintProto Clone() {
2209 return new NoOverlapConstraintProto(this);
2210 }
2211
2213 public const int IntervalsFieldNumber = 1;
2214 private static readonly pb::FieldCodec<int> _repeated_intervals_codec
2215 = pb::FieldCodec.ForInt32(10);
2216 private readonly pbc::RepeatedField<int> intervals_ = new pbc::RepeatedField<int>();
2217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2219 public pbc::RepeatedField<int> Intervals {
2220 get { return intervals_; }
2221 }
2222
2223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2224 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2225 public override bool Equals(object other) {
2226 return Equals(other as NoOverlapConstraintProto);
2227 }
2228
2229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2230 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2231 public bool Equals(NoOverlapConstraintProto other) {
2232 if (ReferenceEquals(other, null)) {
2233 return false;
2234 }
2235 if (ReferenceEquals(other, this)) {
2236 return true;
2237 }
2238 if(!intervals_.Equals(other.intervals_)) return false;
2239 return Equals(_unknownFields, other._unknownFields);
2240 }
2241
2242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2244 public override int GetHashCode() {
2245 int hash = 1;
2246 hash ^= intervals_.GetHashCode();
2247 if (_unknownFields != null) {
2248 hash ^= _unknownFields.GetHashCode();
2249 }
2250 return hash;
2251 }
2252
2253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2255 public override string ToString() {
2256 return pb::JsonFormatter.ToDiagnosticString(this);
2257 }
2258
2259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2260 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2261 public void WriteTo(pb::CodedOutputStream output) {
2262 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2263 output.WriteRawMessage(this);
2264 #else
2265 intervals_.WriteTo(output, _repeated_intervals_codec);
2266 if (_unknownFields != null) {
2267 _unknownFields.WriteTo(output);
2268 }
2269 #endif
2270 }
2271
2272 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2275 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2276 intervals_.WriteTo(ref output, _repeated_intervals_codec);
2277 if (_unknownFields != null) {
2278 _unknownFields.WriteTo(ref output);
2279 }
2280 }
2281 #endif
2282
2283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2285 public int CalculateSize() {
2286 int size = 0;
2287 size += intervals_.CalculateSize(_repeated_intervals_codec);
2288 if (_unknownFields != null) {
2289 size += _unknownFields.CalculateSize();
2290 }
2291 return size;
2292 }
2293
2294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2295 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2296 public void MergeFrom(NoOverlapConstraintProto other) {
2297 if (other == null) {
2298 return;
2299 }
2300 intervals_.Add(other.intervals_);
2301 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2302 }
2303
2304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2306 public void MergeFrom(pb::CodedInputStream input) {
2307 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2308 input.ReadRawMessage(this);
2309 #else
2310 uint tag;
2311 while ((tag = input.ReadTag()) != 0) {
2312 switch(tag) {
2313 default:
2314 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2315 break;
2316 case 10:
2317 case 8: {
2318 intervals_.AddEntriesFrom(input, _repeated_intervals_codec);
2319 break;
2320 }
2321 }
2322 }
2323 #endif
2324 }
2325
2326 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2328 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2329 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2330 uint tag;
2331 while ((tag = input.ReadTag()) != 0) {
2332 switch(tag) {
2333 default:
2334 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2335 break;
2336 case 10:
2337 case 8: {
2338 intervals_.AddEntriesFrom(ref input, _repeated_intervals_codec);
2339 break;
2340 }
2341 }
2342 }
2343 }
2344 #endif
2345
2346 }
2347
2359 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2360 public sealed partial class NoOverlap2DConstraintProto : pb::IMessage<NoOverlap2DConstraintProto>
2361 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2362 , pb::IBufferMessage
2363 #endif
2364 {
2365 private static readonly pb::MessageParser<NoOverlap2DConstraintProto> _parser = new pb::MessageParser<NoOverlap2DConstraintProto>(() => new NoOverlap2DConstraintProto());
2366 private pb::UnknownFieldSet _unknownFields;
2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2369 public static pb::MessageParser<NoOverlap2DConstraintProto> Parser { get { return _parser; } }
2370
2371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2372 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2373 public static pbr::MessageDescriptor Descriptor {
2374 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[9]; }
2375 }
2376
2377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2378 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2379 pbr::MessageDescriptor pb::IMessage.Descriptor {
2380 get { return Descriptor; }
2382
2383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2384 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2386 OnConstruction();
2387 }
2388
2389 partial void OnConstruction();
2390
2391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2392 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2394 xIntervals_ = other.xIntervals_.Clone();
2395 yIntervals_ = other.yIntervals_.Clone();
2396 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2398
2399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2401 public NoOverlap2DConstraintProto Clone() {
2402 return new NoOverlap2DConstraintProto(this);
2403 }
2404
2406 public const int XIntervalsFieldNumber = 1;
2407 private static readonly pb::FieldCodec<int> _repeated_xIntervals_codec
2408 = pb::FieldCodec.ForInt32(10);
2409 private readonly pbc::RepeatedField<int> xIntervals_ = new pbc::RepeatedField<int>();
2410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2411 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2412 public pbc::RepeatedField<int> XIntervals {
2413 get { return xIntervals_; }
2414 }
2415
2417 public const int YIntervalsFieldNumber = 2;
2418 private static readonly pb::FieldCodec<int> _repeated_yIntervals_codec
2419 = pb::FieldCodec.ForInt32(18);
2420 private readonly pbc::RepeatedField<int> yIntervals_ = new pbc::RepeatedField<int>();
2424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2425 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2426 public pbc::RepeatedField<int> YIntervals {
2427 get { return yIntervals_; }
2428 }
2430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2432 public override bool Equals(object other) {
2433 return Equals(other as NoOverlap2DConstraintProto);
2434 }
2435
2436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2437 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2438 public bool Equals(NoOverlap2DConstraintProto other) {
2439 if (ReferenceEquals(other, null)) {
2440 return false;
2441 }
2442 if (ReferenceEquals(other, this)) {
2443 return true;
2445 if(!xIntervals_.Equals(other.xIntervals_)) return false;
2446 if(!yIntervals_.Equals(other.yIntervals_)) return false;
2447 return Equals(_unknownFields, other._unknownFields);
2448 }
2449
2450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2452 public override int GetHashCode() {
2453 int hash = 1;
2454 hash ^= xIntervals_.GetHashCode();
2455 hash ^= yIntervals_.GetHashCode();
2456 if (_unknownFields != null) {
2457 hash ^= _unknownFields.GetHashCode();
2458 }
2459 return hash;
2460 }
2461
2462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2463 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2464 public override string ToString() {
2465 return pb::JsonFormatter.ToDiagnosticString(this);
2466 }
2467
2468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2469 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2470 public void WriteTo(pb::CodedOutputStream output) {
2471 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2472 output.WriteRawMessage(this);
2473 #else
2474 xIntervals_.WriteTo(output, _repeated_xIntervals_codec);
2475 yIntervals_.WriteTo(output, _repeated_yIntervals_codec);
2476 if (_unknownFields != null) {
2477 _unknownFields.WriteTo(output);
2478 }
2479 #endif
2480 }
2481
2482 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2484 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2485 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2486 xIntervals_.WriteTo(ref output, _repeated_xIntervals_codec);
2487 yIntervals_.WriteTo(ref output, _repeated_yIntervals_codec);
2488 if (_unknownFields != null) {
2489 _unknownFields.WriteTo(ref output);
2490 }
2491 }
2492 #endif
2493
2494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2496 public int CalculateSize() {
2497 int size = 0;
2498 size += xIntervals_.CalculateSize(_repeated_xIntervals_codec);
2499 size += yIntervals_.CalculateSize(_repeated_yIntervals_codec);
2500 if (_unknownFields != null) {
2501 size += _unknownFields.CalculateSize();
2502 }
2503 return size;
2504 }
2505
2506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2508 public void MergeFrom(NoOverlap2DConstraintProto other) {
2509 if (other == null) {
2510 return;
2511 }
2512 xIntervals_.Add(other.xIntervals_);
2513 yIntervals_.Add(other.yIntervals_);
2514 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2515 }
2516
2517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2519 public void MergeFrom(pb::CodedInputStream input) {
2520 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2521 input.ReadRawMessage(this);
2522 #else
2523 uint tag;
2524 while ((tag = input.ReadTag()) != 0) {
2525 switch(tag) {
2526 default:
2527 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2528 break;
2529 case 10:
2530 case 8: {
2531 xIntervals_.AddEntriesFrom(input, _repeated_xIntervals_codec);
2532 break;
2533 }
2534 case 18:
2535 case 16: {
2536 yIntervals_.AddEntriesFrom(input, _repeated_yIntervals_codec);
2537 break;
2538 }
2539 }
2540 }
2541 #endif
2542 }
2543
2544 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2547 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2548 uint tag;
2549 while ((tag = input.ReadTag()) != 0) {
2550 switch(tag) {
2551 default:
2552 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2553 break;
2554 case 10:
2555 case 8: {
2556 xIntervals_.AddEntriesFrom(ref input, _repeated_xIntervals_codec);
2557 break;
2558 }
2559 case 18:
2560 case 16: {
2561 yIntervals_.AddEntriesFrom(ref input, _repeated_yIntervals_codec);
2562 break;
2563 }
2564 }
2565 }
2566 }
2567 #endif
2568
2569 }
2570
2581 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2582 public sealed partial class CumulativeConstraintProto : pb::IMessage<CumulativeConstraintProto>
2583 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2584 , pb::IBufferMessage
2585 #endif
2586 {
2587 private static readonly pb::MessageParser<CumulativeConstraintProto> _parser = new pb::MessageParser<CumulativeConstraintProto>(() => new CumulativeConstraintProto());
2588 private pb::UnknownFieldSet _unknownFields;
2589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2591 public static pb::MessageParser<CumulativeConstraintProto> Parser { get { return _parser; } }
2592
2593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2595 public static pbr::MessageDescriptor Descriptor {
2596 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[10]; }
2597 }
2598
2599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2600 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2601 pbr::MessageDescriptor pb::IMessage.Descriptor {
2602 get { return Descriptor; }
2603 }
2605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2606 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2607 public CumulativeConstraintProto() {
2608 OnConstruction();
2609 }
2610
2611 partial void OnConstruction();
2612
2613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2614 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2616 capacity_ = other.capacity_ != null ? other.capacity_.Clone() : null;
2617 intervals_ = other.intervals_.Clone();
2618 demands_ = other.demands_.Clone();
2619 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2621
2622 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2623 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2624 public CumulativeConstraintProto Clone() {
2625 return new CumulativeConstraintProto(this);
2626 }
2627
2629 public const int CapacityFieldNumber = 1;
2630 private global::Google.OrTools.Sat.LinearExpressionProto capacity_;
2631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2632 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2633 public global::Google.OrTools.Sat.LinearExpressionProto Capacity {
2634 get { return capacity_; }
2635 set {
2636 capacity_ = value;
2638 }
2639
2641 public const int IntervalsFieldNumber = 2;
2642 private static readonly pb::FieldCodec<int> _repeated_intervals_codec
2643 = pb::FieldCodec.ForInt32(18);
2644 private readonly pbc::RepeatedField<int> intervals_ = new pbc::RepeatedField<int>();
2645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2647 public pbc::RepeatedField<int> Intervals {
2648 get { return intervals_; }
2649 }
2650
2652 public const int DemandsFieldNumber = 3;
2653 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearExpressionProto> _repeated_demands_codec
2654 = pb::FieldCodec.ForMessage(26, global::Google.OrTools.Sat.LinearExpressionProto.Parser);
2655 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> demands_ = new pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto>();
2659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2661 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> Demands {
2662 get { return demands_; }
2663 }
2664
2665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2666 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2667 public override bool Equals(object other) {
2668 return Equals(other as CumulativeConstraintProto);
2669 }
2670
2671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2673 public bool Equals(CumulativeConstraintProto other) {
2674 if (ReferenceEquals(other, null)) {
2675 return false;
2676 }
2677 if (ReferenceEquals(other, this)) {
2678 return true;
2679 }
2680 if (!object.Equals(Capacity, other.Capacity)) return false;
2681 if(!intervals_.Equals(other.intervals_)) return false;
2682 if(!demands_.Equals(other.demands_)) return false;
2683 return Equals(_unknownFields, other._unknownFields);
2684 }
2685
2686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2688 public override int GetHashCode() {
2689 int hash = 1;
2690 if (capacity_ != null) hash ^= Capacity.GetHashCode();
2691 hash ^= intervals_.GetHashCode();
2692 hash ^= demands_.GetHashCode();
2693 if (_unknownFields != null) {
2694 hash ^= _unknownFields.GetHashCode();
2695 }
2696 return hash;
2697 }
2698
2699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2700 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2701 public override string ToString() {
2702 return pb::JsonFormatter.ToDiagnosticString(this);
2703 }
2704
2705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2707 public void WriteTo(pb::CodedOutputStream output) {
2708 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2709 output.WriteRawMessage(this);
2710 #else
2711 if (capacity_ != null) {
2712 output.WriteRawTag(10);
2713 output.WriteMessage(Capacity);
2715 intervals_.WriteTo(output, _repeated_intervals_codec);
2716 demands_.WriteTo(output, _repeated_demands_codec);
2717 if (_unknownFields != null) {
2718 _unknownFields.WriteTo(output);
2719 }
2720 #endif
2721 }
2722
2723 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2725 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2726 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2727 if (capacity_ != null) {
2728 output.WriteRawTag(10);
2729 output.WriteMessage(Capacity);
2730 }
2731 intervals_.WriteTo(ref output, _repeated_intervals_codec);
2732 demands_.WriteTo(ref output, _repeated_demands_codec);
2733 if (_unknownFields != null) {
2734 _unknownFields.WriteTo(ref output);
2735 }
2736 }
2737 #endif
2738
2739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2741 public int CalculateSize() {
2742 int size = 0;
2743 if (capacity_ != null) {
2744 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Capacity);
2745 }
2746 size += intervals_.CalculateSize(_repeated_intervals_codec);
2747 size += demands_.CalculateSize(_repeated_demands_codec);
2748 if (_unknownFields != null) {
2749 size += _unknownFields.CalculateSize();
2750 }
2751 return size;
2752 }
2753
2754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2755 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2756 public void MergeFrom(CumulativeConstraintProto other) {
2757 if (other == null) {
2758 return;
2759 }
2760 if (other.capacity_ != null) {
2761 if (capacity_ == null) {
2762 Capacity = new global::Google.OrTools.Sat.LinearExpressionProto();
2763 }
2764 Capacity.MergeFrom(other.Capacity);
2765 }
2766 intervals_.Add(other.intervals_);
2767 demands_.Add(other.demands_);
2768 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2770
2771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2773 public void MergeFrom(pb::CodedInputStream input) {
2774 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2775 input.ReadRawMessage(this);
2776 #else
2777 uint tag;
2778 while ((tag = input.ReadTag()) != 0) {
2779 switch(tag) {
2780 default:
2781 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2782 break;
2783 case 10: {
2784 if (capacity_ == null) {
2785 Capacity = new global::Google.OrTools.Sat.LinearExpressionProto();
2787 input.ReadMessage(Capacity);
2788 break;
2789 }
2790 case 18:
2791 case 16: {
2792 intervals_.AddEntriesFrom(input, _repeated_intervals_codec);
2793 break;
2794 }
2795 case 26: {
2796 demands_.AddEntriesFrom(input, _repeated_demands_codec);
2797 break;
2798 }
2799 }
2800 }
2801 #endif
2802 }
2803
2804 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2806 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2807 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2808 uint tag;
2809 while ((tag = input.ReadTag()) != 0) {
2810 switch(tag) {
2811 default:
2812 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2813 break;
2814 case 10: {
2815 if (capacity_ == null) {
2816 Capacity = new global::Google.OrTools.Sat.LinearExpressionProto();
2817 }
2818 input.ReadMessage(Capacity);
2819 break;
2820 }
2821 case 18:
2822 case 16: {
2823 intervals_.AddEntriesFrom(ref input, _repeated_intervals_codec);
2824 break;
2825 }
2826 case 26: {
2827 demands_.AddEntriesFrom(ref input, _repeated_demands_codec);
2828 break;
2829 }
2830 }
2831 }
2832 }
2833 #endif
2834
2835 }
2836
2855 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2856 public sealed partial class ReservoirConstraintProto : pb::IMessage<ReservoirConstraintProto>
2857 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2858 , pb::IBufferMessage
2859 #endif
2860 {
2861 private static readonly pb::MessageParser<ReservoirConstraintProto> _parser = new pb::MessageParser<ReservoirConstraintProto>(() => new ReservoirConstraintProto());
2862 private pb::UnknownFieldSet _unknownFields;
2863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2865 public static pb::MessageParser<ReservoirConstraintProto> Parser { get { return _parser; } }
2866
2867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2868 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2869 public static pbr::MessageDescriptor Descriptor {
2870 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[11]; }
2871 }
2872
2873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2874 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2875 pbr::MessageDescriptor pb::IMessage.Descriptor {
2876 get { return Descriptor; }
2877 }
2878
2879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2880 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2881 public ReservoirConstraintProto() {
2882 OnConstruction();
2883 }
2884
2885 partial void OnConstruction();
2887 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2888 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2889 public ReservoirConstraintProto(ReservoirConstraintProto other) : this() {
2890 minLevel_ = other.minLevel_;
2891 maxLevel_ = other.maxLevel_;
2892 timeExprs_ = other.timeExprs_.Clone();
2893 levelChanges_ = other.levelChanges_.Clone();
2894 activeLiterals_ = other.activeLiterals_.Clone();
2895 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2896 }
2897
2898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2900 public ReservoirConstraintProto Clone() {
2901 return new ReservoirConstraintProto(this);
2902 }
2903
2905 public const int MinLevelFieldNumber = 1;
2906 private long minLevel_;
2907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2908 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2909 public long MinLevel {
2910 get { return minLevel_; }
2911 set {
2912 minLevel_ = value;
2913 }
2914 }
2915
2917 public const int MaxLevelFieldNumber = 2;
2918 private long maxLevel_;
2919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2921 public long MaxLevel {
2922 get { return maxLevel_; }
2923 set {
2924 maxLevel_ = value;
2925 }
2927
2929 public const int TimeExprsFieldNumber = 3;
2930 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearExpressionProto> _repeated_timeExprs_codec
2931 = pb::FieldCodec.ForMessage(26, global::Google.OrTools.Sat.LinearExpressionProto.Parser);
2932 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> timeExprs_ = new pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto>();
2936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2938 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> TimeExprs {
2939 get { return timeExprs_; }
2940 }
2941
2943 public const int LevelChangesFieldNumber = 6;
2944 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearExpressionProto> _repeated_levelChanges_codec
2945 = pb::FieldCodec.ForMessage(50, global::Google.OrTools.Sat.LinearExpressionProto.Parser);
2946 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> levelChanges_ = new pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto>();
2950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2951 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2952 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> LevelChanges {
2953 get { return levelChanges_; }
2954 }
2957 public const int ActiveLiteralsFieldNumber = 5;
2958 private static readonly pb::FieldCodec<int> _repeated_activeLiterals_codec
2959 = pb::FieldCodec.ForInt32(42);
2960 private readonly pbc::RepeatedField<int> activeLiterals_ = new pbc::RepeatedField<int>();
2961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2962 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2963 public pbc::RepeatedField<int> ActiveLiterals {
2964 get { return activeLiterals_; }
2965 }
2966
2967 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2968 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2969 public override bool Equals(object other) {
2970 return Equals(other as ReservoirConstraintProto);
2971 }
2972
2973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2974 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2975 public bool Equals(ReservoirConstraintProto other) {
2976 if (ReferenceEquals(other, null)) {
2977 return false;
2978 }
2979 if (ReferenceEquals(other, this)) {
2980 return true;
2981 }
2982 if (MinLevel != other.MinLevel) return false;
2983 if (MaxLevel != other.MaxLevel) return false;
2984 if(!timeExprs_.Equals(other.timeExprs_)) return false;
2985 if(!levelChanges_.Equals(other.levelChanges_)) return false;
2986 if(!activeLiterals_.Equals(other.activeLiterals_)) return false;
2987 return Equals(_unknownFields, other._unknownFields);
2988 }
2989
2990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2991 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2992 public override int GetHashCode() {
2993 int hash = 1;
2994 if (MinLevel != 0L) hash ^= MinLevel.GetHashCode();
2995 if (MaxLevel != 0L) hash ^= MaxLevel.GetHashCode();
2996 hash ^= timeExprs_.GetHashCode();
2997 hash ^= levelChanges_.GetHashCode();
2998 hash ^= activeLiterals_.GetHashCode();
2999 if (_unknownFields != null) {
3000 hash ^= _unknownFields.GetHashCode();
3001 }
3002 return hash;
3003 }
3004
3005 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3006 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3007 public override string ToString() {
3008 return pb::JsonFormatter.ToDiagnosticString(this);
3010
3011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3012 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3013 public void WriteTo(pb::CodedOutputStream output) {
3014 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3015 output.WriteRawMessage(this);
3016 #else
3017 if (MinLevel != 0L) {
3018 output.WriteRawTag(8);
3019 output.WriteInt64(MinLevel);
3020 }
3021 if (MaxLevel != 0L) {
3022 output.WriteRawTag(16);
3023 output.WriteInt64(MaxLevel);
3025 timeExprs_.WriteTo(output, _repeated_timeExprs_codec);
3026 activeLiterals_.WriteTo(output, _repeated_activeLiterals_codec);
3027 levelChanges_.WriteTo(output, _repeated_levelChanges_codec);
3028 if (_unknownFields != null) {
3029 _unknownFields.WriteTo(output);
3031 #endif
3032 }
3033
3034 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3037 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3038 if (MinLevel != 0L) {
3039 output.WriteRawTag(8);
3040 output.WriteInt64(MinLevel);
3041 }
3042 if (MaxLevel != 0L) {
3043 output.WriteRawTag(16);
3044 output.WriteInt64(MaxLevel);
3045 }
3046 timeExprs_.WriteTo(ref output, _repeated_timeExprs_codec);
3047 activeLiterals_.WriteTo(ref output, _repeated_activeLiterals_codec);
3048 levelChanges_.WriteTo(ref output, _repeated_levelChanges_codec);
3049 if (_unknownFields != null) {
3050 _unknownFields.WriteTo(ref output);
3051 }
3052 }
3053 #endif
3054
3055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3056 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3057 public int CalculateSize() {
3058 int size = 0;
3059 if (MinLevel != 0L) {
3060 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MinLevel);
3061 }
3062 if (MaxLevel != 0L) {
3063 size += 1 + pb::CodedOutputStream.ComputeInt64Size(MaxLevel);
3064 }
3065 size += timeExprs_.CalculateSize(_repeated_timeExprs_codec);
3066 size += levelChanges_.CalculateSize(_repeated_levelChanges_codec);
3067 size += activeLiterals_.CalculateSize(_repeated_activeLiterals_codec);
3068 if (_unknownFields != null) {
3069 size += _unknownFields.CalculateSize();
3070 }
3071 return size;
3072 }
3073
3074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3075 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3076 public void MergeFrom(ReservoirConstraintProto other) {
3077 if (other == null) {
3078 return;
3079 }
3080 if (other.MinLevel != 0L) {
3081 MinLevel = other.MinLevel;
3082 }
3083 if (other.MaxLevel != 0L) {
3084 MaxLevel = other.MaxLevel;
3085 }
3086 timeExprs_.Add(other.timeExprs_);
3087 levelChanges_.Add(other.levelChanges_);
3088 activeLiterals_.Add(other.activeLiterals_);
3089 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3090 }
3091
3092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3093 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3094 public void MergeFrom(pb::CodedInputStream input) {
3095 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3096 input.ReadRawMessage(this);
3097 #else
3098 uint tag;
3099 while ((tag = input.ReadTag()) != 0) {
3100 switch(tag) {
3101 default:
3102 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3103 break;
3104 case 8: {
3105 MinLevel = input.ReadInt64();
3106 break;
3107 }
3108 case 16: {
3109 MaxLevel = input.ReadInt64();
3110 break;
3112 case 26: {
3113 timeExprs_.AddEntriesFrom(input, _repeated_timeExprs_codec);
3114 break;
3115 }
3116 case 42:
3117 case 40: {
3118 activeLiterals_.AddEntriesFrom(input, _repeated_activeLiterals_codec);
3119 break;
3120 }
3121 case 50: {
3122 levelChanges_.AddEntriesFrom(input, _repeated_levelChanges_codec);
3123 break;
3124 }
3125 }
3126 }
3127 #endif
3128 }
3129
3130 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3133 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3134 uint tag;
3135 while ((tag = input.ReadTag()) != 0) {
3136 switch(tag) {
3137 default:
3138 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3139 break;
3140 case 8: {
3141 MinLevel = input.ReadInt64();
3142 break;
3143 }
3144 case 16: {
3145 MaxLevel = input.ReadInt64();
3146 break;
3147 }
3148 case 26: {
3149 timeExprs_.AddEntriesFrom(ref input, _repeated_timeExprs_codec);
3150 break;
3151 }
3152 case 42:
3153 case 40: {
3154 activeLiterals_.AddEntriesFrom(ref input, _repeated_activeLiterals_codec);
3155 break;
3156 }
3157 case 50: {
3158 levelChanges_.AddEntriesFrom(ref input, _repeated_levelChanges_codec);
3159 break;
3160 }
3161 }
3162 }
3163 }
3164 #endif
3165
3166 }
3167
3179 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3180 public sealed partial class CircuitConstraintProto : pb::IMessage<CircuitConstraintProto>
3181 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3182 , pb::IBufferMessage
3183 #endif
3184 {
3185 private static readonly pb::MessageParser<CircuitConstraintProto> _parser = new pb::MessageParser<CircuitConstraintProto>(() => new CircuitConstraintProto());
3186 private pb::UnknownFieldSet _unknownFields;
3187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3188 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3189 public static pb::MessageParser<CircuitConstraintProto> Parser { get { return _parser; } }
3190
3191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3193 public static pbr::MessageDescriptor Descriptor {
3194 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[12]; }
3195 }
3196
3197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3198 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3199 pbr::MessageDescriptor pb::IMessage.Descriptor {
3200 get { return Descriptor; }
3201 }
3202
3203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3205 public CircuitConstraintProto() {
3206 OnConstruction();
3208
3209 partial void OnConstruction();
3210
3211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3212 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3213 public CircuitConstraintProto(CircuitConstraintProto other) : this() {
3214 tails_ = other.tails_.Clone();
3215 heads_ = other.heads_.Clone();
3216 literals_ = other.literals_.Clone();
3217 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3218 }
3219
3220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3221 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3222 public CircuitConstraintProto Clone() {
3223 return new CircuitConstraintProto(this);
3224 }
3225
3227 public const int TailsFieldNumber = 3;
3228 private static readonly pb::FieldCodec<int> _repeated_tails_codec
3229 = pb::FieldCodec.ForInt32(26);
3230 private readonly pbc::RepeatedField<int> tails_ = new pbc::RepeatedField<int>();
3231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3233 public pbc::RepeatedField<int> Tails {
3234 get { return tails_; }
3235 }
3236
3238 public const int HeadsFieldNumber = 4;
3239 private static readonly pb::FieldCodec<int> _repeated_heads_codec
3240 = pb::FieldCodec.ForInt32(34);
3241 private readonly pbc::RepeatedField<int> heads_ = new pbc::RepeatedField<int>();
3242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3244 public pbc::RepeatedField<int> Heads {
3245 get { return heads_; }
3246 }
3247
3249 public const int LiteralsFieldNumber = 5;
3250 private static readonly pb::FieldCodec<int> _repeated_literals_codec
3251 = pb::FieldCodec.ForInt32(42);
3252 private readonly pbc::RepeatedField<int> literals_ = new pbc::RepeatedField<int>();
3253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3254 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3255 public pbc::RepeatedField<int> Literals {
3256 get { return literals_; }
3257 }
3258
3259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3260 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3261 public override bool Equals(object other) {
3262 return Equals(other as CircuitConstraintProto);
3263 }
3264
3265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3267 public bool Equals(CircuitConstraintProto other) {
3268 if (ReferenceEquals(other, null)) {
3269 return false;
3270 }
3271 if (ReferenceEquals(other, this)) {
3272 return true;
3274 if(!tails_.Equals(other.tails_)) return false;
3275 if(!heads_.Equals(other.heads_)) return false;
3276 if(!literals_.Equals(other.literals_)) return false;
3277 return Equals(_unknownFields, other._unknownFields);
3278 }
3280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3281 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3282 public override int GetHashCode() {
3283 int hash = 1;
3284 hash ^= tails_.GetHashCode();
3285 hash ^= heads_.GetHashCode();
3286 hash ^= literals_.GetHashCode();
3287 if (_unknownFields != null) {
3288 hash ^= _unknownFields.GetHashCode();
3289 }
3290 return hash;
3291 }
3292
3293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3295 public override string ToString() {
3296 return pb::JsonFormatter.ToDiagnosticString(this);
3297 }
3298
3299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3300 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3301 public void WriteTo(pb::CodedOutputStream output) {
3302 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3303 output.WriteRawMessage(this);
3304 #else
3305 tails_.WriteTo(output, _repeated_tails_codec);
3306 heads_.WriteTo(output, _repeated_heads_codec);
3307 literals_.WriteTo(output, _repeated_literals_codec);
3308 if (_unknownFields != null) {
3309 _unknownFields.WriteTo(output);
3310 }
3311 #endif
3312 }
3314 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3317 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3318 tails_.WriteTo(ref output, _repeated_tails_codec);
3319 heads_.WriteTo(ref output, _repeated_heads_codec);
3320 literals_.WriteTo(ref output, _repeated_literals_codec);
3321 if (_unknownFields != null) {
3322 _unknownFields.WriteTo(ref output);
3323 }
3324 }
3325 #endif
3326
3327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3328 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3329 public int CalculateSize() {
3330 int size = 0;
3331 size += tails_.CalculateSize(_repeated_tails_codec);
3332 size += heads_.CalculateSize(_repeated_heads_codec);
3333 size += literals_.CalculateSize(_repeated_literals_codec);
3334 if (_unknownFields != null) {
3335 size += _unknownFields.CalculateSize();
3336 }
3337 return size;
3338 }
3339
3340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3342 public void MergeFrom(CircuitConstraintProto other) {
3343 if (other == null) {
3344 return;
3345 }
3346 tails_.Add(other.tails_);
3347 heads_.Add(other.heads_);
3348 literals_.Add(other.literals_);
3349 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3350 }
3351
3352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3353 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3354 public void MergeFrom(pb::CodedInputStream input) {
3355 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3356 input.ReadRawMessage(this);
3357 #else
3358 uint tag;
3359 while ((tag = input.ReadTag()) != 0) {
3360 switch(tag) {
3361 default:
3362 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3363 break;
3364 case 26:
3365 case 24: {
3366 tails_.AddEntriesFrom(input, _repeated_tails_codec);
3367 break;
3368 }
3369 case 34:
3370 case 32: {
3371 heads_.AddEntriesFrom(input, _repeated_heads_codec);
3372 break;
3373 }
3374 case 42:
3375 case 40: {
3376 literals_.AddEntriesFrom(input, _repeated_literals_codec);
3377 break;
3378 }
3379 }
3380 }
3381 #endif
3382 }
3383
3384 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3387 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3388 uint tag;
3389 while ((tag = input.ReadTag()) != 0) {
3390 switch(tag) {
3391 default:
3392 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3393 break;
3394 case 26:
3395 case 24: {
3396 tails_.AddEntriesFrom(ref input, _repeated_tails_codec);
3397 break;
3398 }
3399 case 34:
3400 case 32: {
3401 heads_.AddEntriesFrom(ref input, _repeated_heads_codec);
3402 break;
3403 }
3404 case 42:
3405 case 40: {
3406 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
3407 break;
3408 }
3409 }
3410 }
3411 }
3412 #endif
3413
3414 }
3415
3438 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3439 public sealed partial class RoutesConstraintProto : pb::IMessage<RoutesConstraintProto>
3440 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3441 , pb::IBufferMessage
3442 #endif
3443 {
3444 private static readonly pb::MessageParser<RoutesConstraintProto> _parser = new pb::MessageParser<RoutesConstraintProto>(() => new RoutesConstraintProto());
3445 private pb::UnknownFieldSet _unknownFields;
3446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3447 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3448 public static pb::MessageParser<RoutesConstraintProto> Parser { get { return _parser; } }
3449
3450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3451 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3452 public static pbr::MessageDescriptor Descriptor {
3453 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[13]; }
3454 }
3455
3456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3457 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3458 pbr::MessageDescriptor pb::IMessage.Descriptor {
3459 get { return Descriptor; }
3461
3462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3463 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3464 public RoutesConstraintProto() {
3465 OnConstruction();
3466 }
3467
3468 partial void OnConstruction();
3470 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3471 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3472 public RoutesConstraintProto(RoutesConstraintProto other) : this() {
3473 tails_ = other.tails_.Clone();
3474 heads_ = other.heads_.Clone();
3475 literals_ = other.literals_.Clone();
3476 demands_ = other.demands_.Clone();
3477 capacity_ = other.capacity_;
3478 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3479 }
3480
3481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3482 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3483 public RoutesConstraintProto Clone() {
3484 return new RoutesConstraintProto(this);
3486
3488 public const int TailsFieldNumber = 1;
3489 private static readonly pb::FieldCodec<int> _repeated_tails_codec
3490 = pb::FieldCodec.ForInt32(10);
3491 private readonly pbc::RepeatedField<int> tails_ = new pbc::RepeatedField<int>();
3492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3493 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3494 public pbc::RepeatedField<int> Tails {
3495 get { return tails_; }
3496 }
3497
3499 public const int HeadsFieldNumber = 2;
3500 private static readonly pb::FieldCodec<int> _repeated_heads_codec
3501 = pb::FieldCodec.ForInt32(18);
3502 private readonly pbc::RepeatedField<int> heads_ = new pbc::RepeatedField<int>();
3503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3504 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3505 public pbc::RepeatedField<int> Heads {
3506 get { return heads_; }
3507 }
3508
3510 public const int LiteralsFieldNumber = 3;
3511 private static readonly pb::FieldCodec<int> _repeated_literals_codec
3512 = pb::FieldCodec.ForInt32(26);
3513 private readonly pbc::RepeatedField<int> literals_ = new pbc::RepeatedField<int>();
3514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3516 public pbc::RepeatedField<int> Literals {
3517 get { return literals_; }
3518 }
3519
3521 public const int DemandsFieldNumber = 4;
3522 private static readonly pb::FieldCodec<int> _repeated_demands_codec
3523 = pb::FieldCodec.ForInt32(34);
3524 private readonly pbc::RepeatedField<int> demands_ = new pbc::RepeatedField<int>();
3536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3537 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3538 public pbc::RepeatedField<int> Demands {
3539 get { return demands_; }
3540 }
3541
3543 public const int CapacityFieldNumber = 5;
3544 private long capacity_;
3545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3547 public long Capacity {
3548 get { return capacity_; }
3549 set {
3550 capacity_ = value;
3551 }
3552 }
3553
3554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3556 public override bool Equals(object other) {
3557 return Equals(other as RoutesConstraintProto);
3558 }
3559
3560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3562 public bool Equals(RoutesConstraintProto other) {
3563 if (ReferenceEquals(other, null)) {
3564 return false;
3566 if (ReferenceEquals(other, this)) {
3567 return true;
3568 }
3569 if(!tails_.Equals(other.tails_)) return false;
3570 if(!heads_.Equals(other.heads_)) return false;
3571 if(!literals_.Equals(other.literals_)) return false;
3572 if(!demands_.Equals(other.demands_)) return false;
3573 if (Capacity != other.Capacity) return false;
3574 return Equals(_unknownFields, other._unknownFields);
3575 }
3576
3577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3579 public override int GetHashCode() {
3580 int hash = 1;
3581 hash ^= tails_.GetHashCode();
3582 hash ^= heads_.GetHashCode();
3583 hash ^= literals_.GetHashCode();
3584 hash ^= demands_.GetHashCode();
3585 if (Capacity != 0L) hash ^= Capacity.GetHashCode();
3586 if (_unknownFields != null) {
3587 hash ^= _unknownFields.GetHashCode();
3588 }
3589 return hash;
3590 }
3591
3592 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3593 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3594 public override string ToString() {
3595 return pb::JsonFormatter.ToDiagnosticString(this);
3596 }
3597
3598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3600 public void WriteTo(pb::CodedOutputStream output) {
3601 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3602 output.WriteRawMessage(this);
3603 #else
3604 tails_.WriteTo(output, _repeated_tails_codec);
3605 heads_.WriteTo(output, _repeated_heads_codec);
3606 literals_.WriteTo(output, _repeated_literals_codec);
3607 demands_.WriteTo(output, _repeated_demands_codec);
3608 if (Capacity != 0L) {
3609 output.WriteRawTag(40);
3610 output.WriteInt64(Capacity);
3611 }
3612 if (_unknownFields != null) {
3613 _unknownFields.WriteTo(output);
3614 }
3615 #endif
3617
3618 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3621 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3622 tails_.WriteTo(ref output, _repeated_tails_codec);
3623 heads_.WriteTo(ref output, _repeated_heads_codec);
3624 literals_.WriteTo(ref output, _repeated_literals_codec);
3625 demands_.WriteTo(ref output, _repeated_demands_codec);
3626 if (Capacity != 0L) {
3627 output.WriteRawTag(40);
3628 output.WriteInt64(Capacity);
3629 }
3630 if (_unknownFields != null) {
3631 _unknownFields.WriteTo(ref output);
3632 }
3633 }
3634 #endif
3635
3636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3638 public int CalculateSize() {
3639 int size = 0;
3640 size += tails_.CalculateSize(_repeated_tails_codec);
3641 size += heads_.CalculateSize(_repeated_heads_codec);
3642 size += literals_.CalculateSize(_repeated_literals_codec);
3643 size += demands_.CalculateSize(_repeated_demands_codec);
3644 if (Capacity != 0L) {
3645 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Capacity);
3646 }
3647 if (_unknownFields != null) {
3648 size += _unknownFields.CalculateSize();
3649 }
3650 return size;
3651 }
3652
3653 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3654 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3655 public void MergeFrom(RoutesConstraintProto other) {
3656 if (other == null) {
3657 return;
3658 }
3659 tails_.Add(other.tails_);
3660 heads_.Add(other.heads_);
3661 literals_.Add(other.literals_);
3662 demands_.Add(other.demands_);
3663 if (other.Capacity != 0L) {
3664 Capacity = other.Capacity;
3665 }
3666 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3667 }
3668
3669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3670 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3671 public void MergeFrom(pb::CodedInputStream input) {
3672 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3673 input.ReadRawMessage(this);
3674 #else
3675 uint tag;
3676 while ((tag = input.ReadTag()) != 0) {
3677 switch(tag) {
3678 default:
3679 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3680 break;
3681 case 10:
3682 case 8: {
3683 tails_.AddEntriesFrom(input, _repeated_tails_codec);
3684 break;
3685 }
3686 case 18:
3687 case 16: {
3688 heads_.AddEntriesFrom(input, _repeated_heads_codec);
3689 break;
3690 }
3691 case 26:
3692 case 24: {
3693 literals_.AddEntriesFrom(input, _repeated_literals_codec);
3694 break;
3695 }
3696 case 34:
3697 case 32: {
3698 demands_.AddEntriesFrom(input, _repeated_demands_codec);
3699 break;
3700 }
3701 case 40: {
3702 Capacity = input.ReadInt64();
3703 break;
3704 }
3705 }
3706 }
3707 #endif
3708 }
3709
3710 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3711 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3712 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3713 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3714 uint tag;
3715 while ((tag = input.ReadTag()) != 0) {
3716 switch(tag) {
3717 default:
3718 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3719 break;
3720 case 10:
3721 case 8: {
3722 tails_.AddEntriesFrom(ref input, _repeated_tails_codec);
3723 break;
3724 }
3725 case 18:
3726 case 16: {
3727 heads_.AddEntriesFrom(ref input, _repeated_heads_codec);
3728 break;
3729 }
3730 case 26:
3731 case 24: {
3732 literals_.AddEntriesFrom(ref input, _repeated_literals_codec);
3733 break;
3734 }
3735 case 34:
3736 case 32: {
3737 demands_.AddEntriesFrom(ref input, _repeated_demands_codec);
3738 break;
3739 }
3740 case 40: {
3741 Capacity = input.ReadInt64();
3742 break;
3743 }
3744 }
3745 }
3746 }
3747 #endif
3748
3749 }
3750
3756 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3757 public sealed partial class TableConstraintProto : pb::IMessage<TableConstraintProto>
3758 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3759 , pb::IBufferMessage
3760 #endif
3761 {
3762 private static readonly pb::MessageParser<TableConstraintProto> _parser = new pb::MessageParser<TableConstraintProto>(() => new TableConstraintProto());
3763 private pb::UnknownFieldSet _unknownFields;
3764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3765 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3766 public static pb::MessageParser<TableConstraintProto> Parser { get { return _parser; } }
3767
3768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3769 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3770 public static pbr::MessageDescriptor Descriptor {
3771 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[14]; }
3772 }
3773
3774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3775 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3776 pbr::MessageDescriptor pb::IMessage.Descriptor {
3777 get { return Descriptor; }
3778 }
3780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3781 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3782 public TableConstraintProto() {
3783 OnConstruction();
3784 }
3785
3786 partial void OnConstruction();
3787
3788 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3789 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3790 public TableConstraintProto(TableConstraintProto other) : this() {
3791 vars_ = other.vars_.Clone();
3792 values_ = other.values_.Clone();
3793 negated_ = other.negated_;
3794 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3795 }
3796
3797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3798 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3799 public TableConstraintProto Clone() {
3800 return new TableConstraintProto(this);
3801 }
3802
3804 public const int VarsFieldNumber = 1;
3805 private static readonly pb::FieldCodec<int> _repeated_vars_codec
3806 = pb::FieldCodec.ForInt32(10);
3807 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
3808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3809 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3810 public pbc::RepeatedField<int> Vars {
3811 get { return vars_; }
3813
3815 public const int ValuesFieldNumber = 2;
3816 private static readonly pb::FieldCodec<long> _repeated_values_codec
3817 = pb::FieldCodec.ForInt64(18);
3818 private readonly pbc::RepeatedField<long> values_ = new pbc::RepeatedField<long>();
3819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3820 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3821 public pbc::RepeatedField<long> Values {
3822 get { return values_; }
3823 }
3824
3826 public const int NegatedFieldNumber = 3;
3827 private bool negated_;
3832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3834 public bool Negated {
3835 get { return negated_; }
3836 set {
3837 negated_ = value;
3838 }
3839 }
3840
3841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3842 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3843 public override bool Equals(object other) {
3844 return Equals(other as TableConstraintProto);
3845 }
3846
3847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3849 public bool Equals(TableConstraintProto other) {
3850 if (ReferenceEquals(other, null)) {
3851 return false;
3852 }
3853 if (ReferenceEquals(other, this)) {
3854 return true;
3855 }
3856 if(!vars_.Equals(other.vars_)) return false;
3857 if(!values_.Equals(other.values_)) return false;
3858 if (Negated != other.Negated) return false;
3859 return Equals(_unknownFields, other._unknownFields);
3860 }
3861
3862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3864 public override int GetHashCode() {
3865 int hash = 1;
3866 hash ^= vars_.GetHashCode();
3867 hash ^= values_.GetHashCode();
3868 if (Negated != false) hash ^= Negated.GetHashCode();
3869 if (_unknownFields != null) {
3870 hash ^= _unknownFields.GetHashCode();
3872 return hash;
3873 }
3874
3875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3876 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3877 public override string ToString() {
3878 return pb::JsonFormatter.ToDiagnosticString(this);
3879 }
3880
3881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3882 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3883 public void WriteTo(pb::CodedOutputStream output) {
3884 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3885 output.WriteRawMessage(this);
3886 #else
3887 vars_.WriteTo(output, _repeated_vars_codec);
3888 values_.WriteTo(output, _repeated_values_codec);
3889 if (Negated != false) {
3890 output.WriteRawTag(24);
3891 output.WriteBool(Negated);
3892 }
3893 if (_unknownFields != null) {
3894 _unknownFields.WriteTo(output);
3895 }
3896 #endif
3897 }
3898
3899 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3902 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3903 vars_.WriteTo(ref output, _repeated_vars_codec);
3904 values_.WriteTo(ref output, _repeated_values_codec);
3905 if (Negated != false) {
3906 output.WriteRawTag(24);
3907 output.WriteBool(Negated);
3908 }
3909 if (_unknownFields != null) {
3910 _unknownFields.WriteTo(ref output);
3911 }
3912 }
3913 #endif
3914
3915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3916 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3917 public int CalculateSize() {
3918 int size = 0;
3919 size += vars_.CalculateSize(_repeated_vars_codec);
3920 size += values_.CalculateSize(_repeated_values_codec);
3921 if (Negated != false) {
3922 size += 1 + 1;
3923 }
3924 if (_unknownFields != null) {
3925 size += _unknownFields.CalculateSize();
3926 }
3927 return size;
3928 }
3929
3930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3932 public void MergeFrom(TableConstraintProto other) {
3933 if (other == null) {
3934 return;
3935 }
3936 vars_.Add(other.vars_);
3937 values_.Add(other.values_);
3938 if (other.Negated != false) {
3939 Negated = other.Negated;
3940 }
3941 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3942 }
3943
3944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3945 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3946 public void MergeFrom(pb::CodedInputStream input) {
3947 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3948 input.ReadRawMessage(this);
3949 #else
3950 uint tag;
3951 while ((tag = input.ReadTag()) != 0) {
3952 switch(tag) {
3953 default:
3954 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3955 break;
3956 case 10:
3957 case 8: {
3958 vars_.AddEntriesFrom(input, _repeated_vars_codec);
3959 break;
3960 }
3961 case 18:
3962 case 16: {
3963 values_.AddEntriesFrom(input, _repeated_values_codec);
3964 break;
3965 }
3966 case 24: {
3967 Negated = input.ReadBool();
3968 break;
3969 }
3970 }
3971 }
3972 #endif
3973 }
3974
3975 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3977 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3978 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3979 uint tag;
3980 while ((tag = input.ReadTag()) != 0) {
3981 switch(tag) {
3982 default:
3983 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3984 break;
3985 case 10:
3986 case 8: {
3987 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
3988 break;
3989 }
3990 case 18:
3991 case 16: {
3992 values_.AddEntriesFrom(ref input, _repeated_values_codec);
3993 break;
3994 }
3995 case 24: {
3996 Negated = input.ReadBool();
3997 break;
3998 }
3999 }
4000 }
4001 }
4002 #endif
4003
4004 }
4005
4010 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4011 public sealed partial class InverseConstraintProto : pb::IMessage<InverseConstraintProto>
4012 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4013 , pb::IBufferMessage
4014 #endif
4015 {
4016 private static readonly pb::MessageParser<InverseConstraintProto> _parser = new pb::MessageParser<InverseConstraintProto>(() => new InverseConstraintProto());
4017 private pb::UnknownFieldSet _unknownFields;
4018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4019 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4020 public static pb::MessageParser<InverseConstraintProto> Parser { get { return _parser; } }
4021
4022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4023 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4024 public static pbr::MessageDescriptor Descriptor {
4025 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[15]; }
4026 }
4027
4028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4029 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4030 pbr::MessageDescriptor pb::IMessage.Descriptor {
4031 get { return Descriptor; }
4032 }
4034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4035 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4036 public InverseConstraintProto() {
4037 OnConstruction();
4038 }
4039
4040 partial void OnConstruction();
4041
4042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4043 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4044 public InverseConstraintProto(InverseConstraintProto other) : this() {
4045 fDirect_ = other.fDirect_.Clone();
4046 fInverse_ = other.fInverse_.Clone();
4047 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4048 }
4049
4050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4052 public InverseConstraintProto Clone() {
4053 return new InverseConstraintProto(this);
4054 }
4055
4057 public const int FDirectFieldNumber = 1;
4058 private static readonly pb::FieldCodec<int> _repeated_fDirect_codec
4059 = pb::FieldCodec.ForInt32(10);
4060 private readonly pbc::RepeatedField<int> fDirect_ = new pbc::RepeatedField<int>();
4061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4062 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4063 public pbc::RepeatedField<int> FDirect {
4064 get { return fDirect_; }
4065 }
4068 public const int FInverseFieldNumber = 2;
4069 private static readonly pb::FieldCodec<int> _repeated_fInverse_codec
4070 = pb::FieldCodec.ForInt32(18);
4071 private readonly pbc::RepeatedField<int> fInverse_ = new pbc::RepeatedField<int>();
4072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4074 public pbc::RepeatedField<int> FInverse {
4075 get { return fInverse_; }
4076 }
4077
4078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4079 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4080 public override bool Equals(object other) {
4081 return Equals(other as InverseConstraintProto);
4082 }
4083
4084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4086 public bool Equals(InverseConstraintProto other) {
4087 if (ReferenceEquals(other, null)) {
4088 return false;
4089 }
4090 if (ReferenceEquals(other, this)) {
4091 return true;
4092 }
4093 if(!fDirect_.Equals(other.fDirect_)) return false;
4094 if(!fInverse_.Equals(other.fInverse_)) return false;
4095 return Equals(_unknownFields, other._unknownFields);
4097
4098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4100 public override int GetHashCode() {
4101 int hash = 1;
4102 hash ^= fDirect_.GetHashCode();
4103 hash ^= fInverse_.GetHashCode();
4104 if (_unknownFields != null) {
4105 hash ^= _unknownFields.GetHashCode();
4106 }
4107 return hash;
4109
4110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4111 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4112 public override string ToString() {
4113 return pb::JsonFormatter.ToDiagnosticString(this);
4114 }
4115
4116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4117 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4118 public void WriteTo(pb::CodedOutputStream output) {
4119 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4120 output.WriteRawMessage(this);
4121 #else
4122 fDirect_.WriteTo(output, _repeated_fDirect_codec);
4123 fInverse_.WriteTo(output, _repeated_fInverse_codec);
4124 if (_unknownFields != null) {
4125 _unknownFields.WriteTo(output);
4126 }
4127 #endif
4128 }
4129
4130 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4133 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4134 fDirect_.WriteTo(ref output, _repeated_fDirect_codec);
4135 fInverse_.WriteTo(ref output, _repeated_fInverse_codec);
4136 if (_unknownFields != null) {
4137 _unknownFields.WriteTo(ref output);
4138 }
4139 }
4140 #endif
4141
4142 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4143 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4144 public int CalculateSize() {
4145 int size = 0;
4146 size += fDirect_.CalculateSize(_repeated_fDirect_codec);
4147 size += fInverse_.CalculateSize(_repeated_fInverse_codec);
4148 if (_unknownFields != null) {
4149 size += _unknownFields.CalculateSize();
4150 }
4151 return size;
4152 }
4153
4154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4155 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4156 public void MergeFrom(InverseConstraintProto other) {
4157 if (other == null) {
4158 return;
4159 }
4160 fDirect_.Add(other.fDirect_);
4161 fInverse_.Add(other.fInverse_);
4162 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4163 }
4164
4165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4167 public void MergeFrom(pb::CodedInputStream input) {
4168 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4169 input.ReadRawMessage(this);
4170 #else
4171 uint tag;
4172 while ((tag = input.ReadTag()) != 0) {
4173 switch(tag) {
4174 default:
4175 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4176 break;
4177 case 10:
4178 case 8: {
4179 fDirect_.AddEntriesFrom(input, _repeated_fDirect_codec);
4180 break;
4181 }
4182 case 18:
4183 case 16: {
4184 fInverse_.AddEntriesFrom(input, _repeated_fInverse_codec);
4185 break;
4186 }
4187 }
4188 }
4189 #endif
4190 }
4191
4192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4194 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4195 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4196 uint tag;
4197 while ((tag = input.ReadTag()) != 0) {
4198 switch(tag) {
4199 default:
4200 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4201 break;
4202 case 10:
4203 case 8: {
4204 fDirect_.AddEntriesFrom(ref input, _repeated_fDirect_codec);
4205 break;
4206 }
4207 case 18:
4208 case 16: {
4209 fInverse_.AddEntriesFrom(ref input, _repeated_fInverse_codec);
4210 break;
4211 }
4212 }
4213 }
4214 }
4215 #endif
4216
4217 }
4218
4223 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4224 public sealed partial class AutomatonConstraintProto : pb::IMessage<AutomatonConstraintProto>
4225 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4226 , pb::IBufferMessage
4227 #endif
4228 {
4229 private static readonly pb::MessageParser<AutomatonConstraintProto> _parser = new pb::MessageParser<AutomatonConstraintProto>(() => new AutomatonConstraintProto());
4230 private pb::UnknownFieldSet _unknownFields;
4231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4233 public static pb::MessageParser<AutomatonConstraintProto> Parser { get { return _parser; } }
4234
4235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4237 public static pbr::MessageDescriptor Descriptor {
4238 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[16]; }
4239 }
4240
4241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4242 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4243 pbr::MessageDescriptor pb::IMessage.Descriptor {
4244 get { return Descriptor; }
4245 }
4247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4248 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4249 public AutomatonConstraintProto() {
4250 OnConstruction();
4251 }
4252
4253 partial void OnConstruction();
4254
4255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4256 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4257 public AutomatonConstraintProto(AutomatonConstraintProto other) : this() {
4258 startingState_ = other.startingState_;
4259 finalStates_ = other.finalStates_.Clone();
4260 transitionTail_ = other.transitionTail_.Clone();
4261 transitionHead_ = other.transitionHead_.Clone();
4262 transitionLabel_ = other.transitionLabel_.Clone();
4263 vars_ = other.vars_.Clone();
4264 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4265 }
4266
4267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4269 public AutomatonConstraintProto Clone() {
4270 return new AutomatonConstraintProto(this);
4272
4274 public const int StartingStateFieldNumber = 2;
4275 private long startingState_;
4281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4282 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4283 public long StartingState {
4284 get { return startingState_; }
4285 set {
4286 startingState_ = value;
4287 }
4288 }
4289
4291 public const int FinalStatesFieldNumber = 3;
4292 private static readonly pb::FieldCodec<long> _repeated_finalStates_codec
4293 = pb::FieldCodec.ForInt64(26);
4294 private readonly pbc::RepeatedField<long> finalStates_ = new pbc::RepeatedField<long>();
4295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4296 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4297 public pbc::RepeatedField<long> FinalStates {
4298 get { return finalStates_; }
4299 }
4300
4302 public const int TransitionTailFieldNumber = 4;
4303 private static readonly pb::FieldCodec<long> _repeated_transitionTail_codec
4304 = pb::FieldCodec.ForInt64(34);
4305 private readonly pbc::RepeatedField<long> transitionTail_ = new pbc::RepeatedField<long>();
4311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4312 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4313 public pbc::RepeatedField<long> TransitionTail {
4314 get { return transitionTail_; }
4315 }
4316
4318 public const int TransitionHeadFieldNumber = 5;
4319 private static readonly pb::FieldCodec<long> _repeated_transitionHead_codec
4320 = pb::FieldCodec.ForInt64(42);
4321 private readonly pbc::RepeatedField<long> transitionHead_ = new pbc::RepeatedField<long>();
4322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4323 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4324 public pbc::RepeatedField<long> TransitionHead {
4325 get { return transitionHead_; }
4326 }
4327
4329 public const int TransitionLabelFieldNumber = 6;
4330 private static readonly pb::FieldCodec<long> _repeated_transitionLabel_codec
4331 = pb::FieldCodec.ForInt64(50);
4332 private readonly pbc::RepeatedField<long> transitionLabel_ = new pbc::RepeatedField<long>();
4333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4335 public pbc::RepeatedField<long> TransitionLabel {
4336 get { return transitionLabel_; }
4337 }
4338
4340 public const int VarsFieldNumber = 7;
4341 private static readonly pb::FieldCodec<int> _repeated_vars_codec
4342 = pb::FieldCodec.ForInt32(58);
4343 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
4348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4349 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4350 public pbc::RepeatedField<int> Vars {
4351 get { return vars_; }
4352 }
4353
4354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4355 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4356 public override bool Equals(object other) {
4357 return Equals(other as AutomatonConstraintProto);
4358 }
4359
4360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4361 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4362 public bool Equals(AutomatonConstraintProto other) {
4363 if (ReferenceEquals(other, null)) {
4364 return false;
4365 }
4366 if (ReferenceEquals(other, this)) {
4367 return true;
4368 }
4369 if (StartingState != other.StartingState) return false;
4370 if(!finalStates_.Equals(other.finalStates_)) return false;
4371 if(!transitionTail_.Equals(other.transitionTail_)) return false;
4372 if(!transitionHead_.Equals(other.transitionHead_)) return false;
4373 if(!transitionLabel_.Equals(other.transitionLabel_)) return false;
4374 if(!vars_.Equals(other.vars_)) return false;
4375 return Equals(_unknownFields, other._unknownFields);
4376 }
4377
4378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4379 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4380 public override int GetHashCode() {
4381 int hash = 1;
4382 if (StartingState != 0L) hash ^= StartingState.GetHashCode();
4383 hash ^= finalStates_.GetHashCode();
4384 hash ^= transitionTail_.GetHashCode();
4385 hash ^= transitionHead_.GetHashCode();
4386 hash ^= transitionLabel_.GetHashCode();
4387 hash ^= vars_.GetHashCode();
4388 if (_unknownFields != null) {
4389 hash ^= _unknownFields.GetHashCode();
4390 }
4391 return hash;
4392 }
4393
4394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4396 public override string ToString() {
4397 return pb::JsonFormatter.ToDiagnosticString(this);
4398 }
4399
4400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4402 public void WriteTo(pb::CodedOutputStream output) {
4403 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4404 output.WriteRawMessage(this);
4405 #else
4406 if (StartingState != 0L) {
4407 output.WriteRawTag(16);
4408 output.WriteInt64(StartingState);
4409 }
4410 finalStates_.WriteTo(output, _repeated_finalStates_codec);
4411 transitionTail_.WriteTo(output, _repeated_transitionTail_codec);
4412 transitionHead_.WriteTo(output, _repeated_transitionHead_codec);
4413 transitionLabel_.WriteTo(output, _repeated_transitionLabel_codec);
4414 vars_.WriteTo(output, _repeated_vars_codec);
4415 if (_unknownFields != null) {
4416 _unknownFields.WriteTo(output);
4417 }
4418 #endif
4419 }
4420
4421 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4422 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4423 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4424 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4425 if (StartingState != 0L) {
4426 output.WriteRawTag(16);
4427 output.WriteInt64(StartingState);
4428 }
4429 finalStates_.WriteTo(ref output, _repeated_finalStates_codec);
4430 transitionTail_.WriteTo(ref output, _repeated_transitionTail_codec);
4431 transitionHead_.WriteTo(ref output, _repeated_transitionHead_codec);
4432 transitionLabel_.WriteTo(ref output, _repeated_transitionLabel_codec);
4433 vars_.WriteTo(ref output, _repeated_vars_codec);
4434 if (_unknownFields != null) {
4435 _unknownFields.WriteTo(ref output);
4436 }
4437 }
4438 #endif
4439
4440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4441 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4442 public int CalculateSize() {
4443 int size = 0;
4444 if (StartingState != 0L) {
4445 size += 1 + pb::CodedOutputStream.ComputeInt64Size(StartingState);
4446 }
4447 size += finalStates_.CalculateSize(_repeated_finalStates_codec);
4448 size += transitionTail_.CalculateSize(_repeated_transitionTail_codec);
4449 size += transitionHead_.CalculateSize(_repeated_transitionHead_codec);
4450 size += transitionLabel_.CalculateSize(_repeated_transitionLabel_codec);
4451 size += vars_.CalculateSize(_repeated_vars_codec);
4452 if (_unknownFields != null) {
4453 size += _unknownFields.CalculateSize();
4454 }
4455 return size;
4456 }
4457
4458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4460 public void MergeFrom(AutomatonConstraintProto other) {
4461 if (other == null) {
4462 return;
4463 }
4464 if (other.StartingState != 0L) {
4465 StartingState = other.StartingState;
4466 }
4467 finalStates_.Add(other.finalStates_);
4468 transitionTail_.Add(other.transitionTail_);
4469 transitionHead_.Add(other.transitionHead_);
4470 transitionLabel_.Add(other.transitionLabel_);
4471 vars_.Add(other.vars_);
4472 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4473 }
4474
4475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4476 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4477 public void MergeFrom(pb::CodedInputStream input) {
4478 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4479 input.ReadRawMessage(this);
4480 #else
4481 uint tag;
4482 while ((tag = input.ReadTag()) != 0) {
4483 switch(tag) {
4484 default:
4485 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4486 break;
4487 case 16: {
4488 StartingState = input.ReadInt64();
4489 break;
4490 }
4491 case 26:
4492 case 24: {
4493 finalStates_.AddEntriesFrom(input, _repeated_finalStates_codec);
4494 break;
4495 }
4496 case 34:
4497 case 32: {
4498 transitionTail_.AddEntriesFrom(input, _repeated_transitionTail_codec);
4499 break;
4500 }
4501 case 42:
4502 case 40: {
4503 transitionHead_.AddEntriesFrom(input, _repeated_transitionHead_codec);
4504 break;
4505 }
4506 case 50:
4507 case 48: {
4508 transitionLabel_.AddEntriesFrom(input, _repeated_transitionLabel_codec);
4509 break;
4510 }
4511 case 58:
4512 case 56: {
4513 vars_.AddEntriesFrom(input, _repeated_vars_codec);
4514 break;
4515 }
4516 }
4517 }
4518 #endif
4519 }
4520
4521 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4523 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4524 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4525 uint tag;
4526 while ((tag = input.ReadTag()) != 0) {
4527 switch(tag) {
4528 default:
4529 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4530 break;
4531 case 16: {
4532 StartingState = input.ReadInt64();
4533 break;
4534 }
4535 case 26:
4536 case 24: {
4537 finalStates_.AddEntriesFrom(ref input, _repeated_finalStates_codec);
4538 break;
4539 }
4540 case 34:
4541 case 32: {
4542 transitionTail_.AddEntriesFrom(ref input, _repeated_transitionTail_codec);
4543 break;
4544 }
4545 case 42:
4546 case 40: {
4547 transitionHead_.AddEntriesFrom(ref input, _repeated_transitionHead_codec);
4548 break;
4549 }
4550 case 50:
4551 case 48: {
4552 transitionLabel_.AddEntriesFrom(ref input, _repeated_transitionLabel_codec);
4553 break;
4554 }
4555 case 58:
4556 case 56: {
4557 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
4558 break;
4559 }
4560 }
4561 }
4562 }
4563 #endif
4564
4565 }
4566
4570 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4571 public sealed partial class ListOfVariablesProto : pb::IMessage<ListOfVariablesProto>
4572 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4573 , pb::IBufferMessage
4574 #endif
4575 {
4576 private static readonly pb::MessageParser<ListOfVariablesProto> _parser = new pb::MessageParser<ListOfVariablesProto>(() => new ListOfVariablesProto());
4577 private pb::UnknownFieldSet _unknownFields;
4578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4579 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4580 public static pb::MessageParser<ListOfVariablesProto> Parser { get { return _parser; } }
4581
4582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4583 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4584 public static pbr::MessageDescriptor Descriptor {
4585 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[17]; }
4586 }
4587
4588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4590 pbr::MessageDescriptor pb::IMessage.Descriptor {
4591 get { return Descriptor; }
4592 }
4594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4596 public ListOfVariablesProto() {
4597 OnConstruction();
4598 }
4599
4600 partial void OnConstruction();
4601
4602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4603 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4604 public ListOfVariablesProto(ListOfVariablesProto other) : this() {
4605 vars_ = other.vars_.Clone();
4606 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4607 }
4608
4609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4611 public ListOfVariablesProto Clone() {
4612 return new ListOfVariablesProto(this);
4613 }
4614
4616 public const int VarsFieldNumber = 1;
4617 private static readonly pb::FieldCodec<int> _repeated_vars_codec
4618 = pb::FieldCodec.ForInt32(10);
4619 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
4620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4622 public pbc::RepeatedField<int> Vars {
4623 get { return vars_; }
4624 }
4625
4626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4628 public override bool Equals(object other) {
4629 return Equals(other as ListOfVariablesProto);
4630 }
4631
4632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4633 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4634 public bool Equals(ListOfVariablesProto other) {
4635 if (ReferenceEquals(other, null)) {
4636 return false;
4637 }
4638 if (ReferenceEquals(other, this)) {
4639 return true;
4640 }
4641 if(!vars_.Equals(other.vars_)) return false;
4642 return Equals(_unknownFields, other._unknownFields);
4643 }
4645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4646 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4647 public override int GetHashCode() {
4648 int hash = 1;
4649 hash ^= vars_.GetHashCode();
4650 if (_unknownFields != null) {
4651 hash ^= _unknownFields.GetHashCode();
4652 }
4653 return hash;
4654 }
4655
4656 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4657 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4658 public override string ToString() {
4659 return pb::JsonFormatter.ToDiagnosticString(this);
4660 }
4661
4662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4663 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4664 public void WriteTo(pb::CodedOutputStream output) {
4665 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4666 output.WriteRawMessage(this);
4667 #else
4668 vars_.WriteTo(output, _repeated_vars_codec);
4669 if (_unknownFields != null) {
4670 _unknownFields.WriteTo(output);
4671 }
4672 #endif
4673 }
4674
4675 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4676 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4677 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4678 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4679 vars_.WriteTo(ref output, _repeated_vars_codec);
4680 if (_unknownFields != null) {
4681 _unknownFields.WriteTo(ref output);
4682 }
4683 }
4684 #endif
4685
4686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4688 public int CalculateSize() {
4689 int size = 0;
4690 size += vars_.CalculateSize(_repeated_vars_codec);
4691 if (_unknownFields != null) {
4692 size += _unknownFields.CalculateSize();
4693 }
4694 return size;
4695 }
4696
4697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4698 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4699 public void MergeFrom(ListOfVariablesProto other) {
4700 if (other == null) {
4701 return;
4702 }
4703 vars_.Add(other.vars_);
4704 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4705 }
4706
4707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4708 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4709 public void MergeFrom(pb::CodedInputStream input) {
4710 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4711 input.ReadRawMessage(this);
4712 #else
4713 uint tag;
4714 while ((tag = input.ReadTag()) != 0) {
4715 switch(tag) {
4716 default:
4717 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4718 break;
4719 case 10:
4720 case 8: {
4721 vars_.AddEntriesFrom(input, _repeated_vars_codec);
4722 break;
4723 }
4724 }
4725 }
4726 #endif
4727 }
4728
4729 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4731 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4732 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4733 uint tag;
4734 while ((tag = input.ReadTag()) != 0) {
4735 switch(tag) {
4736 default:
4737 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4738 break;
4739 case 10:
4740 case 8: {
4741 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
4742 break;
4743 }
4744 }
4745 }
4746 }
4747 #endif
4748
4749 }
4750
4754 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4755 public sealed partial class ConstraintProto : pb::IMessage<ConstraintProto>
4756 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4757 , pb::IBufferMessage
4758 #endif
4759 {
4760 private static readonly pb::MessageParser<ConstraintProto> _parser = new pb::MessageParser<ConstraintProto>(() => new ConstraintProto());
4761 private pb::UnknownFieldSet _unknownFields;
4762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4763 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4764 public static pb::MessageParser<ConstraintProto> Parser { get { return _parser; } }
4765
4766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4768 public static pbr::MessageDescriptor Descriptor {
4769 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[18]; }
4770 }
4771
4772 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4773 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4774 pbr::MessageDescriptor pb::IMessage.Descriptor {
4775 get { return Descriptor; }
4776 }
4778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4779 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4780 public ConstraintProto() {
4781 OnConstruction();
4782 }
4783
4784 partial void OnConstruction();
4785
4786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4787 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4788 public ConstraintProto(ConstraintProto other) : this() {
4789 name_ = other.name_;
4790 enforcementLiteral_ = other.enforcementLiteral_.Clone();
4791 switch (other.ConstraintCase) {
4792 case ConstraintOneofCase.BoolOr:
4793 BoolOr = other.BoolOr.Clone();
4794 break;
4795 case ConstraintOneofCase.BoolAnd:
4796 BoolAnd = other.BoolAnd.Clone();
4797 break;
4798 case ConstraintOneofCase.AtMostOne:
4799 AtMostOne = other.AtMostOne.Clone();
4800 break;
4801 case ConstraintOneofCase.ExactlyOne:
4802 ExactlyOne = other.ExactlyOne.Clone();
4803 break;
4804 case ConstraintOneofCase.BoolXor:
4805 BoolXor = other.BoolXor.Clone();
4806 break;
4807 case ConstraintOneofCase.IntDiv:
4808 IntDiv = other.IntDiv.Clone();
4809 break;
4810 case ConstraintOneofCase.IntMod:
4811 IntMod = other.IntMod.Clone();
4812 break;
4813 case ConstraintOneofCase.IntProd:
4814 IntProd = other.IntProd.Clone();
4815 break;
4816 case ConstraintOneofCase.LinMax:
4817 LinMax = other.LinMax.Clone();
4818 break;
4819 case ConstraintOneofCase.Linear:
4820 Linear = other.Linear.Clone();
4821 break;
4822 case ConstraintOneofCase.AllDiff:
4823 AllDiff = other.AllDiff.Clone();
4824 break;
4825 case ConstraintOneofCase.Element:
4826 Element = other.Element.Clone();
4827 break;
4828 case ConstraintOneofCase.Circuit:
4829 Circuit = other.Circuit.Clone();
4830 break;
4831 case ConstraintOneofCase.Routes:
4832 Routes = other.Routes.Clone();
4833 break;
4834 case ConstraintOneofCase.Table:
4835 Table = other.Table.Clone();
4836 break;
4837 case ConstraintOneofCase.Automaton:
4838 Automaton = other.Automaton.Clone();
4839 break;
4840 case ConstraintOneofCase.Inverse:
4841 Inverse = other.Inverse.Clone();
4842 break;
4843 case ConstraintOneofCase.Reservoir:
4844 Reservoir = other.Reservoir.Clone();
4845 break;
4846 case ConstraintOneofCase.Interval:
4847 Interval = other.Interval.Clone();
4848 break;
4849 case ConstraintOneofCase.NoOverlap:
4850 NoOverlap = other.NoOverlap.Clone();
4851 break;
4852 case ConstraintOneofCase.NoOverlap2D:
4853 NoOverlap2D = other.NoOverlap2D.Clone();
4854 break;
4855 case ConstraintOneofCase.Cumulative:
4856 Cumulative = other.Cumulative.Clone();
4857 break;
4858 case ConstraintOneofCase.DummyConstraint:
4859 DummyConstraint = other.DummyConstraint.Clone();
4860 break;
4861 }
4862
4863 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4864 }
4865
4866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4868 public ConstraintProto Clone() {
4869 return new ConstraintProto(this);
4870 }
4871
4873 public const int NameFieldNumber = 1;
4874 private string name_ = "";
4878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4879 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4880 public string Name {
4881 get { return name_; }
4882 set {
4883 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4884 }
4885 }
4886
4888 public const int EnforcementLiteralFieldNumber = 2;
4889 private static readonly pb::FieldCodec<int> _repeated_enforcementLiteral_codec
4890 = pb::FieldCodec.ForInt32(18);
4891 private readonly pbc::RepeatedField<int> enforcementLiteral_ = new pbc::RepeatedField<int>();
4908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4909 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4910 public pbc::RepeatedField<int> EnforcementLiteral {
4911 get { return enforcementLiteral_; }
4912 }
4913
4915 public const int BoolOrFieldNumber = 3;
4919 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4920 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4921 public global::Google.OrTools.Sat.BoolArgumentProto BoolOr {
4922 get { return constraintCase_ == ConstraintOneofCase.BoolOr ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ : null; }
4923 set {
4924 constraint_ = value;
4925 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.BoolOr;
4926 }
4927 }
4928
4930 public const int BoolAndFieldNumber = 4;
4938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4940 public global::Google.OrTools.Sat.BoolArgumentProto BoolAnd {
4941 get { return constraintCase_ == ConstraintOneofCase.BoolAnd ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ : null; }
4942 set {
4943 constraint_ = value;
4944 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.BoolAnd;
4946 }
4947
4949 public const int AtMostOneFieldNumber = 26;
4963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4964 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4965 public global::Google.OrTools.Sat.BoolArgumentProto AtMostOne {
4966 get { return constraintCase_ == ConstraintOneofCase.AtMostOne ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ : null; }
4967 set {
4968 constraint_ = value;
4969 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.AtMostOne;
4970 }
4971 }
4972
4974 public const int ExactlyOneFieldNumber = 29;
4989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4991 public global::Google.OrTools.Sat.BoolArgumentProto ExactlyOne {
4992 get { return constraintCase_ == ConstraintOneofCase.ExactlyOne ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ : null; }
4993 set {
4994 constraint_ = value;
4995 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.ExactlyOne;
4996 }
4997 }
4998
5000 public const int BoolXorFieldNumber = 5;
5004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5006 public global::Google.OrTools.Sat.BoolArgumentProto BoolXor {
5007 get { return constraintCase_ == ConstraintOneofCase.BoolXor ? (global::Google.OrTools.Sat.BoolArgumentProto) constraint_ : null; }
5008 set {
5009 constraint_ = value;
5010 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.BoolXor;
5011 }
5012 }
5013
5015 public const int IntDivFieldNumber = 7;
5025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5026 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5027 public global::Google.OrTools.Sat.LinearArgumentProto IntDiv {
5028 get { return constraintCase_ == ConstraintOneofCase.IntDiv ? (global::Google.OrTools.Sat.LinearArgumentProto) constraint_ : null; }
5029 set {
5030 constraint_ = value;
5031 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.IntDiv;
5032 }
5033 }
5034
5036 public const int IntModFieldNumber = 8;
5042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5043 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5044 public global::Google.OrTools.Sat.LinearArgumentProto IntMod {
5045 get { return constraintCase_ == ConstraintOneofCase.IntMod ? (global::Google.OrTools.Sat.LinearArgumentProto) constraint_ : null; }
5046 set {
5047 constraint_ = value;
5048 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.IntMod;
5049 }
5050 }
5051
5053 public const int IntProdFieldNumber = 11;
5064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5065 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5066 public global::Google.OrTools.Sat.LinearArgumentProto IntProd {
5067 get { return constraintCase_ == ConstraintOneofCase.IntProd ? (global::Google.OrTools.Sat.LinearArgumentProto) constraint_ : null; }
5068 set {
5069 constraint_ = value;
5070 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.IntProd;
5071 }
5072 }
5073
5075 public const int LinMaxFieldNumber = 27;
5081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5082 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5083 public global::Google.OrTools.Sat.LinearArgumentProto LinMax {
5084 get { return constraintCase_ == ConstraintOneofCase.LinMax ? (global::Google.OrTools.Sat.LinearArgumentProto) constraint_ : null; }
5085 set {
5086 constraint_ = value;
5087 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.LinMax;
5088 }
5089 }
5090
5092 public const int LinearFieldNumber = 12;
5097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5098 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5099 public global::Google.OrTools.Sat.LinearConstraintProto Linear {
5100 get { return constraintCase_ == ConstraintOneofCase.Linear ? (global::Google.OrTools.Sat.LinearConstraintProto) constraint_ : null; }
5101 set {
5102 constraint_ = value;
5103 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Linear;
5104 }
5105 }
5108 public const int AllDiffFieldNumber = 13;
5112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5114 public global::Google.OrTools.Sat.AllDifferentConstraintProto AllDiff {
5115 get { return constraintCase_ == ConstraintOneofCase.AllDiff ? (global::Google.OrTools.Sat.AllDifferentConstraintProto) constraint_ : null; }
5116 set {
5117 constraint_ = value;
5118 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.AllDiff;
5119 }
5120 }
5121
5123 public const int ElementFieldNumber = 14;
5128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5130 public global::Google.OrTools.Sat.ElementConstraintProto Element {
5131 get { return constraintCase_ == ConstraintOneofCase.Element ? (global::Google.OrTools.Sat.ElementConstraintProto) constraint_ : null; }
5132 set {
5133 constraint_ = value;
5134 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Element;
5135 }
5136 }
5137
5139 public const int CircuitFieldNumber = 15;
5144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5146 public global::Google.OrTools.Sat.CircuitConstraintProto Circuit {
5147 get { return constraintCase_ == ConstraintOneofCase.Circuit ? (global::Google.OrTools.Sat.CircuitConstraintProto) constraint_ : null; }
5148 set {
5149 constraint_ = value;
5150 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Circuit;
5151 }
5152 }
5153
5155 public const int RoutesFieldNumber = 23;
5159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5161 public global::Google.OrTools.Sat.RoutesConstraintProto Routes {
5162 get { return constraintCase_ == ConstraintOneofCase.Routes ? (global::Google.OrTools.Sat.RoutesConstraintProto) constraint_ : null; }
5163 set {
5164 constraint_ = value;
5165 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Routes;
5166 }
5167 }
5168
5170 public const int TableFieldNumber = 16;
5175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5177 public global::Google.OrTools.Sat.TableConstraintProto Table {
5178 get { return constraintCase_ == ConstraintOneofCase.Table ? (global::Google.OrTools.Sat.TableConstraintProto) constraint_ : null; }
5179 set {
5180 constraint_ = value;
5181 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Table;
5182 }
5183 }
5184
5186 public const int AutomatonFieldNumber = 17;
5191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5192 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5193 public global::Google.OrTools.Sat.AutomatonConstraintProto Automaton {
5194 get { return constraintCase_ == ConstraintOneofCase.Automaton ? (global::Google.OrTools.Sat.AutomatonConstraintProto) constraint_ : null; }
5195 set {
5196 constraint_ = value;
5197 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Automaton;
5198 }
5199 }
5200
5202 public const int InverseFieldNumber = 18;
5207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5208 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5209 public global::Google.OrTools.Sat.InverseConstraintProto Inverse {
5210 get { return constraintCase_ == ConstraintOneofCase.Inverse ? (global::Google.OrTools.Sat.InverseConstraintProto) constraint_ : null; }
5211 set {
5212 constraint_ = value;
5213 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Inverse;
5214 }
5215 }
5216
5218 public const int ReservoirFieldNumber = 24;
5224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5225 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5226 public global::Google.OrTools.Sat.ReservoirConstraintProto Reservoir {
5227 get { return constraintCase_ == ConstraintOneofCase.Reservoir ? (global::Google.OrTools.Sat.ReservoirConstraintProto) constraint_ : null; }
5228 set {
5229 constraint_ = value;
5230 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Reservoir;
5231 }
5232 }
5235 public const int IntervalFieldNumber = 19;
5240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5242 public global::Google.OrTools.Sat.IntervalConstraintProto Interval {
5243 get { return constraintCase_ == ConstraintOneofCase.Interval ? (global::Google.OrTools.Sat.IntervalConstraintProto) constraint_ : null; }
5244 set {
5245 constraint_ = value;
5246 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Interval;
5247 }
5248 }
5251 public const int NoOverlapFieldNumber = 20;
5257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5258 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5259 public global::Google.OrTools.Sat.NoOverlapConstraintProto NoOverlap {
5260 get { return constraintCase_ == ConstraintOneofCase.NoOverlap ? (global::Google.OrTools.Sat.NoOverlapConstraintProto) constraint_ : null; }
5261 set {
5262 constraint_ = value;
5263 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.NoOverlap;
5264 }
5265 }
5268 public const int NoOverlap2DFieldNumber = 21;
5272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5273 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5274 public global::Google.OrTools.Sat.NoOverlap2DConstraintProto NoOverlap2D {
5275 get { return constraintCase_ == ConstraintOneofCase.NoOverlap2D ? (global::Google.OrTools.Sat.NoOverlap2DConstraintProto) constraint_ : null; }
5276 set {
5277 constraint_ = value;
5278 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.NoOverlap2D;
5279 }
5280 }
5281
5283 public const int CumulativeFieldNumber = 22;
5289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5290 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5291 public global::Google.OrTools.Sat.CumulativeConstraintProto Cumulative {
5292 get { return constraintCase_ == ConstraintOneofCase.Cumulative ? (global::Google.OrTools.Sat.CumulativeConstraintProto) constraint_ : null; }
5293 set {
5294 constraint_ = value;
5295 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.Cumulative;
5296 }
5297 }
5298
5300 public const int DummyConstraintFieldNumber = 30;
5305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5306 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5307 public global::Google.OrTools.Sat.ListOfVariablesProto DummyConstraint {
5308 get { return constraintCase_ == ConstraintOneofCase.DummyConstraint ? (global::Google.OrTools.Sat.ListOfVariablesProto) constraint_ : null; }
5309 set {
5310 constraint_ = value;
5311 constraintCase_ = value == null ? ConstraintOneofCase.None : ConstraintOneofCase.DummyConstraint;
5312 }
5313 }
5315 private object constraint_;
5317 public enum ConstraintOneofCase {
5318 None = 0,
5319 BoolOr = 3,
5320 BoolAnd = 4,
5321 AtMostOne = 26,
5322 ExactlyOne = 29,
5323 BoolXor = 5,
5324 IntDiv = 7,
5325 IntMod = 8,
5326 IntProd = 11,
5327 LinMax = 27,
5328 Linear = 12,
5329 AllDiff = 13,
5330 Element = 14,
5331 Circuit = 15,
5332 Routes = 23,
5333 Table = 16,
5334 Automaton = 17,
5335 Inverse = 18,
5336 Reservoir = 24,
5337 Interval = 19,
5338 NoOverlap = 20,
5339 NoOverlap2D = 21,
5340 Cumulative = 22,
5341 DummyConstraint = 30,
5342 }
5343 private ConstraintOneofCase constraintCase_ = ConstraintOneofCase.None;
5344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5345 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5346 public ConstraintOneofCase ConstraintCase {
5347 get { return constraintCase_; }
5349
5350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5351 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5352 public void ClearConstraint() {
5353 constraintCase_ = ConstraintOneofCase.None;
5354 constraint_ = null;
5355 }
5356
5357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5358 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5359 public override bool Equals(object other) {
5360 return Equals(other as ConstraintProto);
5361 }
5362
5363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5364 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5365 public bool Equals(ConstraintProto other) {
5366 if (ReferenceEquals(other, null)) {
5367 return false;
5368 }
5369 if (ReferenceEquals(other, this)) {
5370 return true;
5371 }
5372 if (Name != other.Name) return false;
5373 if(!enforcementLiteral_.Equals(other.enforcementLiteral_)) return false;
5374 if (!object.Equals(BoolOr, other.BoolOr)) return false;
5375 if (!object.Equals(BoolAnd, other.BoolAnd)) return false;
5376 if (!object.Equals(AtMostOne, other.AtMostOne)) return false;
5377 if (!object.Equals(ExactlyOne, other.ExactlyOne)) return false;
5378 if (!object.Equals(BoolXor, other.BoolXor)) return false;
5379 if (!object.Equals(IntDiv, other.IntDiv)) return false;
5380 if (!object.Equals(IntMod, other.IntMod)) return false;
5381 if (!object.Equals(IntProd, other.IntProd)) return false;
5382 if (!object.Equals(LinMax, other.LinMax)) return false;
5383 if (!object.Equals(Linear, other.Linear)) return false;
5384 if (!object.Equals(AllDiff, other.AllDiff)) return false;
5385 if (!object.Equals(Element, other.Element)) return false;
5386 if (!object.Equals(Circuit, other.Circuit)) return false;
5387 if (!object.Equals(Routes, other.Routes)) return false;
5388 if (!object.Equals(Table, other.Table)) return false;
5389 if (!object.Equals(Automaton, other.Automaton)) return false;
5390 if (!object.Equals(Inverse, other.Inverse)) return false;
5391 if (!object.Equals(Reservoir, other.Reservoir)) return false;
5392 if (!object.Equals(Interval, other.Interval)) return false;
5393 if (!object.Equals(NoOverlap, other.NoOverlap)) return false;
5394 if (!object.Equals(NoOverlap2D, other.NoOverlap2D)) return false;
5395 if (!object.Equals(Cumulative, other.Cumulative)) return false;
5396 if (!object.Equals(DummyConstraint, other.DummyConstraint)) return false;
5397 if (ConstraintCase != other.ConstraintCase) return false;
5398 return Equals(_unknownFields, other._unknownFields);
5399 }
5400
5401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5402 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5403 public override int GetHashCode() {
5404 int hash = 1;
5405 if (Name.Length != 0) hash ^= Name.GetHashCode();
5406 hash ^= enforcementLiteral_.GetHashCode();
5407 if (constraintCase_ == ConstraintOneofCase.BoolOr) hash ^= BoolOr.GetHashCode();
5408 if (constraintCase_ == ConstraintOneofCase.BoolAnd) hash ^= BoolAnd.GetHashCode();
5409 if (constraintCase_ == ConstraintOneofCase.AtMostOne) hash ^= AtMostOne.GetHashCode();
5410 if (constraintCase_ == ConstraintOneofCase.ExactlyOne) hash ^= ExactlyOne.GetHashCode();
5411 if (constraintCase_ == ConstraintOneofCase.BoolXor) hash ^= BoolXor.GetHashCode();
5412 if (constraintCase_ == ConstraintOneofCase.IntDiv) hash ^= IntDiv.GetHashCode();
5413 if (constraintCase_ == ConstraintOneofCase.IntMod) hash ^= IntMod.GetHashCode();
5414 if (constraintCase_ == ConstraintOneofCase.IntProd) hash ^= IntProd.GetHashCode();
5415 if (constraintCase_ == ConstraintOneofCase.LinMax) hash ^= LinMax.GetHashCode();
5416 if (constraintCase_ == ConstraintOneofCase.Linear) hash ^= Linear.GetHashCode();
5417 if (constraintCase_ == ConstraintOneofCase.AllDiff) hash ^= AllDiff.GetHashCode();
5418 if (constraintCase_ == ConstraintOneofCase.Element) hash ^= Element.GetHashCode();
5419 if (constraintCase_ == ConstraintOneofCase.Circuit) hash ^= Circuit.GetHashCode();
5420 if (constraintCase_ == ConstraintOneofCase.Routes) hash ^= Routes.GetHashCode();
5421 if (constraintCase_ == ConstraintOneofCase.Table) hash ^= Table.GetHashCode();
5422 if (constraintCase_ == ConstraintOneofCase.Automaton) hash ^= Automaton.GetHashCode();
5423 if (constraintCase_ == ConstraintOneofCase.Inverse) hash ^= Inverse.GetHashCode();
5424 if (constraintCase_ == ConstraintOneofCase.Reservoir) hash ^= Reservoir.GetHashCode();
5425 if (constraintCase_ == ConstraintOneofCase.Interval) hash ^= Interval.GetHashCode();
5426 if (constraintCase_ == ConstraintOneofCase.NoOverlap) hash ^= NoOverlap.GetHashCode();
5427 if (constraintCase_ == ConstraintOneofCase.NoOverlap2D) hash ^= NoOverlap2D.GetHashCode();
5428 if (constraintCase_ == ConstraintOneofCase.Cumulative) hash ^= Cumulative.GetHashCode();
5429 if (constraintCase_ == ConstraintOneofCase.DummyConstraint) hash ^= DummyConstraint.GetHashCode();
5430 hash ^= (int) constraintCase_;
5431 if (_unknownFields != null) {
5432 hash ^= _unknownFields.GetHashCode();
5433 }
5434 return hash;
5435 }
5436
5437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5439 public override string ToString() {
5440 return pb::JsonFormatter.ToDiagnosticString(this);
5441 }
5442
5443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5445 public void WriteTo(pb::CodedOutputStream output) {
5446 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5447 output.WriteRawMessage(this);
5448 #else
5449 if (Name.Length != 0) {
5450 output.WriteRawTag(10);
5451 output.WriteString(Name);
5452 }
5453 enforcementLiteral_.WriteTo(output, _repeated_enforcementLiteral_codec);
5454 if (constraintCase_ == ConstraintOneofCase.BoolOr) {
5455 output.WriteRawTag(26);
5456 output.WriteMessage(BoolOr);
5457 }
5458 if (constraintCase_ == ConstraintOneofCase.BoolAnd) {
5459 output.WriteRawTag(34);
5460 output.WriteMessage(BoolAnd);
5461 }
5462 if (constraintCase_ == ConstraintOneofCase.BoolXor) {
5463 output.WriteRawTag(42);
5464 output.WriteMessage(BoolXor);
5465 }
5466 if (constraintCase_ == ConstraintOneofCase.IntDiv) {
5467 output.WriteRawTag(58);
5468 output.WriteMessage(IntDiv);
5469 }
5470 if (constraintCase_ == ConstraintOneofCase.IntMod) {
5471 output.WriteRawTag(66);
5472 output.WriteMessage(IntMod);
5473 }
5474 if (constraintCase_ == ConstraintOneofCase.IntProd) {
5475 output.WriteRawTag(90);
5476 output.WriteMessage(IntProd);
5477 }
5478 if (constraintCase_ == ConstraintOneofCase.Linear) {
5479 output.WriteRawTag(98);
5480 output.WriteMessage(Linear);
5481 }
5482 if (constraintCase_ == ConstraintOneofCase.AllDiff) {
5483 output.WriteRawTag(106);
5484 output.WriteMessage(AllDiff);
5485 }
5486 if (constraintCase_ == ConstraintOneofCase.Element) {
5487 output.WriteRawTag(114);
5488 output.WriteMessage(Element);
5489 }
5490 if (constraintCase_ == ConstraintOneofCase.Circuit) {
5491 output.WriteRawTag(122);
5492 output.WriteMessage(Circuit);
5493 }
5494 if (constraintCase_ == ConstraintOneofCase.Table) {
5495 output.WriteRawTag(130, 1);
5496 output.WriteMessage(Table);
5497 }
5498 if (constraintCase_ == ConstraintOneofCase.Automaton) {
5499 output.WriteRawTag(138, 1);
5500 output.WriteMessage(Automaton);
5501 }
5502 if (constraintCase_ == ConstraintOneofCase.Inverse) {
5503 output.WriteRawTag(146, 1);
5504 output.WriteMessage(Inverse);
5505 }
5506 if (constraintCase_ == ConstraintOneofCase.Interval) {
5507 output.WriteRawTag(154, 1);
5508 output.WriteMessage(Interval);
5509 }
5510 if (constraintCase_ == ConstraintOneofCase.NoOverlap) {
5511 output.WriteRawTag(162, 1);
5512 output.WriteMessage(NoOverlap);
5513 }
5514 if (constraintCase_ == ConstraintOneofCase.NoOverlap2D) {
5515 output.WriteRawTag(170, 1);
5516 output.WriteMessage(NoOverlap2D);
5517 }
5518 if (constraintCase_ == ConstraintOneofCase.Cumulative) {
5519 output.WriteRawTag(178, 1);
5520 output.WriteMessage(Cumulative);
5521 }
5522 if (constraintCase_ == ConstraintOneofCase.Routes) {
5523 output.WriteRawTag(186, 1);
5524 output.WriteMessage(Routes);
5525 }
5526 if (constraintCase_ == ConstraintOneofCase.Reservoir) {
5527 output.WriteRawTag(194, 1);
5528 output.WriteMessage(Reservoir);
5529 }
5530 if (constraintCase_ == ConstraintOneofCase.AtMostOne) {
5531 output.WriteRawTag(210, 1);
5532 output.WriteMessage(AtMostOne);
5533 }
5534 if (constraintCase_ == ConstraintOneofCase.LinMax) {
5535 output.WriteRawTag(218, 1);
5536 output.WriteMessage(LinMax);
5537 }
5538 if (constraintCase_ == ConstraintOneofCase.ExactlyOne) {
5539 output.WriteRawTag(234, 1);
5540 output.WriteMessage(ExactlyOne);
5541 }
5542 if (constraintCase_ == ConstraintOneofCase.DummyConstraint) {
5543 output.WriteRawTag(242, 1);
5544 output.WriteMessage(DummyConstraint);
5545 }
5546 if (_unknownFields != null) {
5547 _unknownFields.WriteTo(output);
5548 }
5549 #endif
5550 }
5551
5552 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5554 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5555 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5556 if (Name.Length != 0) {
5557 output.WriteRawTag(10);
5558 output.WriteString(Name);
5559 }
5560 enforcementLiteral_.WriteTo(ref output, _repeated_enforcementLiteral_codec);
5561 if (constraintCase_ == ConstraintOneofCase.BoolOr) {
5562 output.WriteRawTag(26);
5563 output.WriteMessage(BoolOr);
5564 }
5565 if (constraintCase_ == ConstraintOneofCase.BoolAnd) {
5566 output.WriteRawTag(34);
5567 output.WriteMessage(BoolAnd);
5568 }
5569 if (constraintCase_ == ConstraintOneofCase.BoolXor) {
5570 output.WriteRawTag(42);
5571 output.WriteMessage(BoolXor);
5572 }
5573 if (constraintCase_ == ConstraintOneofCase.IntDiv) {
5574 output.WriteRawTag(58);
5575 output.WriteMessage(IntDiv);
5576 }
5577 if (constraintCase_ == ConstraintOneofCase.IntMod) {
5578 output.WriteRawTag(66);
5579 output.WriteMessage(IntMod);
5580 }
5581 if (constraintCase_ == ConstraintOneofCase.IntProd) {
5582 output.WriteRawTag(90);
5583 output.WriteMessage(IntProd);
5584 }
5585 if (constraintCase_ == ConstraintOneofCase.Linear) {
5586 output.WriteRawTag(98);
5587 output.WriteMessage(Linear);
5588 }
5589 if (constraintCase_ == ConstraintOneofCase.AllDiff) {
5590 output.WriteRawTag(106);
5591 output.WriteMessage(AllDiff);
5592 }
5593 if (constraintCase_ == ConstraintOneofCase.Element) {
5594 output.WriteRawTag(114);
5595 output.WriteMessage(Element);
5596 }
5597 if (constraintCase_ == ConstraintOneofCase.Circuit) {
5598 output.WriteRawTag(122);
5599 output.WriteMessage(Circuit);
5600 }
5601 if (constraintCase_ == ConstraintOneofCase.Table) {
5602 output.WriteRawTag(130, 1);
5603 output.WriteMessage(Table);
5604 }
5605 if (constraintCase_ == ConstraintOneofCase.Automaton) {
5606 output.WriteRawTag(138, 1);
5607 output.WriteMessage(Automaton);
5608 }
5609 if (constraintCase_ == ConstraintOneofCase.Inverse) {
5610 output.WriteRawTag(146, 1);
5611 output.WriteMessage(Inverse);
5612 }
5613 if (constraintCase_ == ConstraintOneofCase.Interval) {
5614 output.WriteRawTag(154, 1);
5615 output.WriteMessage(Interval);
5616 }
5617 if (constraintCase_ == ConstraintOneofCase.NoOverlap) {
5618 output.WriteRawTag(162, 1);
5619 output.WriteMessage(NoOverlap);
5620 }
5621 if (constraintCase_ == ConstraintOneofCase.NoOverlap2D) {
5622 output.WriteRawTag(170, 1);
5623 output.WriteMessage(NoOverlap2D);
5624 }
5625 if (constraintCase_ == ConstraintOneofCase.Cumulative) {
5626 output.WriteRawTag(178, 1);
5627 output.WriteMessage(Cumulative);
5628 }
5629 if (constraintCase_ == ConstraintOneofCase.Routes) {
5630 output.WriteRawTag(186, 1);
5631 output.WriteMessage(Routes);
5632 }
5633 if (constraintCase_ == ConstraintOneofCase.Reservoir) {
5634 output.WriteRawTag(194, 1);
5635 output.WriteMessage(Reservoir);
5636 }
5637 if (constraintCase_ == ConstraintOneofCase.AtMostOne) {
5638 output.WriteRawTag(210, 1);
5639 output.WriteMessage(AtMostOne);
5640 }
5641 if (constraintCase_ == ConstraintOneofCase.LinMax) {
5642 output.WriteRawTag(218, 1);
5643 output.WriteMessage(LinMax);
5644 }
5645 if (constraintCase_ == ConstraintOneofCase.ExactlyOne) {
5646 output.WriteRawTag(234, 1);
5647 output.WriteMessage(ExactlyOne);
5648 }
5649 if (constraintCase_ == ConstraintOneofCase.DummyConstraint) {
5650 output.WriteRawTag(242, 1);
5651 output.WriteMessage(DummyConstraint);
5652 }
5653 if (_unknownFields != null) {
5654 _unknownFields.WriteTo(ref output);
5655 }
5656 }
5657 #endif
5658
5659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5660 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5661 public int CalculateSize() {
5662 int size = 0;
5663 if (Name.Length != 0) {
5664 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
5665 }
5666 size += enforcementLiteral_.CalculateSize(_repeated_enforcementLiteral_codec);
5667 if (constraintCase_ == ConstraintOneofCase.BoolOr) {
5668 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolOr);
5669 }
5670 if (constraintCase_ == ConstraintOneofCase.BoolAnd) {
5671 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolAnd);
5672 }
5673 if (constraintCase_ == ConstraintOneofCase.AtMostOne) {
5674 size += 2 + pb::CodedOutputStream.ComputeMessageSize(AtMostOne);
5675 }
5676 if (constraintCase_ == ConstraintOneofCase.ExactlyOne) {
5677 size += 2 + pb::CodedOutputStream.ComputeMessageSize(ExactlyOne);
5678 }
5679 if (constraintCase_ == ConstraintOneofCase.BoolXor) {
5680 size += 1 + pb::CodedOutputStream.ComputeMessageSize(BoolXor);
5681 }
5682 if (constraintCase_ == ConstraintOneofCase.IntDiv) {
5683 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntDiv);
5684 }
5685 if (constraintCase_ == ConstraintOneofCase.IntMod) {
5686 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntMod);
5687 }
5688 if (constraintCase_ == ConstraintOneofCase.IntProd) {
5689 size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntProd);
5690 }
5691 if (constraintCase_ == ConstraintOneofCase.LinMax) {
5692 size += 2 + pb::CodedOutputStream.ComputeMessageSize(LinMax);
5693 }
5694 if (constraintCase_ == ConstraintOneofCase.Linear) {
5695 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Linear);
5696 }
5697 if (constraintCase_ == ConstraintOneofCase.AllDiff) {
5698 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AllDiff);
5699 }
5700 if (constraintCase_ == ConstraintOneofCase.Element) {
5701 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Element);
5702 }
5703 if (constraintCase_ == ConstraintOneofCase.Circuit) {
5704 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Circuit);
5705 }
5706 if (constraintCase_ == ConstraintOneofCase.Routes) {
5707 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Routes);
5708 }
5709 if (constraintCase_ == ConstraintOneofCase.Table) {
5710 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Table);
5711 }
5712 if (constraintCase_ == ConstraintOneofCase.Automaton) {
5713 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Automaton);
5714 }
5715 if (constraintCase_ == ConstraintOneofCase.Inverse) {
5716 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Inverse);
5717 }
5718 if (constraintCase_ == ConstraintOneofCase.Reservoir) {
5719 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Reservoir);
5720 }
5721 if (constraintCase_ == ConstraintOneofCase.Interval) {
5722 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Interval);
5723 }
5724 if (constraintCase_ == ConstraintOneofCase.NoOverlap) {
5725 size += 2 + pb::CodedOutputStream.ComputeMessageSize(NoOverlap);
5726 }
5727 if (constraintCase_ == ConstraintOneofCase.NoOverlap2D) {
5728 size += 2 + pb::CodedOutputStream.ComputeMessageSize(NoOverlap2D);
5729 }
5730 if (constraintCase_ == ConstraintOneofCase.Cumulative) {
5731 size += 2 + pb::CodedOutputStream.ComputeMessageSize(Cumulative);
5732 }
5733 if (constraintCase_ == ConstraintOneofCase.DummyConstraint) {
5734 size += 2 + pb::CodedOutputStream.ComputeMessageSize(DummyConstraint);
5735 }
5736 if (_unknownFields != null) {
5737 size += _unknownFields.CalculateSize();
5738 }
5739 return size;
5740 }
5741
5742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5743 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5744 public void MergeFrom(ConstraintProto other) {
5745 if (other == null) {
5746 return;
5747 }
5748 if (other.Name.Length != 0) {
5749 Name = other.Name;
5750 }
5751 enforcementLiteral_.Add(other.enforcementLiteral_);
5752 switch (other.ConstraintCase) {
5753 case ConstraintOneofCase.BoolOr:
5754 if (BoolOr == null) {
5755 BoolOr = new global::Google.OrTools.Sat.BoolArgumentProto();
5756 }
5757 BoolOr.MergeFrom(other.BoolOr);
5758 break;
5759 case ConstraintOneofCase.BoolAnd:
5760 if (BoolAnd == null) {
5761 BoolAnd = new global::Google.OrTools.Sat.BoolArgumentProto();
5762 }
5763 BoolAnd.MergeFrom(other.BoolAnd);
5764 break;
5765 case ConstraintOneofCase.AtMostOne:
5766 if (AtMostOne == null) {
5767 AtMostOne = new global::Google.OrTools.Sat.BoolArgumentProto();
5768 }
5769 AtMostOne.MergeFrom(other.AtMostOne);
5770 break;
5771 case ConstraintOneofCase.ExactlyOne:
5772 if (ExactlyOne == null) {
5773 ExactlyOne = new global::Google.OrTools.Sat.BoolArgumentProto();
5774 }
5775 ExactlyOne.MergeFrom(other.ExactlyOne);
5776 break;
5777 case ConstraintOneofCase.BoolXor:
5778 if (BoolXor == null) {
5779 BoolXor = new global::Google.OrTools.Sat.BoolArgumentProto();
5780 }
5781 BoolXor.MergeFrom(other.BoolXor);
5782 break;
5783 case ConstraintOneofCase.IntDiv:
5784 if (IntDiv == null) {
5785 IntDiv = new global::Google.OrTools.Sat.LinearArgumentProto();
5786 }
5787 IntDiv.MergeFrom(other.IntDiv);
5788 break;
5789 case ConstraintOneofCase.IntMod:
5790 if (IntMod == null) {
5791 IntMod = new global::Google.OrTools.Sat.LinearArgumentProto();
5792 }
5793 IntMod.MergeFrom(other.IntMod);
5794 break;
5795 case ConstraintOneofCase.IntProd:
5796 if (IntProd == null) {
5797 IntProd = new global::Google.OrTools.Sat.LinearArgumentProto();
5798 }
5799 IntProd.MergeFrom(other.IntProd);
5800 break;
5801 case ConstraintOneofCase.LinMax:
5802 if (LinMax == null) {
5803 LinMax = new global::Google.OrTools.Sat.LinearArgumentProto();
5804 }
5805 LinMax.MergeFrom(other.LinMax);
5806 break;
5807 case ConstraintOneofCase.Linear:
5808 if (Linear == null) {
5809 Linear = new global::Google.OrTools.Sat.LinearConstraintProto();
5810 }
5811 Linear.MergeFrom(other.Linear);
5812 break;
5813 case ConstraintOneofCase.AllDiff:
5814 if (AllDiff == null) {
5815 AllDiff = new global::Google.OrTools.Sat.AllDifferentConstraintProto();
5816 }
5817 AllDiff.MergeFrom(other.AllDiff);
5818 break;
5819 case ConstraintOneofCase.Element:
5820 if (Element == null) {
5821 Element = new global::Google.OrTools.Sat.ElementConstraintProto();
5822 }
5823 Element.MergeFrom(other.Element);
5824 break;
5825 case ConstraintOneofCase.Circuit:
5826 if (Circuit == null) {
5827 Circuit = new global::Google.OrTools.Sat.CircuitConstraintProto();
5828 }
5829 Circuit.MergeFrom(other.Circuit);
5830 break;
5831 case ConstraintOneofCase.Routes:
5832 if (Routes == null) {
5833 Routes = new global::Google.OrTools.Sat.RoutesConstraintProto();
5834 }
5835 Routes.MergeFrom(other.Routes);
5836 break;
5837 case ConstraintOneofCase.Table:
5838 if (Table == null) {
5839 Table = new global::Google.OrTools.Sat.TableConstraintProto();
5840 }
5841 Table.MergeFrom(other.Table);
5842 break;
5843 case ConstraintOneofCase.Automaton:
5844 if (Automaton == null) {
5845 Automaton = new global::Google.OrTools.Sat.AutomatonConstraintProto();
5846 }
5847 Automaton.MergeFrom(other.Automaton);
5848 break;
5849 case ConstraintOneofCase.Inverse:
5850 if (Inverse == null) {
5851 Inverse = new global::Google.OrTools.Sat.InverseConstraintProto();
5852 }
5853 Inverse.MergeFrom(other.Inverse);
5854 break;
5855 case ConstraintOneofCase.Reservoir:
5856 if (Reservoir == null) {
5857 Reservoir = new global::Google.OrTools.Sat.ReservoirConstraintProto();
5858 }
5859 Reservoir.MergeFrom(other.Reservoir);
5860 break;
5861 case ConstraintOneofCase.Interval:
5862 if (Interval == null) {
5863 Interval = new global::Google.OrTools.Sat.IntervalConstraintProto();
5864 }
5865 Interval.MergeFrom(other.Interval);
5866 break;
5867 case ConstraintOneofCase.NoOverlap:
5868 if (NoOverlap == null) {
5869 NoOverlap = new global::Google.OrTools.Sat.NoOverlapConstraintProto();
5870 }
5871 NoOverlap.MergeFrom(other.NoOverlap);
5872 break;
5873 case ConstraintOneofCase.NoOverlap2D:
5874 if (NoOverlap2D == null) {
5875 NoOverlap2D = new global::Google.OrTools.Sat.NoOverlap2DConstraintProto();
5876 }
5877 NoOverlap2D.MergeFrom(other.NoOverlap2D);
5878 break;
5879 case ConstraintOneofCase.Cumulative:
5880 if (Cumulative == null) {
5881 Cumulative = new global::Google.OrTools.Sat.CumulativeConstraintProto();
5882 }
5883 Cumulative.MergeFrom(other.Cumulative);
5884 break;
5885 case ConstraintOneofCase.DummyConstraint:
5886 if (DummyConstraint == null) {
5887 DummyConstraint = new global::Google.OrTools.Sat.ListOfVariablesProto();
5888 }
5889 DummyConstraint.MergeFrom(other.DummyConstraint);
5890 break;
5891 }
5892
5893 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5894 }
5895
5896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5897 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5898 public void MergeFrom(pb::CodedInputStream input) {
5899 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5900 input.ReadRawMessage(this);
5901 #else
5902 uint tag;
5903 while ((tag = input.ReadTag()) != 0) {
5904 switch(tag) {
5905 default:
5906 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5907 break;
5908 case 10: {
5909 Name = input.ReadString();
5910 break;
5911 }
5912 case 18:
5913 case 16: {
5914 enforcementLiteral_.AddEntriesFrom(input, _repeated_enforcementLiteral_codec);
5915 break;
5916 }
5917 case 26: {
5918 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
5919 if (constraintCase_ == ConstraintOneofCase.BoolOr) {
5920 subBuilder.MergeFrom(BoolOr);
5921 }
5922 input.ReadMessage(subBuilder);
5923 BoolOr = subBuilder;
5924 break;
5925 }
5926 case 34: {
5927 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
5928 if (constraintCase_ == ConstraintOneofCase.BoolAnd) {
5929 subBuilder.MergeFrom(BoolAnd);
5930 }
5931 input.ReadMessage(subBuilder);
5932 BoolAnd = subBuilder;
5933 break;
5934 }
5935 case 42: {
5936 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
5937 if (constraintCase_ == ConstraintOneofCase.BoolXor) {
5938 subBuilder.MergeFrom(BoolXor);
5939 }
5940 input.ReadMessage(subBuilder);
5941 BoolXor = subBuilder;
5942 break;
5943 }
5944 case 58: {
5945 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
5946 if (constraintCase_ == ConstraintOneofCase.IntDiv) {
5947 subBuilder.MergeFrom(IntDiv);
5948 }
5949 input.ReadMessage(subBuilder);
5950 IntDiv = subBuilder;
5951 break;
5952 }
5953 case 66: {
5954 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
5955 if (constraintCase_ == ConstraintOneofCase.IntMod) {
5956 subBuilder.MergeFrom(IntMod);
5957 }
5958 input.ReadMessage(subBuilder);
5959 IntMod = subBuilder;
5960 break;
5961 }
5962 case 90: {
5963 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
5964 if (constraintCase_ == ConstraintOneofCase.IntProd) {
5965 subBuilder.MergeFrom(IntProd);
5966 }
5967 input.ReadMessage(subBuilder);
5968 IntProd = subBuilder;
5969 break;
5970 }
5971 case 98: {
5972 global::Google.OrTools.Sat.LinearConstraintProto subBuilder = new global::Google.OrTools.Sat.LinearConstraintProto();
5973 if (constraintCase_ == ConstraintOneofCase.Linear) {
5974 subBuilder.MergeFrom(Linear);
5975 }
5976 input.ReadMessage(subBuilder);
5977 Linear = subBuilder;
5978 break;
5979 }
5980 case 106: {
5981 global::Google.OrTools.Sat.AllDifferentConstraintProto subBuilder = new global::Google.OrTools.Sat.AllDifferentConstraintProto();
5982 if (constraintCase_ == ConstraintOneofCase.AllDiff) {
5983 subBuilder.MergeFrom(AllDiff);
5984 }
5985 input.ReadMessage(subBuilder);
5986 AllDiff = subBuilder;
5987 break;
5988 }
5989 case 114: {
5990 global::Google.OrTools.Sat.ElementConstraintProto subBuilder = new global::Google.OrTools.Sat.ElementConstraintProto();
5991 if (constraintCase_ == ConstraintOneofCase.Element) {
5992 subBuilder.MergeFrom(Element);
5993 }
5994 input.ReadMessage(subBuilder);
5995 Element = subBuilder;
5996 break;
5997 }
5998 case 122: {
5999 global::Google.OrTools.Sat.CircuitConstraintProto subBuilder = new global::Google.OrTools.Sat.CircuitConstraintProto();
6000 if (constraintCase_ == ConstraintOneofCase.Circuit) {
6001 subBuilder.MergeFrom(Circuit);
6002 }
6003 input.ReadMessage(subBuilder);
6004 Circuit = subBuilder;
6005 break;
6006 }
6007 case 130: {
6008 global::Google.OrTools.Sat.TableConstraintProto subBuilder = new global::Google.OrTools.Sat.TableConstraintProto();
6009 if (constraintCase_ == ConstraintOneofCase.Table) {
6010 subBuilder.MergeFrom(Table);
6011 }
6012 input.ReadMessage(subBuilder);
6013 Table = subBuilder;
6014 break;
6015 }
6016 case 138: {
6017 global::Google.OrTools.Sat.AutomatonConstraintProto subBuilder = new global::Google.OrTools.Sat.AutomatonConstraintProto();
6018 if (constraintCase_ == ConstraintOneofCase.Automaton) {
6019 subBuilder.MergeFrom(Automaton);
6020 }
6021 input.ReadMessage(subBuilder);
6022 Automaton = subBuilder;
6023 break;
6024 }
6025 case 146: {
6026 global::Google.OrTools.Sat.InverseConstraintProto subBuilder = new global::Google.OrTools.Sat.InverseConstraintProto();
6027 if (constraintCase_ == ConstraintOneofCase.Inverse) {
6028 subBuilder.MergeFrom(Inverse);
6029 }
6030 input.ReadMessage(subBuilder);
6031 Inverse = subBuilder;
6032 break;
6033 }
6034 case 154: {
6035 global::Google.OrTools.Sat.IntervalConstraintProto subBuilder = new global::Google.OrTools.Sat.IntervalConstraintProto();
6036 if (constraintCase_ == ConstraintOneofCase.Interval) {
6037 subBuilder.MergeFrom(Interval);
6038 }
6039 input.ReadMessage(subBuilder);
6040 Interval = subBuilder;
6041 break;
6042 }
6043 case 162: {
6044 global::Google.OrTools.Sat.NoOverlapConstraintProto subBuilder = new global::Google.OrTools.Sat.NoOverlapConstraintProto();
6045 if (constraintCase_ == ConstraintOneofCase.NoOverlap) {
6046 subBuilder.MergeFrom(NoOverlap);
6047 }
6048 input.ReadMessage(subBuilder);
6049 NoOverlap = subBuilder;
6050 break;
6051 }
6052 case 170: {
6053 global::Google.OrTools.Sat.NoOverlap2DConstraintProto subBuilder = new global::Google.OrTools.Sat.NoOverlap2DConstraintProto();
6054 if (constraintCase_ == ConstraintOneofCase.NoOverlap2D) {
6055 subBuilder.MergeFrom(NoOverlap2D);
6056 }
6057 input.ReadMessage(subBuilder);
6058 NoOverlap2D = subBuilder;
6059 break;
6060 }
6061 case 178: {
6062 global::Google.OrTools.Sat.CumulativeConstraintProto subBuilder = new global::Google.OrTools.Sat.CumulativeConstraintProto();
6063 if (constraintCase_ == ConstraintOneofCase.Cumulative) {
6064 subBuilder.MergeFrom(Cumulative);
6065 }
6066 input.ReadMessage(subBuilder);
6067 Cumulative = subBuilder;
6068 break;
6069 }
6070 case 186: {
6071 global::Google.OrTools.Sat.RoutesConstraintProto subBuilder = new global::Google.OrTools.Sat.RoutesConstraintProto();
6072 if (constraintCase_ == ConstraintOneofCase.Routes) {
6073 subBuilder.MergeFrom(Routes);
6074 }
6075 input.ReadMessage(subBuilder);
6076 Routes = subBuilder;
6077 break;
6078 }
6079 case 194: {
6080 global::Google.OrTools.Sat.ReservoirConstraintProto subBuilder = new global::Google.OrTools.Sat.ReservoirConstraintProto();
6081 if (constraintCase_ == ConstraintOneofCase.Reservoir) {
6082 subBuilder.MergeFrom(Reservoir);
6083 }
6084 input.ReadMessage(subBuilder);
6085 Reservoir = subBuilder;
6086 break;
6087 }
6088 case 210: {
6089 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6090 if (constraintCase_ == ConstraintOneofCase.AtMostOne) {
6091 subBuilder.MergeFrom(AtMostOne);
6092 }
6093 input.ReadMessage(subBuilder);
6094 AtMostOne = subBuilder;
6095 break;
6096 }
6097 case 218: {
6098 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
6099 if (constraintCase_ == ConstraintOneofCase.LinMax) {
6100 subBuilder.MergeFrom(LinMax);
6101 }
6102 input.ReadMessage(subBuilder);
6103 LinMax = subBuilder;
6104 break;
6105 }
6106 case 234: {
6107 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6108 if (constraintCase_ == ConstraintOneofCase.ExactlyOne) {
6109 subBuilder.MergeFrom(ExactlyOne);
6110 }
6111 input.ReadMessage(subBuilder);
6112 ExactlyOne = subBuilder;
6113 break;
6114 }
6115 case 242: {
6116 global::Google.OrTools.Sat.ListOfVariablesProto subBuilder = new global::Google.OrTools.Sat.ListOfVariablesProto();
6117 if (constraintCase_ == ConstraintOneofCase.DummyConstraint) {
6118 subBuilder.MergeFrom(DummyConstraint);
6119 }
6120 input.ReadMessage(subBuilder);
6121 DummyConstraint = subBuilder;
6122 break;
6123 }
6124 }
6125 }
6126 #endif
6127 }
6128
6129 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6131 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6132 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6133 uint tag;
6134 while ((tag = input.ReadTag()) != 0) {
6135 switch(tag) {
6136 default:
6137 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6138 break;
6139 case 10: {
6140 Name = input.ReadString();
6141 break;
6142 }
6143 case 18:
6144 case 16: {
6145 enforcementLiteral_.AddEntriesFrom(ref input, _repeated_enforcementLiteral_codec);
6146 break;
6147 }
6148 case 26: {
6149 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6150 if (constraintCase_ == ConstraintOneofCase.BoolOr) {
6151 subBuilder.MergeFrom(BoolOr);
6152 }
6153 input.ReadMessage(subBuilder);
6154 BoolOr = subBuilder;
6155 break;
6156 }
6157 case 34: {
6158 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6159 if (constraintCase_ == ConstraintOneofCase.BoolAnd) {
6160 subBuilder.MergeFrom(BoolAnd);
6161 }
6162 input.ReadMessage(subBuilder);
6163 BoolAnd = subBuilder;
6164 break;
6165 }
6166 case 42: {
6167 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6168 if (constraintCase_ == ConstraintOneofCase.BoolXor) {
6169 subBuilder.MergeFrom(BoolXor);
6170 }
6171 input.ReadMessage(subBuilder);
6172 BoolXor = subBuilder;
6173 break;
6174 }
6175 case 58: {
6176 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
6177 if (constraintCase_ == ConstraintOneofCase.IntDiv) {
6178 subBuilder.MergeFrom(IntDiv);
6179 }
6180 input.ReadMessage(subBuilder);
6181 IntDiv = subBuilder;
6182 break;
6183 }
6184 case 66: {
6185 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
6186 if (constraintCase_ == ConstraintOneofCase.IntMod) {
6187 subBuilder.MergeFrom(IntMod);
6188 }
6189 input.ReadMessage(subBuilder);
6190 IntMod = subBuilder;
6191 break;
6192 }
6193 case 90: {
6194 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
6195 if (constraintCase_ == ConstraintOneofCase.IntProd) {
6196 subBuilder.MergeFrom(IntProd);
6197 }
6198 input.ReadMessage(subBuilder);
6199 IntProd = subBuilder;
6200 break;
6201 }
6202 case 98: {
6203 global::Google.OrTools.Sat.LinearConstraintProto subBuilder = new global::Google.OrTools.Sat.LinearConstraintProto();
6204 if (constraintCase_ == ConstraintOneofCase.Linear) {
6205 subBuilder.MergeFrom(Linear);
6206 }
6207 input.ReadMessage(subBuilder);
6208 Linear = subBuilder;
6209 break;
6210 }
6211 case 106: {
6212 global::Google.OrTools.Sat.AllDifferentConstraintProto subBuilder = new global::Google.OrTools.Sat.AllDifferentConstraintProto();
6213 if (constraintCase_ == ConstraintOneofCase.AllDiff) {
6214 subBuilder.MergeFrom(AllDiff);
6215 }
6216 input.ReadMessage(subBuilder);
6217 AllDiff = subBuilder;
6218 break;
6219 }
6220 case 114: {
6221 global::Google.OrTools.Sat.ElementConstraintProto subBuilder = new global::Google.OrTools.Sat.ElementConstraintProto();
6222 if (constraintCase_ == ConstraintOneofCase.Element) {
6223 subBuilder.MergeFrom(Element);
6224 }
6225 input.ReadMessage(subBuilder);
6226 Element = subBuilder;
6227 break;
6228 }
6229 case 122: {
6230 global::Google.OrTools.Sat.CircuitConstraintProto subBuilder = new global::Google.OrTools.Sat.CircuitConstraintProto();
6231 if (constraintCase_ == ConstraintOneofCase.Circuit) {
6232 subBuilder.MergeFrom(Circuit);
6233 }
6234 input.ReadMessage(subBuilder);
6235 Circuit = subBuilder;
6236 break;
6237 }
6238 case 130: {
6239 global::Google.OrTools.Sat.TableConstraintProto subBuilder = new global::Google.OrTools.Sat.TableConstraintProto();
6240 if (constraintCase_ == ConstraintOneofCase.Table) {
6241 subBuilder.MergeFrom(Table);
6242 }
6243 input.ReadMessage(subBuilder);
6244 Table = subBuilder;
6245 break;
6246 }
6247 case 138: {
6248 global::Google.OrTools.Sat.AutomatonConstraintProto subBuilder = new global::Google.OrTools.Sat.AutomatonConstraintProto();
6249 if (constraintCase_ == ConstraintOneofCase.Automaton) {
6250 subBuilder.MergeFrom(Automaton);
6251 }
6252 input.ReadMessage(subBuilder);
6253 Automaton = subBuilder;
6254 break;
6255 }
6256 case 146: {
6257 global::Google.OrTools.Sat.InverseConstraintProto subBuilder = new global::Google.OrTools.Sat.InverseConstraintProto();
6258 if (constraintCase_ == ConstraintOneofCase.Inverse) {
6259 subBuilder.MergeFrom(Inverse);
6260 }
6261 input.ReadMessage(subBuilder);
6262 Inverse = subBuilder;
6263 break;
6264 }
6265 case 154: {
6266 global::Google.OrTools.Sat.IntervalConstraintProto subBuilder = new global::Google.OrTools.Sat.IntervalConstraintProto();
6267 if (constraintCase_ == ConstraintOneofCase.Interval) {
6268 subBuilder.MergeFrom(Interval);
6269 }
6270 input.ReadMessage(subBuilder);
6271 Interval = subBuilder;
6272 break;
6273 }
6274 case 162: {
6275 global::Google.OrTools.Sat.NoOverlapConstraintProto subBuilder = new global::Google.OrTools.Sat.NoOverlapConstraintProto();
6276 if (constraintCase_ == ConstraintOneofCase.NoOverlap) {
6277 subBuilder.MergeFrom(NoOverlap);
6278 }
6279 input.ReadMessage(subBuilder);
6280 NoOverlap = subBuilder;
6281 break;
6282 }
6283 case 170: {
6284 global::Google.OrTools.Sat.NoOverlap2DConstraintProto subBuilder = new global::Google.OrTools.Sat.NoOverlap2DConstraintProto();
6285 if (constraintCase_ == ConstraintOneofCase.NoOverlap2D) {
6286 subBuilder.MergeFrom(NoOverlap2D);
6287 }
6288 input.ReadMessage(subBuilder);
6289 NoOverlap2D = subBuilder;
6290 break;
6291 }
6292 case 178: {
6293 global::Google.OrTools.Sat.CumulativeConstraintProto subBuilder = new global::Google.OrTools.Sat.CumulativeConstraintProto();
6294 if (constraintCase_ == ConstraintOneofCase.Cumulative) {
6295 subBuilder.MergeFrom(Cumulative);
6296 }
6297 input.ReadMessage(subBuilder);
6298 Cumulative = subBuilder;
6299 break;
6300 }
6301 case 186: {
6302 global::Google.OrTools.Sat.RoutesConstraintProto subBuilder = new global::Google.OrTools.Sat.RoutesConstraintProto();
6303 if (constraintCase_ == ConstraintOneofCase.Routes) {
6304 subBuilder.MergeFrom(Routes);
6305 }
6306 input.ReadMessage(subBuilder);
6307 Routes = subBuilder;
6308 break;
6309 }
6310 case 194: {
6311 global::Google.OrTools.Sat.ReservoirConstraintProto subBuilder = new global::Google.OrTools.Sat.ReservoirConstraintProto();
6312 if (constraintCase_ == ConstraintOneofCase.Reservoir) {
6313 subBuilder.MergeFrom(Reservoir);
6314 }
6315 input.ReadMessage(subBuilder);
6316 Reservoir = subBuilder;
6317 break;
6318 }
6319 case 210: {
6320 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6321 if (constraintCase_ == ConstraintOneofCase.AtMostOne) {
6322 subBuilder.MergeFrom(AtMostOne);
6323 }
6324 input.ReadMessage(subBuilder);
6325 AtMostOne = subBuilder;
6326 break;
6327 }
6328 case 218: {
6329 global::Google.OrTools.Sat.LinearArgumentProto subBuilder = new global::Google.OrTools.Sat.LinearArgumentProto();
6330 if (constraintCase_ == ConstraintOneofCase.LinMax) {
6331 subBuilder.MergeFrom(LinMax);
6332 }
6333 input.ReadMessage(subBuilder);
6334 LinMax = subBuilder;
6335 break;
6336 }
6337 case 234: {
6338 global::Google.OrTools.Sat.BoolArgumentProto subBuilder = new global::Google.OrTools.Sat.BoolArgumentProto();
6339 if (constraintCase_ == ConstraintOneofCase.ExactlyOne) {
6340 subBuilder.MergeFrom(ExactlyOne);
6341 }
6342 input.ReadMessage(subBuilder);
6343 ExactlyOne = subBuilder;
6344 break;
6345 }
6346 case 242: {
6347 global::Google.OrTools.Sat.ListOfVariablesProto subBuilder = new global::Google.OrTools.Sat.ListOfVariablesProto();
6348 if (constraintCase_ == ConstraintOneofCase.DummyConstraint) {
6349 subBuilder.MergeFrom(DummyConstraint);
6350 }
6351 input.ReadMessage(subBuilder);
6352 DummyConstraint = subBuilder;
6353 break;
6354 }
6355 }
6356 }
6357 }
6358 #endif
6359
6360 }
6361
6365 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6366 public sealed partial class CpObjectiveProto : pb::IMessage<CpObjectiveProto>
6367 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6368 , pb::IBufferMessage
6369 #endif
6370 {
6371 private static readonly pb::MessageParser<CpObjectiveProto> _parser = new pb::MessageParser<CpObjectiveProto>(() => new CpObjectiveProto());
6372 private pb::UnknownFieldSet _unknownFields;
6373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6374 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6375 public static pb::MessageParser<CpObjectiveProto> Parser { get { return _parser; } }
6376
6377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6378 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6379 public static pbr::MessageDescriptor Descriptor {
6380 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[19]; }
6381 }
6382
6383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6384 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6385 pbr::MessageDescriptor pb::IMessage.Descriptor {
6386 get { return Descriptor; }
6387 }
6388
6389 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6390 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6391 public CpObjectiveProto() {
6392 OnConstruction();
6393 }
6394
6395 partial void OnConstruction();
6396
6397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6398 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6399 public CpObjectiveProto(CpObjectiveProto other) : this() {
6400 vars_ = other.vars_.Clone();
6401 coeffs_ = other.coeffs_.Clone();
6402 offset_ = other.offset_;
6403 scalingFactor_ = other.scalingFactor_;
6404 domain_ = other.domain_.Clone();
6405 scalingWasExact_ = other.scalingWasExact_;
6406 integerBeforeOffset_ = other.integerBeforeOffset_;
6407 integerAfterOffset_ = other.integerAfterOffset_;
6408 integerScalingFactor_ = other.integerScalingFactor_;
6409 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6411
6412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6413 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6414 public CpObjectiveProto Clone() {
6415 return new CpObjectiveProto(this);
6416 }
6417
6419 public const int VarsFieldNumber = 1;
6420 private static readonly pb::FieldCodec<int> _repeated_vars_codec
6421 = pb::FieldCodec.ForInt32(10);
6422 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
6428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6429 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6430 public pbc::RepeatedField<int> Vars {
6431 get { return vars_; }
6432 }
6433
6435 public const int CoeffsFieldNumber = 4;
6436 private static readonly pb::FieldCodec<long> _repeated_coeffs_codec
6437 = pb::FieldCodec.ForInt64(34);
6438 private readonly pbc::RepeatedField<long> coeffs_ = new pbc::RepeatedField<long>();
6439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6440 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6441 public pbc::RepeatedField<long> Coeffs {
6442 get { return coeffs_; }
6443 }
6444
6446 public const int OffsetFieldNumber = 2;
6447 private double offset_;
6457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6459 public double Offset {
6460 get { return offset_; }
6461 set {
6462 offset_ = value;
6463 }
6464 }
6465
6467 public const int ScalingFactorFieldNumber = 3;
6468 private double scalingFactor_;
6469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6470 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6471 public double ScalingFactor {
6472 get { return scalingFactor_; }
6473 set {
6474 scalingFactor_ = value;
6475 }
6476 }
6479 public const int DomainFieldNumber = 5;
6480 private static readonly pb::FieldCodec<long> _repeated_domain_codec
6481 = pb::FieldCodec.ForInt64(42);
6482 private readonly pbc::RepeatedField<long> domain_ = new pbc::RepeatedField<long>();
6488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6490 public pbc::RepeatedField<long> Domain {
6491 get { return domain_; }
6492 }
6493
6495 public const int ScalingWasExactFieldNumber = 6;
6496 private bool scalingWasExact_;
6504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6506 public bool ScalingWasExact {
6507 get { return scalingWasExact_; }
6508 set {
6509 scalingWasExact_ = value;
6510 }
6512
6514 public const int IntegerBeforeOffsetFieldNumber = 7;
6515 private long integerBeforeOffset_;
6530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6531 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6532 public long IntegerBeforeOffset {
6533 get { return integerBeforeOffset_; }
6534 set {
6535 integerBeforeOffset_ = value;
6536 }
6537 }
6538
6540 public const int IntegerAfterOffsetFieldNumber = 9;
6541 private long integerAfterOffset_;
6542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6543 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6544 public long IntegerAfterOffset {
6545 get { return integerAfterOffset_; }
6546 set {
6547 integerAfterOffset_ = value;
6548 }
6549 }
6550
6552 public const int IntegerScalingFactorFieldNumber = 8;
6553 private long integerScalingFactor_;
6554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6555 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6556 public long IntegerScalingFactor {
6557 get { return integerScalingFactor_; }
6558 set {
6559 integerScalingFactor_ = value;
6560 }
6561 }
6562
6563 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6564 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6565 public override bool Equals(object other) {
6566 return Equals(other as CpObjectiveProto);
6567 }
6568
6569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6570 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6571 public bool Equals(CpObjectiveProto other) {
6572 if (ReferenceEquals(other, null)) {
6573 return false;
6575 if (ReferenceEquals(other, this)) {
6576 return true;
6577 }
6578 if(!vars_.Equals(other.vars_)) return false;
6579 if(!coeffs_.Equals(other.coeffs_)) return false;
6580 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Offset, other.Offset)) return false;
6581 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ScalingFactor, other.ScalingFactor)) return false;
6582 if(!domain_.Equals(other.domain_)) return false;
6583 if (ScalingWasExact != other.ScalingWasExact) return false;
6584 if (IntegerBeforeOffset != other.IntegerBeforeOffset) return false;
6585 if (IntegerAfterOffset != other.IntegerAfterOffset) return false;
6586 if (IntegerScalingFactor != other.IntegerScalingFactor) return false;
6587 return Equals(_unknownFields, other._unknownFields);
6588 }
6589
6590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6592 public override int GetHashCode() {
6593 int hash = 1;
6594 hash ^= vars_.GetHashCode();
6595 hash ^= coeffs_.GetHashCode();
6596 if (Offset != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Offset);
6597 if (ScalingFactor != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ScalingFactor);
6598 hash ^= domain_.GetHashCode();
6599 if (ScalingWasExact != false) hash ^= ScalingWasExact.GetHashCode();
6600 if (IntegerBeforeOffset != 0L) hash ^= IntegerBeforeOffset.GetHashCode();
6601 if (IntegerAfterOffset != 0L) hash ^= IntegerAfterOffset.GetHashCode();
6602 if (IntegerScalingFactor != 0L) hash ^= IntegerScalingFactor.GetHashCode();
6603 if (_unknownFields != null) {
6604 hash ^= _unknownFields.GetHashCode();
6606 return hash;
6607 }
6608
6609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6610 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6611 public override string ToString() {
6612 return pb::JsonFormatter.ToDiagnosticString(this);
6613 }
6614
6615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6616 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6617 public void WriteTo(pb::CodedOutputStream output) {
6618 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6619 output.WriteRawMessage(this);
6620 #else
6621 vars_.WriteTo(output, _repeated_vars_codec);
6622 if (Offset != 0D) {
6623 output.WriteRawTag(17);
6624 output.WriteDouble(Offset);
6625 }
6626 if (ScalingFactor != 0D) {
6627 output.WriteRawTag(25);
6628 output.WriteDouble(ScalingFactor);
6629 }
6630 coeffs_.WriteTo(output, _repeated_coeffs_codec);
6631 domain_.WriteTo(output, _repeated_domain_codec);
6632 if (ScalingWasExact != false) {
6633 output.WriteRawTag(48);
6634 output.WriteBool(ScalingWasExact);
6635 }
6636 if (IntegerBeforeOffset != 0L) {
6637 output.WriteRawTag(56);
6638 output.WriteInt64(IntegerBeforeOffset);
6639 }
6640 if (IntegerScalingFactor != 0L) {
6641 output.WriteRawTag(64);
6642 output.WriteInt64(IntegerScalingFactor);
6643 }
6644 if (IntegerAfterOffset != 0L) {
6645 output.WriteRawTag(72);
6646 output.WriteInt64(IntegerAfterOffset);
6647 }
6648 if (_unknownFields != null) {
6649 _unknownFields.WriteTo(output);
6650 }
6651 #endif
6652 }
6653
6654 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6656 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6657 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6658 vars_.WriteTo(ref output, _repeated_vars_codec);
6659 if (Offset != 0D) {
6660 output.WriteRawTag(17);
6661 output.WriteDouble(Offset);
6662 }
6663 if (ScalingFactor != 0D) {
6664 output.WriteRawTag(25);
6665 output.WriteDouble(ScalingFactor);
6666 }
6667 coeffs_.WriteTo(ref output, _repeated_coeffs_codec);
6668 domain_.WriteTo(ref output, _repeated_domain_codec);
6669 if (ScalingWasExact != false) {
6670 output.WriteRawTag(48);
6671 output.WriteBool(ScalingWasExact);
6672 }
6673 if (IntegerBeforeOffset != 0L) {
6674 output.WriteRawTag(56);
6675 output.WriteInt64(IntegerBeforeOffset);
6676 }
6677 if (IntegerScalingFactor != 0L) {
6678 output.WriteRawTag(64);
6679 output.WriteInt64(IntegerScalingFactor);
6680 }
6681 if (IntegerAfterOffset != 0L) {
6682 output.WriteRawTag(72);
6683 output.WriteInt64(IntegerAfterOffset);
6684 }
6685 if (_unknownFields != null) {
6686 _unknownFields.WriteTo(ref output);
6687 }
6688 }
6689 #endif
6690
6691 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6692 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6693 public int CalculateSize() {
6694 int size = 0;
6695 size += vars_.CalculateSize(_repeated_vars_codec);
6696 size += coeffs_.CalculateSize(_repeated_coeffs_codec);
6697 if (Offset != 0D) {
6698 size += 1 + 8;
6699 }
6700 if (ScalingFactor != 0D) {
6701 size += 1 + 8;
6702 }
6703 size += domain_.CalculateSize(_repeated_domain_codec);
6704 if (ScalingWasExact != false) {
6705 size += 1 + 1;
6706 }
6707 if (IntegerBeforeOffset != 0L) {
6708 size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntegerBeforeOffset);
6709 }
6710 if (IntegerAfterOffset != 0L) {
6711 size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntegerAfterOffset);
6712 }
6713 if (IntegerScalingFactor != 0L) {
6714 size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntegerScalingFactor);
6715 }
6716 if (_unknownFields != null) {
6717 size += _unknownFields.CalculateSize();
6718 }
6719 return size;
6720 }
6721
6722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6724 public void MergeFrom(CpObjectiveProto other) {
6725 if (other == null) {
6726 return;
6728 vars_.Add(other.vars_);
6729 coeffs_.Add(other.coeffs_);
6730 if (other.Offset != 0D) {
6731 Offset = other.Offset;
6732 }
6733 if (other.ScalingFactor != 0D) {
6734 ScalingFactor = other.ScalingFactor;
6735 }
6736 domain_.Add(other.domain_);
6737 if (other.ScalingWasExact != false) {
6738 ScalingWasExact = other.ScalingWasExact;
6739 }
6740 if (other.IntegerBeforeOffset != 0L) {
6741 IntegerBeforeOffset = other.IntegerBeforeOffset;
6742 }
6743 if (other.IntegerAfterOffset != 0L) {
6744 IntegerAfterOffset = other.IntegerAfterOffset;
6745 }
6746 if (other.IntegerScalingFactor != 0L) {
6747 IntegerScalingFactor = other.IntegerScalingFactor;
6748 }
6749 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6750 }
6751
6752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6753 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6754 public void MergeFrom(pb::CodedInputStream input) {
6755 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6756 input.ReadRawMessage(this);
6757 #else
6758 uint tag;
6759 while ((tag = input.ReadTag()) != 0) {
6760 switch(tag) {
6761 default:
6762 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6763 break;
6764 case 10:
6765 case 8: {
6766 vars_.AddEntriesFrom(input, _repeated_vars_codec);
6767 break;
6768 }
6769 case 17: {
6770 Offset = input.ReadDouble();
6771 break;
6772 }
6773 case 25: {
6774 ScalingFactor = input.ReadDouble();
6775 break;
6776 }
6777 case 34:
6778 case 32: {
6779 coeffs_.AddEntriesFrom(input, _repeated_coeffs_codec);
6780 break;
6781 }
6782 case 42:
6783 case 40: {
6784 domain_.AddEntriesFrom(input, _repeated_domain_codec);
6785 break;
6786 }
6787 case 48: {
6788 ScalingWasExact = input.ReadBool();
6789 break;
6790 }
6791 case 56: {
6792 IntegerBeforeOffset = input.ReadInt64();
6793 break;
6794 }
6795 case 64: {
6796 IntegerScalingFactor = input.ReadInt64();
6797 break;
6798 }
6799 case 72: {
6800 IntegerAfterOffset = input.ReadInt64();
6801 break;
6802 }
6803 }
6804 }
6805 #endif
6806 }
6807
6808 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6811 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
6812 uint tag;
6813 while ((tag = input.ReadTag()) != 0) {
6814 switch(tag) {
6815 default:
6816 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
6817 break;
6818 case 10:
6819 case 8: {
6820 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
6821 break;
6822 }
6823 case 17: {
6824 Offset = input.ReadDouble();
6825 break;
6826 }
6827 case 25: {
6828 ScalingFactor = input.ReadDouble();
6829 break;
6830 }
6831 case 34:
6832 case 32: {
6833 coeffs_.AddEntriesFrom(ref input, _repeated_coeffs_codec);
6834 break;
6835 }
6836 case 42:
6837 case 40: {
6838 domain_.AddEntriesFrom(ref input, _repeated_domain_codec);
6839 break;
6840 }
6841 case 48: {
6842 ScalingWasExact = input.ReadBool();
6843 break;
6844 }
6845 case 56: {
6846 IntegerBeforeOffset = input.ReadInt64();
6847 break;
6848 }
6849 case 64: {
6850 IntegerScalingFactor = input.ReadInt64();
6851 break;
6852 }
6853 case 72: {
6854 IntegerAfterOffset = input.ReadInt64();
6855 break;
6856 }
6857 }
6858 }
6859 }
6860 #endif
6861
6862 }
6863
6868 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6869 public sealed partial class FloatObjectiveProto : pb::IMessage<FloatObjectiveProto>
6870 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6871 , pb::IBufferMessage
6872 #endif
6873 {
6874 private static readonly pb::MessageParser<FloatObjectiveProto> _parser = new pb::MessageParser<FloatObjectiveProto>(() => new FloatObjectiveProto());
6875 private pb::UnknownFieldSet _unknownFields;
6876 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6877 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6878 public static pb::MessageParser<FloatObjectiveProto> Parser { get { return _parser; } }
6879
6880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6881 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6882 public static pbr::MessageDescriptor Descriptor {
6883 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[20]; }
6884 }
6885
6886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6887 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6888 pbr::MessageDescriptor pb::IMessage.Descriptor {
6889 get { return Descriptor; }
6890 }
6891
6892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6894 public FloatObjectiveProto() {
6895 OnConstruction();
6896 }
6897
6898 partial void OnConstruction();
6899
6900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6901 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6902 public FloatObjectiveProto(FloatObjectiveProto other) : this() {
6903 vars_ = other.vars_.Clone();
6904 coeffs_ = other.coeffs_.Clone();
6905 offset_ = other.offset_;
6906 maximize_ = other.maximize_;
6907 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6908 }
6909
6910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6911 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6912 public FloatObjectiveProto Clone() {
6913 return new FloatObjectiveProto(this);
6914 }
6915
6917 public const int VarsFieldNumber = 1;
6918 private static readonly pb::FieldCodec<int> _repeated_vars_codec
6919 = pb::FieldCodec.ForInt32(10);
6920 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
6921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6922 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6923 public pbc::RepeatedField<int> Vars {
6924 get { return vars_; }
6925 }
6926
6928 public const int CoeffsFieldNumber = 2;
6929 private static readonly pb::FieldCodec<double> _repeated_coeffs_codec
6930 = pb::FieldCodec.ForDouble(18);
6931 private readonly pbc::RepeatedField<double> coeffs_ = new pbc::RepeatedField<double>();
6932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6934 public pbc::RepeatedField<double> Coeffs {
6935 get { return coeffs_; }
6937
6939 public const int OffsetFieldNumber = 3;
6940 private double offset_;
6941 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6942 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6943 public double Offset {
6944 get { return offset_; }
6945 set {
6946 offset_ = value;
6947 }
6948 }
6949
6951 public const int MaximizeFieldNumber = 4;
6952 private bool maximize_;
6956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6958 public bool Maximize {
6959 get { return maximize_; }
6960 set {
6961 maximize_ = value;
6963 }
6964
6965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6967 public override bool Equals(object other) {
6968 return Equals(other as FloatObjectiveProto);
6969 }
6970
6971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6972 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6973 public bool Equals(FloatObjectiveProto other) {
6974 if (ReferenceEquals(other, null)) {
6975 return false;
6976 }
6977 if (ReferenceEquals(other, this)) {
6978 return true;
6979 }
6980 if(!vars_.Equals(other.vars_)) return false;
6981 if(!coeffs_.Equals(other.coeffs_)) return false;
6982 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Offset, other.Offset)) return false;
6983 if (Maximize != other.Maximize) return false;
6984 return Equals(_unknownFields, other._unknownFields);
6986
6987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6988 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6989 public override int GetHashCode() {
6990 int hash = 1;
6991 hash ^= vars_.GetHashCode();
6992 hash ^= coeffs_.GetHashCode();
6993 if (Offset != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Offset);
6994 if (Maximize != false) hash ^= Maximize.GetHashCode();
6995 if (_unknownFields != null) {
6996 hash ^= _unknownFields.GetHashCode();
6997 }
6998 return hash;
6999 }
7000
7001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7002 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7003 public override string ToString() {
7004 return pb::JsonFormatter.ToDiagnosticString(this);
7005 }
7006
7007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7008 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7009 public void WriteTo(pb::CodedOutputStream output) {
7010 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7011 output.WriteRawMessage(this);
7012 #else
7013 vars_.WriteTo(output, _repeated_vars_codec);
7014 coeffs_.WriteTo(output, _repeated_coeffs_codec);
7015 if (Offset != 0D) {
7016 output.WriteRawTag(25);
7017 output.WriteDouble(Offset);
7018 }
7019 if (Maximize != false) {
7020 output.WriteRawTag(32);
7021 output.WriteBool(Maximize);
7022 }
7023 if (_unknownFields != null) {
7024 _unknownFields.WriteTo(output);
7025 }
7026 #endif
7027 }
7028
7029 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7031 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7032 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7033 vars_.WriteTo(ref output, _repeated_vars_codec);
7034 coeffs_.WriteTo(ref output, _repeated_coeffs_codec);
7035 if (Offset != 0D) {
7036 output.WriteRawTag(25);
7037 output.WriteDouble(Offset);
7038 }
7039 if (Maximize != false) {
7040 output.WriteRawTag(32);
7041 output.WriteBool(Maximize);
7042 }
7043 if (_unknownFields != null) {
7044 _unknownFields.WriteTo(ref output);
7045 }
7046 }
7047 #endif
7048
7049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7050 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7051 public int CalculateSize() {
7052 int size = 0;
7053 size += vars_.CalculateSize(_repeated_vars_codec);
7054 size += coeffs_.CalculateSize(_repeated_coeffs_codec);
7055 if (Offset != 0D) {
7056 size += 1 + 8;
7057 }
7058 if (Maximize != false) {
7059 size += 1 + 1;
7060 }
7061 if (_unknownFields != null) {
7062 size += _unknownFields.CalculateSize();
7063 }
7064 return size;
7065 }
7066
7067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7068 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7069 public void MergeFrom(FloatObjectiveProto other) {
7070 if (other == null) {
7071 return;
7072 }
7073 vars_.Add(other.vars_);
7074 coeffs_.Add(other.coeffs_);
7075 if (other.Offset != 0D) {
7076 Offset = other.Offset;
7077 }
7078 if (other.Maximize != false) {
7079 Maximize = other.Maximize;
7080 }
7081 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7082 }
7083
7084 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7085 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7086 public void MergeFrom(pb::CodedInputStream input) {
7087 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7088 input.ReadRawMessage(this);
7089 #else
7090 uint tag;
7091 while ((tag = input.ReadTag()) != 0) {
7092 switch(tag) {
7093 default:
7094 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7095 break;
7096 case 10:
7097 case 8: {
7098 vars_.AddEntriesFrom(input, _repeated_vars_codec);
7099 break;
7100 }
7101 case 18:
7102 case 17: {
7103 coeffs_.AddEntriesFrom(input, _repeated_coeffs_codec);
7104 break;
7105 }
7106 case 25: {
7107 Offset = input.ReadDouble();
7108 break;
7109 }
7110 case 32: {
7111 Maximize = input.ReadBool();
7112 break;
7113 }
7114 }
7115 }
7116 #endif
7117 }
7118
7119 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7121 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7122 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7123 uint tag;
7124 while ((tag = input.ReadTag()) != 0) {
7125 switch(tag) {
7126 default:
7127 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7128 break;
7129 case 10:
7130 case 8: {
7131 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
7132 break;
7133 }
7134 case 18:
7135 case 17: {
7136 coeffs_.AddEntriesFrom(ref input, _repeated_coeffs_codec);
7137 break;
7138 }
7139 case 25: {
7140 Offset = input.ReadDouble();
7141 break;
7142 }
7143 case 32: {
7144 Maximize = input.ReadBool();
7145 break;
7146 }
7147 }
7148 }
7149 }
7150 #endif
7151
7152 }
7153
7158 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7159 public sealed partial class DecisionStrategyProto : pb::IMessage<DecisionStrategyProto>
7160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7161 , pb::IBufferMessage
7162 #endif
7163 {
7164 private static readonly pb::MessageParser<DecisionStrategyProto> _parser = new pb::MessageParser<DecisionStrategyProto>(() => new DecisionStrategyProto());
7165 private pb::UnknownFieldSet _unknownFields;
7166 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7167 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7168 public static pb::MessageParser<DecisionStrategyProto> Parser { get { return _parser; } }
7169
7170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7172 public static pbr::MessageDescriptor Descriptor {
7173 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[21]; }
7174 }
7175
7176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7178 pbr::MessageDescriptor pb::IMessage.Descriptor {
7179 get { return Descriptor; }
7180 }
7181
7182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7184 public DecisionStrategyProto() {
7185 OnConstruction();
7186 }
7187
7188 partial void OnConstruction();
7189
7190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7191 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7192 public DecisionStrategyProto(DecisionStrategyProto other) : this() {
7193 variables_ = other.variables_.Clone();
7194 exprs_ = other.exprs_.Clone();
7195 variableSelectionStrategy_ = other.variableSelectionStrategy_;
7196 domainReductionStrategy_ = other.domainReductionStrategy_;
7197 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7198 }
7199
7200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7201 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7202 public DecisionStrategyProto Clone() {
7203 return new DecisionStrategyProto(this);
7204 }
7205
7207 public const int VariablesFieldNumber = 1;
7208 private static readonly pb::FieldCodec<int> _repeated_variables_codec
7209 = pb::FieldCodec.ForInt32(10);
7210 private readonly pbc::RepeatedField<int> variables_ = new pbc::RepeatedField<int>();
7216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7217 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7218 public pbc::RepeatedField<int> Variables {
7219 get { return variables_; }
7220 }
7221
7223 public const int ExprsFieldNumber = 5;
7224 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.LinearExpressionProto> _repeated_exprs_codec
7225 = pb::FieldCodec.ForMessage(42, global::Google.OrTools.Sat.LinearExpressionProto.Parser);
7226 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> exprs_ = new pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto>();
7235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7236 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7237 public pbc::RepeatedField<global::Google.OrTools.Sat.LinearExpressionProto> Exprs {
7238 get { return exprs_; }
7239 }
7240
7242 public const int VariableSelectionStrategyFieldNumber = 2;
7243 private global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy variableSelectionStrategy_ = global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy.ChooseFirst;
7244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7245 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7246 public global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy VariableSelectionStrategy {
7247 get { return variableSelectionStrategy_; }
7248 set {
7249 variableSelectionStrategy_ = value;
7250 }
7251 }
7254 public const int DomainReductionStrategyFieldNumber = 3;
7255 private global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy domainReductionStrategy_ = global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy.SelectMinValue;
7256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7257 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7258 public global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy DomainReductionStrategy {
7259 get { return domainReductionStrategy_; }
7260 set {
7261 domainReductionStrategy_ = value;
7262 }
7263 }
7264
7265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7267 public override bool Equals(object other) {
7268 return Equals(other as DecisionStrategyProto);
7269 }
7270
7271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7273 public bool Equals(DecisionStrategyProto other) {
7274 if (ReferenceEquals(other, null)) {
7275 return false;
7276 }
7277 if (ReferenceEquals(other, this)) {
7278 return true;
7279 }
7280 if(!variables_.Equals(other.variables_)) return false;
7281 if(!exprs_.Equals(other.exprs_)) return false;
7282 if (VariableSelectionStrategy != other.VariableSelectionStrategy) return false;
7283 if (DomainReductionStrategy != other.DomainReductionStrategy) return false;
7284 return Equals(_unknownFields, other._unknownFields);
7285 }
7286
7287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7288 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7289 public override int GetHashCode() {
7290 int hash = 1;
7291 hash ^= variables_.GetHashCode();
7292 hash ^= exprs_.GetHashCode();
7293 if (VariableSelectionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy.ChooseFirst) hash ^= VariableSelectionStrategy.GetHashCode();
7294 if (DomainReductionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy.SelectMinValue) hash ^= DomainReductionStrategy.GetHashCode();
7295 if (_unknownFields != null) {
7296 hash ^= _unknownFields.GetHashCode();
7297 }
7298 return hash;
7299 }
7300
7301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7302 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7303 public override string ToString() {
7304 return pb::JsonFormatter.ToDiagnosticString(this);
7305 }
7306
7307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7308 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7309 public void WriteTo(pb::CodedOutputStream output) {
7310 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7311 output.WriteRawMessage(this);
7312 #else
7313 variables_.WriteTo(output, _repeated_variables_codec);
7314 if (VariableSelectionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy.ChooseFirst) {
7315 output.WriteRawTag(16);
7316 output.WriteEnum((int) VariableSelectionStrategy);
7317 }
7318 if (DomainReductionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy.SelectMinValue) {
7319 output.WriteRawTag(24);
7320 output.WriteEnum((int) DomainReductionStrategy);
7321 }
7322 exprs_.WriteTo(output, _repeated_exprs_codec);
7323 if (_unknownFields != null) {
7324 _unknownFields.WriteTo(output);
7325 }
7326 #endif
7327 }
7328
7329 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7332 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7333 variables_.WriteTo(ref output, _repeated_variables_codec);
7334 if (VariableSelectionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy.ChooseFirst) {
7335 output.WriteRawTag(16);
7336 output.WriteEnum((int) VariableSelectionStrategy);
7337 }
7338 if (DomainReductionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy.SelectMinValue) {
7339 output.WriteRawTag(24);
7340 output.WriteEnum((int) DomainReductionStrategy);
7341 }
7342 exprs_.WriteTo(ref output, _repeated_exprs_codec);
7343 if (_unknownFields != null) {
7344 _unknownFields.WriteTo(ref output);
7345 }
7346 }
7347 #endif
7348
7349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7350 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7351 public int CalculateSize() {
7352 int size = 0;
7353 size += variables_.CalculateSize(_repeated_variables_codec);
7354 size += exprs_.CalculateSize(_repeated_exprs_codec);
7355 if (VariableSelectionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy.ChooseFirst) {
7356 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VariableSelectionStrategy);
7357 }
7358 if (DomainReductionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy.SelectMinValue) {
7359 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DomainReductionStrategy);
7360 }
7361 if (_unknownFields != null) {
7362 size += _unknownFields.CalculateSize();
7363 }
7364 return size;
7365 }
7366
7367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7368 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7369 public void MergeFrom(DecisionStrategyProto other) {
7370 if (other == null) {
7371 return;
7372 }
7373 variables_.Add(other.variables_);
7374 exprs_.Add(other.exprs_);
7375 if (other.VariableSelectionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy.ChooseFirst) {
7376 VariableSelectionStrategy = other.VariableSelectionStrategy;
7377 }
7378 if (other.DomainReductionStrategy != global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy.SelectMinValue) {
7379 DomainReductionStrategy = other.DomainReductionStrategy;
7380 }
7381 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7382 }
7383
7384 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7385 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7386 public void MergeFrom(pb::CodedInputStream input) {
7387 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7388 input.ReadRawMessage(this);
7389 #else
7390 uint tag;
7391 while ((tag = input.ReadTag()) != 0) {
7392 switch(tag) {
7393 default:
7394 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7395 break;
7396 case 10:
7397 case 8: {
7398 variables_.AddEntriesFrom(input, _repeated_variables_codec);
7399 break;
7400 }
7401 case 16: {
7402 VariableSelectionStrategy = (global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy) input.ReadEnum();
7403 break;
7405 case 24: {
7406 DomainReductionStrategy = (global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy) input.ReadEnum();
7407 break;
7408 }
7409 case 42: {
7410 exprs_.AddEntriesFrom(input, _repeated_exprs_codec);
7411 break;
7412 }
7413 }
7414 }
7415 #endif
7416 }
7417
7418 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7420 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7421 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7422 uint tag;
7423 while ((tag = input.ReadTag()) != 0) {
7424 switch(tag) {
7425 default:
7426 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7427 break;
7428 case 10:
7429 case 8: {
7430 variables_.AddEntriesFrom(ref input, _repeated_variables_codec);
7431 break;
7432 }
7433 case 16: {
7434 VariableSelectionStrategy = (global::Google.OrTools.Sat.DecisionStrategyProto.Types.VariableSelectionStrategy) input.ReadEnum();
7435 break;
7436 }
7437 case 24: {
7438 DomainReductionStrategy = (global::Google.OrTools.Sat.DecisionStrategyProto.Types.DomainReductionStrategy) input.ReadEnum();
7439 break;
7440 }
7441 case 42: {
7442 exprs_.AddEntriesFrom(ref input, _repeated_exprs_codec);
7443 break;
7444 }
7445 }
7446 }
7447 }
7448 #endif
7449
7450 #region Nested types
7452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7454 public static partial class Types {
7462 public enum VariableSelectionStrategy {
7463 [pbr::OriginalName("CHOOSE_FIRST")] ChooseFirst = 0,
7464 [pbr::OriginalName("CHOOSE_LOWEST_MIN")] ChooseLowestMin = 1,
7465 [pbr::OriginalName("CHOOSE_HIGHEST_MAX")] ChooseHighestMax = 2,
7466 [pbr::OriginalName("CHOOSE_MIN_DOMAIN_SIZE")] ChooseMinDomainSize = 3,
7467 [pbr::OriginalName("CHOOSE_MAX_DOMAIN_SIZE")] ChooseMaxDomainSize = 4,
7468 }
7469
7476 public enum DomainReductionStrategy {
7477 [pbr::OriginalName("SELECT_MIN_VALUE")] SelectMinValue = 0,
7478 [pbr::OriginalName("SELECT_MAX_VALUE")] SelectMaxValue = 1,
7479 [pbr::OriginalName("SELECT_LOWER_HALF")] SelectLowerHalf = 2,
7480 [pbr::OriginalName("SELECT_UPPER_HALF")] SelectUpperHalf = 3,
7481 [pbr::OriginalName("SELECT_MEDIAN_VALUE")] SelectMedianValue = 4,
7482 }
7483
7484 }
7485 #endregion
7486
7487 }
7488
7494 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7495 public sealed partial class PartialVariableAssignment : pb::IMessage<PartialVariableAssignment>
7496 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7497 , pb::IBufferMessage
7498 #endif
7499 {
7500 private static readonly pb::MessageParser<PartialVariableAssignment> _parser = new pb::MessageParser<PartialVariableAssignment>(() => new PartialVariableAssignment());
7501 private pb::UnknownFieldSet _unknownFields;
7502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7504 public static pb::MessageParser<PartialVariableAssignment> Parser { get { return _parser; } }
7505
7506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7507 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7508 public static pbr::MessageDescriptor Descriptor {
7509 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[22]; }
7510 }
7511
7512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7513 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7514 pbr::MessageDescriptor pb::IMessage.Descriptor {
7515 get { return Descriptor; }
7516 }
7517
7518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7519 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7520 public PartialVariableAssignment() {
7521 OnConstruction();
7522 }
7523
7524 partial void OnConstruction();
7525
7526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7527 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7529 vars_ = other.vars_.Clone();
7530 values_ = other.values_.Clone();
7531 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7533
7534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7535 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7536 public PartialVariableAssignment Clone() {
7537 return new PartialVariableAssignment(this);
7538 }
7539
7541 public const int VarsFieldNumber = 1;
7542 private static readonly pb::FieldCodec<int> _repeated_vars_codec
7543 = pb::FieldCodec.ForInt32(10);
7544 private readonly pbc::RepeatedField<int> vars_ = new pbc::RepeatedField<int>();
7545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7546 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7547 public pbc::RepeatedField<int> Vars {
7548 get { return vars_; }
7549 }
7550
7552 public const int ValuesFieldNumber = 2;
7553 private static readonly pb::FieldCodec<long> _repeated_values_codec
7554 = pb::FieldCodec.ForInt64(18);
7555 private readonly pbc::RepeatedField<long> values_ = new pbc::RepeatedField<long>();
7556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7558 public pbc::RepeatedField<long> Values {
7559 get { return values_; }
7560 }
7561
7562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7563 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7564 public override bool Equals(object other) {
7565 return Equals(other as PartialVariableAssignment);
7566 }
7567
7568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7570 public bool Equals(PartialVariableAssignment other) {
7571 if (ReferenceEquals(other, null)) {
7572 return false;
7574 if (ReferenceEquals(other, this)) {
7575 return true;
7576 }
7577 if(!vars_.Equals(other.vars_)) return false;
7578 if(!values_.Equals(other.values_)) return false;
7579 return Equals(_unknownFields, other._unknownFields);
7580 }
7581
7582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7583 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7584 public override int GetHashCode() {
7585 int hash = 1;
7586 hash ^= vars_.GetHashCode();
7587 hash ^= values_.GetHashCode();
7588 if (_unknownFields != null) {
7589 hash ^= _unknownFields.GetHashCode();
7590 }
7591 return hash;
7592 }
7593
7594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7596 public override string ToString() {
7597 return pb::JsonFormatter.ToDiagnosticString(this);
7598 }
7599
7600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7601 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7602 public void WriteTo(pb::CodedOutputStream output) {
7603 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7604 output.WriteRawMessage(this);
7605 #else
7606 vars_.WriteTo(output, _repeated_vars_codec);
7607 values_.WriteTo(output, _repeated_values_codec);
7608 if (_unknownFields != null) {
7609 _unknownFields.WriteTo(output);
7610 }
7611 #endif
7612 }
7613
7614 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7616 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7617 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7618 vars_.WriteTo(ref output, _repeated_vars_codec);
7619 values_.WriteTo(ref output, _repeated_values_codec);
7620 if (_unknownFields != null) {
7621 _unknownFields.WriteTo(ref output);
7622 }
7623 }
7624 #endif
7625
7626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7627 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7628 public int CalculateSize() {
7629 int size = 0;
7630 size += vars_.CalculateSize(_repeated_vars_codec);
7631 size += values_.CalculateSize(_repeated_values_codec);
7632 if (_unknownFields != null) {
7633 size += _unknownFields.CalculateSize();
7634 }
7635 return size;
7636 }
7637
7638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7639 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7640 public void MergeFrom(PartialVariableAssignment other) {
7641 if (other == null) {
7642 return;
7643 }
7644 vars_.Add(other.vars_);
7645 values_.Add(other.values_);
7646 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7647 }
7648
7649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7650 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7651 public void MergeFrom(pb::CodedInputStream input) {
7652 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7653 input.ReadRawMessage(this);
7654 #else
7655 uint tag;
7656 while ((tag = input.ReadTag()) != 0) {
7657 switch(tag) {
7658 default:
7659 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7660 break;
7661 case 10:
7662 case 8: {
7663 vars_.AddEntriesFrom(input, _repeated_vars_codec);
7664 break;
7666 case 18:
7667 case 16: {
7668 values_.AddEntriesFrom(input, _repeated_values_codec);
7669 break;
7670 }
7671 }
7672 }
7673 #endif
7674 }
7675
7676 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7679 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7680 uint tag;
7681 while ((tag = input.ReadTag()) != 0) {
7682 switch(tag) {
7683 default:
7684 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7685 break;
7686 case 10:
7687 case 8: {
7688 vars_.AddEntriesFrom(ref input, _repeated_vars_codec);
7689 break;
7690 }
7691 case 18:
7692 case 16: {
7693 values_.AddEntriesFrom(ref input, _repeated_values_codec);
7694 break;
7695 }
7696 }
7697 }
7698 }
7699 #endif
7700
7701 }
7702
7707 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7708 public sealed partial class SparsePermutationProto : pb::IMessage<SparsePermutationProto>
7709 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7710 , pb::IBufferMessage
7711 #endif
7712 {
7713 private static readonly pb::MessageParser<SparsePermutationProto> _parser = new pb::MessageParser<SparsePermutationProto>(() => new SparsePermutationProto());
7714 private pb::UnknownFieldSet _unknownFields;
7715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7716 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7717 public static pb::MessageParser<SparsePermutationProto> Parser { get { return _parser; } }
7718
7719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7720 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7721 public static pbr::MessageDescriptor Descriptor {
7722 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[23]; }
7723 }
7724
7725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7726 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7727 pbr::MessageDescriptor pb::IMessage.Descriptor {
7728 get { return Descriptor; }
7729 }
7730
7731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7732 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7733 public SparsePermutationProto() {
7734 OnConstruction();
7735 }
7736
7737 partial void OnConstruction();
7738
7739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7741 public SparsePermutationProto(SparsePermutationProto other) : this() {
7742 support_ = other.support_.Clone();
7743 cycleSizes_ = other.cycleSizes_.Clone();
7744 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7746
7747 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7748 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7749 public SparsePermutationProto Clone() {
7750 return new SparsePermutationProto(this);
7751 }
7752
7754 public const int SupportFieldNumber = 1;
7755 private static readonly pb::FieldCodec<int> _repeated_support_codec
7756 = pb::FieldCodec.ForInt32(10);
7757 private readonly pbc::RepeatedField<int> support_ = new pbc::RepeatedField<int>();
7762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7763 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7764 public pbc::RepeatedField<int> Support {
7765 get { return support_; }
7766 }
7767
7769 public const int CycleSizesFieldNumber = 2;
7770 private static readonly pb::FieldCodec<int> _repeated_cycleSizes_codec
7771 = pb::FieldCodec.ForInt32(18);
7772 private readonly pbc::RepeatedField<int> cycleSizes_ = new pbc::RepeatedField<int>();
7773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7774 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7775 public pbc::RepeatedField<int> CycleSizes {
7776 get { return cycleSizes_; }
7777 }
7779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7780 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7781 public override bool Equals(object other) {
7782 return Equals(other as SparsePermutationProto);
7783 }
7784
7785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7786 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7787 public bool Equals(SparsePermutationProto other) {
7788 if (ReferenceEquals(other, null)) {
7789 return false;
7790 }
7791 if (ReferenceEquals(other, this)) {
7792 return true;
7793 }
7794 if(!support_.Equals(other.support_)) return false;
7795 if(!cycleSizes_.Equals(other.cycleSizes_)) return false;
7796 return Equals(_unknownFields, other._unknownFields);
7797 }
7798
7799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7800 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7801 public override int GetHashCode() {
7802 int hash = 1;
7803 hash ^= support_.GetHashCode();
7804 hash ^= cycleSizes_.GetHashCode();
7805 if (_unknownFields != null) {
7806 hash ^= _unknownFields.GetHashCode();
7807 }
7808 return hash;
7809 }
7810
7811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7812 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7813 public override string ToString() {
7814 return pb::JsonFormatter.ToDiagnosticString(this);
7815 }
7816
7817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7818 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7819 public void WriteTo(pb::CodedOutputStream output) {
7820 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7821 output.WriteRawMessage(this);
7822 #else
7823 support_.WriteTo(output, _repeated_support_codec);
7824 cycleSizes_.WriteTo(output, _repeated_cycleSizes_codec);
7825 if (_unknownFields != null) {
7826 _unknownFields.WriteTo(output);
7827 }
7828 #endif
7829 }
7830
7831 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7833 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7834 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7835 support_.WriteTo(ref output, _repeated_support_codec);
7836 cycleSizes_.WriteTo(ref output, _repeated_cycleSizes_codec);
7837 if (_unknownFields != null) {
7838 _unknownFields.WriteTo(ref output);
7839 }
7840 }
7841 #endif
7842
7843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7844 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7845 public int CalculateSize() {
7846 int size = 0;
7847 size += support_.CalculateSize(_repeated_support_codec);
7848 size += cycleSizes_.CalculateSize(_repeated_cycleSizes_codec);
7849 if (_unknownFields != null) {
7850 size += _unknownFields.CalculateSize();
7851 }
7852 return size;
7853 }
7854
7855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7856 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7857 public void MergeFrom(SparsePermutationProto other) {
7858 if (other == null) {
7859 return;
7860 }
7861 support_.Add(other.support_);
7862 cycleSizes_.Add(other.cycleSizes_);
7863 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7864 }
7865
7866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7867 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7868 public void MergeFrom(pb::CodedInputStream input) {
7869 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7870 input.ReadRawMessage(this);
7871 #else
7872 uint tag;
7873 while ((tag = input.ReadTag()) != 0) {
7874 switch(tag) {
7875 default:
7876 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7877 break;
7878 case 10:
7879 case 8: {
7880 support_.AddEntriesFrom(input, _repeated_support_codec);
7881 break;
7883 case 18:
7884 case 16: {
7885 cycleSizes_.AddEntriesFrom(input, _repeated_cycleSizes_codec);
7886 break;
7887 }
7888 }
7889 }
7890 #endif
7891 }
7892
7893 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7895 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7896 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7897 uint tag;
7898 while ((tag = input.ReadTag()) != 0) {
7899 switch(tag) {
7900 default:
7901 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7902 break;
7903 case 10:
7904 case 8: {
7905 support_.AddEntriesFrom(ref input, _repeated_support_codec);
7906 break;
7907 }
7908 case 18:
7909 case 16: {
7910 cycleSizes_.AddEntriesFrom(ref input, _repeated_cycleSizes_codec);
7911 break;
7912 }
7913 }
7914 }
7915 }
7916 #endif
7917
7918 }
7919
7924 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7925 public sealed partial class DenseMatrixProto : pb::IMessage<DenseMatrixProto>
7926 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7927 , pb::IBufferMessage
7928 #endif
7929 {
7930 private static readonly pb::MessageParser<DenseMatrixProto> _parser = new pb::MessageParser<DenseMatrixProto>(() => new DenseMatrixProto());
7931 private pb::UnknownFieldSet _unknownFields;
7932 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7933 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7934 public static pb::MessageParser<DenseMatrixProto> Parser { get { return _parser; } }
7935
7936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7937 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7938 public static pbr::MessageDescriptor Descriptor {
7939 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[24]; }
7940 }
7941
7942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7943 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7944 pbr::MessageDescriptor pb::IMessage.Descriptor {
7945 get { return Descriptor; }
7946 }
7947
7948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7949 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7950 public DenseMatrixProto() {
7951 OnConstruction();
7952 }
7953
7954 partial void OnConstruction();
7955
7956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7958 public DenseMatrixProto(DenseMatrixProto other) : this() {
7959 numRows_ = other.numRows_;
7960 numCols_ = other.numCols_;
7961 entries_ = other.entries_.Clone();
7962 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7963 }
7964
7965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7967 public DenseMatrixProto Clone() {
7968 return new DenseMatrixProto(this);
7969 }
7970
7972 public const int NumRowsFieldNumber = 1;
7973 private int numRows_;
7974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7975 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7976 public int NumRows {
7977 get { return numRows_; }
7978 set {
7979 numRows_ = value;
7980 }
7981 }
7982
7984 public const int NumColsFieldNumber = 2;
7985 private int numCols_;
7986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7987 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7988 public int NumCols {
7989 get { return numCols_; }
7990 set {
7991 numCols_ = value;
7992 }
7993 }
7994
7996 public const int EntriesFieldNumber = 3;
7997 private static readonly pb::FieldCodec<int> _repeated_entries_codec
7998 = pb::FieldCodec.ForInt32(26);
7999 private readonly pbc::RepeatedField<int> entries_ = new pbc::RepeatedField<int>();
8000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8001 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8002 public pbc::RepeatedField<int> Entries {
8003 get { return entries_; }
8005
8006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8008 public override bool Equals(object other) {
8009 return Equals(other as DenseMatrixProto);
8010 }
8011
8012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8014 public bool Equals(DenseMatrixProto other) {
8015 if (ReferenceEquals(other, null)) {
8016 return false;
8017 }
8018 if (ReferenceEquals(other, this)) {
8019 return true;
8020 }
8021 if (NumRows != other.NumRows) return false;
8022 if (NumCols != other.NumCols) return false;
8023 if(!entries_.Equals(other.entries_)) return false;
8024 return Equals(_unknownFields, other._unknownFields);
8026
8027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8029 public override int GetHashCode() {
8030 int hash = 1;
8031 if (NumRows != 0) hash ^= NumRows.GetHashCode();
8032 if (NumCols != 0) hash ^= NumCols.GetHashCode();
8033 hash ^= entries_.GetHashCode();
8034 if (_unknownFields != null) {
8035 hash ^= _unknownFields.GetHashCode();
8036 }
8037 return hash;
8038 }
8040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8041 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8042 public override string ToString() {
8043 return pb::JsonFormatter.ToDiagnosticString(this);
8044 }
8046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8048 public void WriteTo(pb::CodedOutputStream output) {
8049 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8050 output.WriteRawMessage(this);
8051 #else
8052 if (NumRows != 0) {
8053 output.WriteRawTag(8);
8054 output.WriteInt32(NumRows);
8055 }
8056 if (NumCols != 0) {
8057 output.WriteRawTag(16);
8058 output.WriteInt32(NumCols);
8059 }
8060 entries_.WriteTo(output, _repeated_entries_codec);
8061 if (_unknownFields != null) {
8062 _unknownFields.WriteTo(output);
8063 }
8064 #endif
8065 }
8067 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8069 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8070 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8071 if (NumRows != 0) {
8072 output.WriteRawTag(8);
8073 output.WriteInt32(NumRows);
8074 }
8075 if (NumCols != 0) {
8076 output.WriteRawTag(16);
8077 output.WriteInt32(NumCols);
8078 }
8079 entries_.WriteTo(ref output, _repeated_entries_codec);
8080 if (_unknownFields != null) {
8081 _unknownFields.WriteTo(ref output);
8082 }
8083 }
8084 #endif
8086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8087 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8088 public int CalculateSize() {
8089 int size = 0;
8090 if (NumRows != 0) {
8091 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumRows);
8092 }
8093 if (NumCols != 0) {
8094 size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumCols);
8095 }
8096 size += entries_.CalculateSize(_repeated_entries_codec);
8097 if (_unknownFields != null) {
8098 size += _unknownFields.CalculateSize();
8099 }
8100 return size;
8101 }
8102
8103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8105 public void MergeFrom(DenseMatrixProto other) {
8106 if (other == null) {
8107 return;
8108 }
8109 if (other.NumRows != 0) {
8110 NumRows = other.NumRows;
8111 }
8112 if (other.NumCols != 0) {
8113 NumCols = other.NumCols;
8114 }
8115 entries_.Add(other.entries_);
8116 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8117 }
8118
8119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8121 public void MergeFrom(pb::CodedInputStream input) {
8122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8123 input.ReadRawMessage(this);
8124 #else
8125 uint tag;
8126 while ((tag = input.ReadTag()) != 0) {
8127 switch(tag) {
8128 default:
8129 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8130 break;
8131 case 8: {
8132 NumRows = input.ReadInt32();
8133 break;
8134 }
8135 case 16: {
8136 NumCols = input.ReadInt32();
8137 break;
8138 }
8139 case 26:
8140 case 24: {
8141 entries_.AddEntriesFrom(input, _repeated_entries_codec);
8142 break;
8143 }
8144 }
8145 }
8146 #endif
8147 }
8148
8149 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8152 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8153 uint tag;
8154 while ((tag = input.ReadTag()) != 0) {
8155 switch(tag) {
8156 default:
8157 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8158 break;
8159 case 8: {
8160 NumRows = input.ReadInt32();
8161 break;
8162 }
8163 case 16: {
8164 NumCols = input.ReadInt32();
8165 break;
8166 }
8167 case 26:
8168 case 24: {
8169 entries_.AddEntriesFrom(ref input, _repeated_entries_codec);
8170 break;
8171 }
8172 }
8173 }
8174 }
8175 #endif
8176
8177 }
8178
8193 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8194 public sealed partial class SymmetryProto : pb::IMessage<SymmetryProto>
8195 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8196 , pb::IBufferMessage
8197 #endif
8198 {
8199 private static readonly pb::MessageParser<SymmetryProto> _parser = new pb::MessageParser<SymmetryProto>(() => new SymmetryProto());
8200 private pb::UnknownFieldSet _unknownFields;
8201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8202 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8203 public static pb::MessageParser<SymmetryProto> Parser { get { return _parser; } }
8204
8205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8206 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8207 public static pbr::MessageDescriptor Descriptor {
8208 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[25]; }
8209 }
8210
8211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8212 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8213 pbr::MessageDescriptor pb::IMessage.Descriptor {
8214 get { return Descriptor; }
8215 }
8216
8217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8218 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8219 public SymmetryProto() {
8220 OnConstruction();
8221 }
8222
8223 partial void OnConstruction();
8224
8225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8226 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8227 public SymmetryProto(SymmetryProto other) : this() {
8228 permutations_ = other.permutations_.Clone();
8229 orbitopes_ = other.orbitopes_.Clone();
8230 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8231 }
8232
8233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8234 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8235 public SymmetryProto Clone() {
8236 return new SymmetryProto(this);
8237 }
8238
8240 public const int PermutationsFieldNumber = 1;
8241 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.SparsePermutationProto> _repeated_permutations_codec
8242 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.Sat.SparsePermutationProto.Parser);
8243 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.SparsePermutationProto> permutations_ = new pbc::RepeatedField<global::Google.OrTools.Sat.SparsePermutationProto>();
8249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8250 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8251 public pbc::RepeatedField<global::Google.OrTools.Sat.SparsePermutationProto> Permutations {
8252 get { return permutations_; }
8253 }
8254
8256 public const int OrbitopesFieldNumber = 2;
8257 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.DenseMatrixProto> _repeated_orbitopes_codec
8258 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.Sat.DenseMatrixProto.Parser);
8259 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.DenseMatrixProto> orbitopes_ = new pbc::RepeatedField<global::Google.OrTools.Sat.DenseMatrixProto>();
8271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8272 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8273 public pbc::RepeatedField<global::Google.OrTools.Sat.DenseMatrixProto> Orbitopes {
8274 get { return orbitopes_; }
8276
8277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8278 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8279 public override bool Equals(object other) {
8280 return Equals(other as SymmetryProto);
8281 }
8282
8283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8284 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8285 public bool Equals(SymmetryProto other) {
8286 if (ReferenceEquals(other, null)) {
8287 return false;
8288 }
8289 if (ReferenceEquals(other, this)) {
8290 return true;
8292 if(!permutations_.Equals(other.permutations_)) return false;
8293 if(!orbitopes_.Equals(other.orbitopes_)) return false;
8294 return Equals(_unknownFields, other._unknownFields);
8295 }
8297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8298 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8299 public override int GetHashCode() {
8300 int hash = 1;
8301 hash ^= permutations_.GetHashCode();
8302 hash ^= orbitopes_.GetHashCode();
8303 if (_unknownFields != null) {
8304 hash ^= _unknownFields.GetHashCode();
8305 }
8306 return hash;
8307 }
8308
8309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8310 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8311 public override string ToString() {
8312 return pb::JsonFormatter.ToDiagnosticString(this);
8313 }
8315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8316 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8317 public void WriteTo(pb::CodedOutputStream output) {
8318 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8319 output.WriteRawMessage(this);
8320 #else
8321 permutations_.WriteTo(output, _repeated_permutations_codec);
8322 orbitopes_.WriteTo(output, _repeated_orbitopes_codec);
8323 if (_unknownFields != null) {
8324 _unknownFields.WriteTo(output);
8325 }
8326 #endif
8327 }
8328
8329 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8331 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8332 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8333 permutations_.WriteTo(ref output, _repeated_permutations_codec);
8334 orbitopes_.WriteTo(ref output, _repeated_orbitopes_codec);
8335 if (_unknownFields != null) {
8336 _unknownFields.WriteTo(ref output);
8337 }
8338 }
8339 #endif
8341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8342 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8343 public int CalculateSize() {
8344 int size = 0;
8345 size += permutations_.CalculateSize(_repeated_permutations_codec);
8346 size += orbitopes_.CalculateSize(_repeated_orbitopes_codec);
8347 if (_unknownFields != null) {
8348 size += _unknownFields.CalculateSize();
8349 }
8350 return size;
8351 }
8353 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8354 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8355 public void MergeFrom(SymmetryProto other) {
8356 if (other == null) {
8357 return;
8359 permutations_.Add(other.permutations_);
8360 orbitopes_.Add(other.orbitopes_);
8361 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8362 }
8363
8364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8366 public void MergeFrom(pb::CodedInputStream input) {
8367 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8368 input.ReadRawMessage(this);
8369 #else
8370 uint tag;
8371 while ((tag = input.ReadTag()) != 0) {
8372 switch(tag) {
8373 default:
8374 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8375 break;
8376 case 10: {
8377 permutations_.AddEntriesFrom(input, _repeated_permutations_codec);
8378 break;
8379 }
8380 case 18: {
8381 orbitopes_.AddEntriesFrom(input, _repeated_orbitopes_codec);
8382 break;
8383 }
8385 }
8386 #endif
8387 }
8388
8389 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8391 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8392 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8393 uint tag;
8394 while ((tag = input.ReadTag()) != 0) {
8395 switch(tag) {
8396 default:
8397 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8398 break;
8399 case 10: {
8400 permutations_.AddEntriesFrom(ref input, _repeated_permutations_codec);
8401 break;
8402 }
8403 case 18: {
8404 orbitopes_.AddEntriesFrom(ref input, _repeated_orbitopes_codec);
8405 break;
8406 }
8408 }
8409 }
8410 #endif
8411
8412 }
8413
8417 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8418 public sealed partial class CpModelProto : pb::IMessage<CpModelProto>
8419 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8420 , pb::IBufferMessage
8421 #endif
8422 {
8423 private static readonly pb::MessageParser<CpModelProto> _parser = new pb::MessageParser<CpModelProto>(() => new CpModelProto());
8424 private pb::UnknownFieldSet _unknownFields;
8425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8426 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8427 public static pb::MessageParser<CpModelProto> Parser { get { return _parser; } }
8428
8429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8431 public static pbr::MessageDescriptor Descriptor {
8432 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[26]; }
8433 }
8434
8435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8436 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8437 pbr::MessageDescriptor pb::IMessage.Descriptor {
8438 get { return Descriptor; }
8439 }
8440
8441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8442 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8443 public CpModelProto() {
8444 OnConstruction();
8445 }
8446
8447 partial void OnConstruction();
8448
8449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8451 public CpModelProto(CpModelProto other) : this() {
8452 name_ = other.name_;
8453 variables_ = other.variables_.Clone();
8454 constraints_ = other.constraints_.Clone();
8455 objective_ = other.objective_ != null ? other.objective_.Clone() : null;
8456 floatingPointObjective_ = other.floatingPointObjective_ != null ? other.floatingPointObjective_.Clone() : null;
8457 searchStrategy_ = other.searchStrategy_.Clone();
8458 solutionHint_ = other.solutionHint_ != null ? other.solutionHint_.Clone() : null;
8459 assumptions_ = other.assumptions_.Clone();
8460 symmetry_ = other.symmetry_ != null ? other.symmetry_.Clone() : null;
8461 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8462 }
8463
8464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8465 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8466 public CpModelProto Clone() {
8467 return new CpModelProto(this);
8469
8471 public const int NameFieldNumber = 1;
8472 private string name_ = "";
8476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8477 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8478 public string Name {
8479 get { return name_; }
8480 set {
8481 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
8482 }
8483 }
8486 public const int VariablesFieldNumber = 2;
8487 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.IntegerVariableProto> _repeated_variables_codec
8488 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.Sat.IntegerVariableProto.Parser);
8489 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> variables_ = new pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto>();
8493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8494 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8495 public pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> Variables {
8496 get { return variables_; }
8497 }
8498
8500 public const int ConstraintsFieldNumber = 3;
8501 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.ConstraintProto> _repeated_constraints_codec
8502 = pb::FieldCodec.ForMessage(26, global::Google.OrTools.Sat.ConstraintProto.Parser);
8503 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.ConstraintProto> constraints_ = new pbc::RepeatedField<global::Google.OrTools.Sat.ConstraintProto>();
8504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8505 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8506 public pbc::RepeatedField<global::Google.OrTools.Sat.ConstraintProto> Constraints {
8507 get { return constraints_; }
8508 }
8509
8511 public const int ObjectiveFieldNumber = 4;
8512 private global::Google.OrTools.Sat.CpObjectiveProto objective_;
8516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8517 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8518 public global::Google.OrTools.Sat.CpObjectiveProto Objective {
8519 get { return objective_; }
8520 set {
8521 objective_ = value;
8522 }
8523 }
8524
8526 public const int FloatingPointObjectiveFieldNumber = 9;
8527 private global::Google.OrTools.Sat.FloatObjectiveProto floatingPointObjective_;
8543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8544 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8545 public global::Google.OrTools.Sat.FloatObjectiveProto FloatingPointObjective {
8546 get { return floatingPointObjective_; }
8547 set {
8548 floatingPointObjective_ = value;
8549 }
8550 }
8551
8553 public const int SearchStrategyFieldNumber = 5;
8554 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.DecisionStrategyProto> _repeated_searchStrategy_codec
8555 = pb::FieldCodec.ForMessage(42, global::Google.OrTools.Sat.DecisionStrategyProto.Parser);
8556 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto> searchStrategy_ = new pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto>();
8568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8569 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8570 public pbc::RepeatedField<global::Google.OrTools.Sat.DecisionStrategyProto> SearchStrategy {
8571 get { return searchStrategy_; }
8572 }
8573
8575 public const int SolutionHintFieldNumber = 6;
8576 private global::Google.OrTools.Sat.PartialVariableAssignment solutionHint_;
8590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8591 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8592 public global::Google.OrTools.Sat.PartialVariableAssignment SolutionHint {
8593 get { return solutionHint_; }
8594 set {
8595 solutionHint_ = value;
8597 }
8598
8600 public const int AssumptionsFieldNumber = 7;
8601 private static readonly pb::FieldCodec<int> _repeated_assumptions_codec
8602 = pb::FieldCodec.ForInt32(58);
8603 private readonly pbc::RepeatedField<int> assumptions_ = new pbc::RepeatedField<int>();
8619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8620 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8621 public pbc::RepeatedField<int> Assumptions {
8622 get { return assumptions_; }
8623 }
8624
8626 public const int SymmetryFieldNumber = 8;
8627 private global::Google.OrTools.Sat.SymmetryProto symmetry_;
8635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8637 public global::Google.OrTools.Sat.SymmetryProto Symmetry {
8638 get { return symmetry_; }
8639 set {
8640 symmetry_ = value;
8641 }
8642 }
8643
8644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8645 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8646 public override bool Equals(object other) {
8647 return Equals(other as CpModelProto);
8648 }
8649
8650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8651 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8652 public bool Equals(CpModelProto other) {
8653 if (ReferenceEquals(other, null)) {
8654 return false;
8655 }
8656 if (ReferenceEquals(other, this)) {
8657 return true;
8658 }
8659 if (Name != other.Name) return false;
8660 if(!variables_.Equals(other.variables_)) return false;
8661 if(!constraints_.Equals(other.constraints_)) return false;
8662 if (!object.Equals(Objective, other.Objective)) return false;
8663 if (!object.Equals(FloatingPointObjective, other.FloatingPointObjective)) return false;
8664 if(!searchStrategy_.Equals(other.searchStrategy_)) return false;
8665 if (!object.Equals(SolutionHint, other.SolutionHint)) return false;
8666 if(!assumptions_.Equals(other.assumptions_)) return false;
8667 if (!object.Equals(Symmetry, other.Symmetry)) return false;
8668 return Equals(_unknownFields, other._unknownFields);
8670
8671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8673 public override int GetHashCode() {
8674 int hash = 1;
8675 if (Name.Length != 0) hash ^= Name.GetHashCode();
8676 hash ^= variables_.GetHashCode();
8677 hash ^= constraints_.GetHashCode();
8678 if (objective_ != null) hash ^= Objective.GetHashCode();
8679 if (floatingPointObjective_ != null) hash ^= FloatingPointObjective.GetHashCode();
8680 hash ^= searchStrategy_.GetHashCode();
8681 if (solutionHint_ != null) hash ^= SolutionHint.GetHashCode();
8682 hash ^= assumptions_.GetHashCode();
8683 if (symmetry_ != null) hash ^= Symmetry.GetHashCode();
8684 if (_unknownFields != null) {
8685 hash ^= _unknownFields.GetHashCode();
8687 return hash;
8688 }
8689
8690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8691 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8692 public override string ToString() {
8693 return pb::JsonFormatter.ToDiagnosticString(this);
8694 }
8696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8697 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8698 public void WriteTo(pb::CodedOutputStream output) {
8699 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8700 output.WriteRawMessage(this);
8701 #else
8702 if (Name.Length != 0) {
8703 output.WriteRawTag(10);
8704 output.WriteString(Name);
8705 }
8706 variables_.WriteTo(output, _repeated_variables_codec);
8707 constraints_.WriteTo(output, _repeated_constraints_codec);
8708 if (objective_ != null) {
8709 output.WriteRawTag(34);
8710 output.WriteMessage(Objective);
8711 }
8712 searchStrategy_.WriteTo(output, _repeated_searchStrategy_codec);
8713 if (solutionHint_ != null) {
8714 output.WriteRawTag(50);
8715 output.WriteMessage(SolutionHint);
8716 }
8717 assumptions_.WriteTo(output, _repeated_assumptions_codec);
8718 if (symmetry_ != null) {
8719 output.WriteRawTag(66);
8720 output.WriteMessage(Symmetry);
8721 }
8722 if (floatingPointObjective_ != null) {
8723 output.WriteRawTag(74);
8724 output.WriteMessage(FloatingPointObjective);
8725 }
8726 if (_unknownFields != null) {
8727 _unknownFields.WriteTo(output);
8728 }
8729 #endif
8730 }
8731
8732 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8733 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8734 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8735 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8736 if (Name.Length != 0) {
8737 output.WriteRawTag(10);
8738 output.WriteString(Name);
8739 }
8740 variables_.WriteTo(ref output, _repeated_variables_codec);
8741 constraints_.WriteTo(ref output, _repeated_constraints_codec);
8742 if (objective_ != null) {
8743 output.WriteRawTag(34);
8744 output.WriteMessage(Objective);
8745 }
8746 searchStrategy_.WriteTo(ref output, _repeated_searchStrategy_codec);
8747 if (solutionHint_ != null) {
8748 output.WriteRawTag(50);
8749 output.WriteMessage(SolutionHint);
8750 }
8751 assumptions_.WriteTo(ref output, _repeated_assumptions_codec);
8752 if (symmetry_ != null) {
8753 output.WriteRawTag(66);
8754 output.WriteMessage(Symmetry);
8755 }
8756 if (floatingPointObjective_ != null) {
8757 output.WriteRawTag(74);
8758 output.WriteMessage(FloatingPointObjective);
8759 }
8760 if (_unknownFields != null) {
8761 _unknownFields.WriteTo(ref output);
8762 }
8763 }
8764 #endif
8765
8766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8768 public int CalculateSize() {
8769 int size = 0;
8770 if (Name.Length != 0) {
8771 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
8772 }
8773 size += variables_.CalculateSize(_repeated_variables_codec);
8774 size += constraints_.CalculateSize(_repeated_constraints_codec);
8775 if (objective_ != null) {
8776 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Objective);
8777 }
8778 if (floatingPointObjective_ != null) {
8779 size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatingPointObjective);
8780 }
8781 size += searchStrategy_.CalculateSize(_repeated_searchStrategy_codec);
8782 if (solutionHint_ != null) {
8783 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SolutionHint);
8784 }
8785 size += assumptions_.CalculateSize(_repeated_assumptions_codec);
8786 if (symmetry_ != null) {
8787 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Symmetry);
8788 }
8789 if (_unknownFields != null) {
8790 size += _unknownFields.CalculateSize();
8791 }
8792 return size;
8793 }
8794
8795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8796 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8797 public void MergeFrom(CpModelProto other) {
8798 if (other == null) {
8799 return;
8800 }
8801 if (other.Name.Length != 0) {
8802 Name = other.Name;
8803 }
8804 variables_.Add(other.variables_);
8805 constraints_.Add(other.constraints_);
8806 if (other.objective_ != null) {
8807 if (objective_ == null) {
8808 Objective = new global::Google.OrTools.Sat.CpObjectiveProto();
8809 }
8810 Objective.MergeFrom(other.Objective);
8811 }
8812 if (other.floatingPointObjective_ != null) {
8813 if (floatingPointObjective_ == null) {
8814 FloatingPointObjective = new global::Google.OrTools.Sat.FloatObjectiveProto();
8815 }
8816 FloatingPointObjective.MergeFrom(other.FloatingPointObjective);
8818 searchStrategy_.Add(other.searchStrategy_);
8819 if (other.solutionHint_ != null) {
8820 if (solutionHint_ == null) {
8821 SolutionHint = new global::Google.OrTools.Sat.PartialVariableAssignment();
8822 }
8823 SolutionHint.MergeFrom(other.SolutionHint);
8824 }
8825 assumptions_.Add(other.assumptions_);
8826 if (other.symmetry_ != null) {
8827 if (symmetry_ == null) {
8828 Symmetry = new global::Google.OrTools.Sat.SymmetryProto();
8829 }
8830 Symmetry.MergeFrom(other.Symmetry);
8831 }
8832 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8833 }
8834
8835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8836 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8837 public void MergeFrom(pb::CodedInputStream input) {
8838 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8839 input.ReadRawMessage(this);
8840 #else
8841 uint tag;
8842 while ((tag = input.ReadTag()) != 0) {
8843 switch(tag) {
8844 default:
8845 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8846 break;
8847 case 10: {
8848 Name = input.ReadString();
8849 break;
8850 }
8851 case 18: {
8852 variables_.AddEntriesFrom(input, _repeated_variables_codec);
8853 break;
8854 }
8855 case 26: {
8856 constraints_.AddEntriesFrom(input, _repeated_constraints_codec);
8857 break;
8858 }
8859 case 34: {
8860 if (objective_ == null) {
8861 Objective = new global::Google.OrTools.Sat.CpObjectiveProto();
8862 }
8863 input.ReadMessage(Objective);
8864 break;
8865 }
8866 case 42: {
8867 searchStrategy_.AddEntriesFrom(input, _repeated_searchStrategy_codec);
8868 break;
8869 }
8870 case 50: {
8871 if (solutionHint_ == null) {
8872 SolutionHint = new global::Google.OrTools.Sat.PartialVariableAssignment();
8873 }
8874 input.ReadMessage(SolutionHint);
8875 break;
8876 }
8877 case 58:
8878 case 56: {
8879 assumptions_.AddEntriesFrom(input, _repeated_assumptions_codec);
8880 break;
8881 }
8882 case 66: {
8883 if (symmetry_ == null) {
8884 Symmetry = new global::Google.OrTools.Sat.SymmetryProto();
8885 }
8886 input.ReadMessage(Symmetry);
8887 break;
8888 }
8889 case 74: {
8890 if (floatingPointObjective_ == null) {
8891 FloatingPointObjective = new global::Google.OrTools.Sat.FloatObjectiveProto();
8892 }
8893 input.ReadMessage(FloatingPointObjective);
8894 break;
8895 }
8896 }
8897 }
8898 #endif
8899 }
8900
8901 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8903 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8904 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8905 uint tag;
8906 while ((tag = input.ReadTag()) != 0) {
8907 switch(tag) {
8908 default:
8909 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8910 break;
8911 case 10: {
8912 Name = input.ReadString();
8913 break;
8914 }
8915 case 18: {
8916 variables_.AddEntriesFrom(ref input, _repeated_variables_codec);
8917 break;
8918 }
8919 case 26: {
8920 constraints_.AddEntriesFrom(ref input, _repeated_constraints_codec);
8921 break;
8922 }
8923 case 34: {
8924 if (objective_ == null) {
8925 Objective = new global::Google.OrTools.Sat.CpObjectiveProto();
8926 }
8927 input.ReadMessage(Objective);
8928 break;
8929 }
8930 case 42: {
8931 searchStrategy_.AddEntriesFrom(ref input, _repeated_searchStrategy_codec);
8932 break;
8933 }
8934 case 50: {
8935 if (solutionHint_ == null) {
8936 SolutionHint = new global::Google.OrTools.Sat.PartialVariableAssignment();
8937 }
8938 input.ReadMessage(SolutionHint);
8939 break;
8940 }
8941 case 58:
8942 case 56: {
8943 assumptions_.AddEntriesFrom(ref input, _repeated_assumptions_codec);
8944 break;
8945 }
8946 case 66: {
8947 if (symmetry_ == null) {
8948 Symmetry = new global::Google.OrTools.Sat.SymmetryProto();
8949 }
8950 input.ReadMessage(Symmetry);
8951 break;
8952 }
8953 case 74: {
8954 if (floatingPointObjective_ == null) {
8955 FloatingPointObjective = new global::Google.OrTools.Sat.FloatObjectiveProto();
8956 }
8957 input.ReadMessage(FloatingPointObjective);
8958 break;
8959 }
8960 }
8961 }
8962 }
8963 #endif
8964
8965 }
8966
8971 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8972 public sealed partial class CpSolverSolution : pb::IMessage<CpSolverSolution>
8973 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8974 , pb::IBufferMessage
8975 #endif
8976 {
8977 private static readonly pb::MessageParser<CpSolverSolution> _parser = new pb::MessageParser<CpSolverSolution>(() => new CpSolverSolution());
8978 private pb::UnknownFieldSet _unknownFields;
8979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8980 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8981 public static pb::MessageParser<CpSolverSolution> Parser { get { return _parser; } }
8982
8983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8984 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8985 public static pbr::MessageDescriptor Descriptor {
8986 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[27]; }
8987 }
8988
8989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8991 pbr::MessageDescriptor pb::IMessage.Descriptor {
8992 get { return Descriptor; }
8993 }
8994
8995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8996 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8997 public CpSolverSolution() {
8998 OnConstruction();
8999 }
9000
9001 partial void OnConstruction();
9002
9003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9005 public CpSolverSolution(CpSolverSolution other) : this() {
9006 values_ = other.values_.Clone();
9007 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9008 }
9009
9010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9012 public CpSolverSolution Clone() {
9013 return new CpSolverSolution(this);
9014 }
9015
9017 public const int ValuesFieldNumber = 1;
9018 private static readonly pb::FieldCodec<long> _repeated_values_codec
9019 = pb::FieldCodec.ForInt64(10);
9020 private readonly pbc::RepeatedField<long> values_ = new pbc::RepeatedField<long>();
9021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9022 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9023 public pbc::RepeatedField<long> Values {
9024 get { return values_; }
9025 }
9026
9027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9028 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9029 public override bool Equals(object other) {
9030 return Equals(other as CpSolverSolution);
9031 }
9032
9033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9034 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9035 public bool Equals(CpSolverSolution other) {
9036 if (ReferenceEquals(other, null)) {
9037 return false;
9038 }
9039 if (ReferenceEquals(other, this)) {
9040 return true;
9041 }
9042 if(!values_.Equals(other.values_)) return false;
9043 return Equals(_unknownFields, other._unknownFields);
9044 }
9045
9046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9047 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9048 public override int GetHashCode() {
9049 int hash = 1;
9050 hash ^= values_.GetHashCode();
9051 if (_unknownFields != null) {
9052 hash ^= _unknownFields.GetHashCode();
9053 }
9054 return hash;
9055 }
9056
9057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9058 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9059 public override string ToString() {
9060 return pb::JsonFormatter.ToDiagnosticString(this);
9062
9063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9064 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9065 public void WriteTo(pb::CodedOutputStream output) {
9066 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9067 output.WriteRawMessage(this);
9068 #else
9069 values_.WriteTo(output, _repeated_values_codec);
9070 if (_unknownFields != null) {
9071 _unknownFields.WriteTo(output);
9073 #endif
9074 }
9075
9076 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9078 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9079 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9080 values_.WriteTo(ref output, _repeated_values_codec);
9081 if (_unknownFields != null) {
9082 _unknownFields.WriteTo(ref output);
9083 }
9085 #endif
9086
9087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9088 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9089 public int CalculateSize() {
9090 int size = 0;
9091 size += values_.CalculateSize(_repeated_values_codec);
9092 if (_unknownFields != null) {
9093 size += _unknownFields.CalculateSize();
9094 }
9095 return size;
9096 }
9098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9099 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9100 public void MergeFrom(CpSolverSolution other) {
9101 if (other == null) {
9102 return;
9103 }
9104 values_.Add(other.values_);
9105 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9106 }
9107
9108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9110 public void MergeFrom(pb::CodedInputStream input) {
9111 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9112 input.ReadRawMessage(this);
9113 #else
9114 uint tag;
9115 while ((tag = input.ReadTag()) != 0) {
9116 switch(tag) {
9117 default:
9118 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9119 break;
9120 case 10:
9121 case 8: {
9122 values_.AddEntriesFrom(input, _repeated_values_codec);
9123 break;
9124 }
9125 }
9126 }
9127 #endif
9128 }
9129
9130 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9132 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9133 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9134 uint tag;
9135 while ((tag = input.ReadTag()) != 0) {
9136 switch(tag) {
9137 default:
9138 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9139 break;
9140 case 10:
9141 case 8: {
9142 values_.AddEntriesFrom(ref input, _repeated_values_codec);
9143 break;
9144 }
9145 }
9146 }
9147 }
9148 #endif
9150 }
9151
9157 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
9158 public sealed partial class CpSolverResponse : pb::IMessage<CpSolverResponse>
9159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9160 , pb::IBufferMessage
9161 #endif
9162 {
9163 private static readonly pb::MessageParser<CpSolverResponse> _parser = new pb::MessageParser<CpSolverResponse>(() => new CpSolverResponse());
9164 private pb::UnknownFieldSet _unknownFields;
9165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9167 public static pb::MessageParser<CpSolverResponse> Parser { get { return _parser; } }
9168
9169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9170 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9171 public static pbr::MessageDescriptor Descriptor {
9172 get { return global::Google.OrTools.Sat.CpModelReflection.Descriptor.MessageTypes[28]; }
9173 }
9174
9175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9176 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9177 pbr::MessageDescriptor pb::IMessage.Descriptor {
9178 get { return Descriptor; }
9179 }
9180
9181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9182 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9183 public CpSolverResponse() {
9184 OnConstruction();
9185 }
9186
9187 partial void OnConstruction();
9188
9189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9190 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9191 public CpSolverResponse(CpSolverResponse other) : this() {
9192 status_ = other.status_;
9193 solution_ = other.solution_.Clone();
9194 objectiveValue_ = other.objectiveValue_;
9195 bestObjectiveBound_ = other.bestObjectiveBound_;
9196 additionalSolutions_ = other.additionalSolutions_.Clone();
9197 tightenedVariables_ = other.tightenedVariables_.Clone();
9198 sufficientAssumptionsForInfeasibility_ = other.sufficientAssumptionsForInfeasibility_.Clone();
9199 integerObjective_ = other.integerObjective_ != null ? other.integerObjective_.Clone() : null;
9200 innerObjectiveLowerBound_ = other.innerObjectiveLowerBound_;
9201 numIntegers_ = other.numIntegers_;
9202 numBooleans_ = other.numBooleans_;
9203 numConflicts_ = other.numConflicts_;
9204 numBranches_ = other.numBranches_;
9205 numBinaryPropagations_ = other.numBinaryPropagations_;
9206 numIntegerPropagations_ = other.numIntegerPropagations_;
9207 numRestarts_ = other.numRestarts_;
9208 numLpIterations_ = other.numLpIterations_;
9209 wallTime_ = other.wallTime_;
9210 userTime_ = other.userTime_;
9211 deterministicTime_ = other.deterministicTime_;
9212 gapIntegral_ = other.gapIntegral_;
9213 solutionInfo_ = other.solutionInfo_;
9214 solveLog_ = other.solveLog_;
9215 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9216 }
9218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9219 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9220 public CpSolverResponse Clone() {
9221 return new CpSolverResponse(this);
9222 }
9223
9225 public const int StatusFieldNumber = 1;
9226 private global::Google.OrTools.Sat.CpSolverStatus status_ = global::Google.OrTools.Sat.CpSolverStatus.Unknown;
9230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9232 public global::Google.OrTools.Sat.CpSolverStatus Status {
9233 get { return status_; }
9234 set {
9235 status_ = value;
9236 }
9237 }
9238
9240 public const int SolutionFieldNumber = 2;
9241 private static readonly pb::FieldCodec<long> _repeated_solution_codec
9242 = pb::FieldCodec.ForInt64(18);
9243 private readonly pbc::RepeatedField<long> solution_ = new pbc::RepeatedField<long>();
9250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9251 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9252 public pbc::RepeatedField<long> Solution {
9253 get { return solution_; }
9254 }
9255
9257 public const int ObjectiveValueFieldNumber = 3;
9258 private double objectiveValue_;
9265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9266 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9267 public double ObjectiveValue {
9268 get { return objectiveValue_; }
9269 set {
9270 objectiveValue_ = value;
9271 }
9272 }
9273
9275 public const int BestObjectiveBoundFieldNumber = 4;
9276 private double bestObjectiveBound_;
9282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9283 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9284 public double BestObjectiveBound {
9285 get { return bestObjectiveBound_; }
9286 set {
9287 bestObjectiveBound_ = value;
9288 }
9289 }
9292 public const int AdditionalSolutionsFieldNumber = 27;
9293 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.CpSolverSolution> _repeated_additionalSolutions_codec
9294 = pb::FieldCodec.ForMessage(218, global::Google.OrTools.Sat.CpSolverSolution.Parser);
9295 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.CpSolverSolution> additionalSolutions_ = new pbc::RepeatedField<global::Google.OrTools.Sat.CpSolverSolution>();
9304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9306 public pbc::RepeatedField<global::Google.OrTools.Sat.CpSolverSolution> AdditionalSolutions {
9307 get { return additionalSolutions_; }
9308 }
9309
9311 public const int TightenedVariablesFieldNumber = 21;
9312 private static readonly pb::FieldCodec<global::Google.OrTools.Sat.IntegerVariableProto> _repeated_tightenedVariables_codec
9313 = pb::FieldCodec.ForMessage(170, global::Google.OrTools.Sat.IntegerVariableProto.Parser);
9314 private readonly pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> tightenedVariables_ = new pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto>();
9333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9334 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9335 public pbc::RepeatedField<global::Google.OrTools.Sat.IntegerVariableProto> TightenedVariables {
9336 get { return tightenedVariables_; }
9337 }
9338
9340 public const int SufficientAssumptionsForInfeasibilityFieldNumber = 23;
9341 private static readonly pb::FieldCodec<int> _repeated_sufficientAssumptionsForInfeasibility_codec
9342 = pb::FieldCodec.ForInt32(186);
9343 private readonly pbc::RepeatedField<int> sufficientAssumptionsForInfeasibility_ = new pbc::RepeatedField<int>();
9365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9366 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9367 public pbc::RepeatedField<int> SufficientAssumptionsForInfeasibility {
9368 get { return sufficientAssumptionsForInfeasibility_; }
9369 }
9370
9372 public const int IntegerObjectiveFieldNumber = 28;
9373 private global::Google.OrTools.Sat.CpObjectiveProto integerObjective_;
9379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9380 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9381 public global::Google.OrTools.Sat.CpObjectiveProto IntegerObjective {
9382 get { return integerObjective_; }
9383 set {
9384 integerObjective_ = value;
9385 }
9386 }
9387
9389 public const int InnerObjectiveLowerBoundFieldNumber = 29;
9390 private long innerObjectiveLowerBound_;
9399 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9400 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9401 public long InnerObjectiveLowerBound {
9402 get { return innerObjectiveLowerBound_; }
9403 set {
9404 innerObjectiveLowerBound_ = value;
9405 }
9406 }
9407
9409 public const int NumIntegersFieldNumber = 30;
9410 private long numIntegers_;
9418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9419 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9420 public long NumIntegers {
9421 get { return numIntegers_; }
9422 set {
9423 numIntegers_ = value;
9424 }
9426
9428 public const int NumBooleansFieldNumber = 10;
9429 private long numBooleans_;
9430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9431 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9432 public long NumBooleans {
9433 get { return numBooleans_; }
9434 set {
9435 numBooleans_ = value;
9436 }
9437 }
9438
9440 public const int NumConflictsFieldNumber = 11;
9441 private long numConflicts_;
9442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9443 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9444 public long NumConflicts {
9445 get { return numConflicts_; }
9446 set {
9447 numConflicts_ = value;
9448 }
9449 }
9450
9452 public const int NumBranchesFieldNumber = 12;
9453 private long numBranches_;
9454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9455 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9456 public long NumBranches {
9457 get { return numBranches_; }
9458 set {
9459 numBranches_ = value;
9461 }
9462
9464 public const int NumBinaryPropagationsFieldNumber = 13;
9465 private long numBinaryPropagations_;
9466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9467 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9468 public long NumBinaryPropagations {
9469 get { return numBinaryPropagations_; }
9470 set {
9471 numBinaryPropagations_ = value;
9472 }
9473 }
9474
9476 public const int NumIntegerPropagationsFieldNumber = 14;
9477 private long numIntegerPropagations_;
9478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9479 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9480 public long NumIntegerPropagations {
9481 get { return numIntegerPropagations_; }
9482 set {
9483 numIntegerPropagations_ = value;
9484 }
9485 }
9486
9488 public const int NumRestartsFieldNumber = 24;
9489 private long numRestarts_;
9490 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9491 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9492 public long NumRestarts {
9493 get { return numRestarts_; }
9494 set {
9495 numRestarts_ = value;
9496 }
9497 }
9498
9500 public const int NumLpIterationsFieldNumber = 25;
9501 private long numLpIterations_;
9502 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9503 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9504 public long NumLpIterations {
9505 get { return numLpIterations_; }
9506 set {
9507 numLpIterations_ = value;
9508 }
9509 }
9510
9512 public const int WallTimeFieldNumber = 15;
9513 private double wallTime_;
9517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9518 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9519 public double WallTime {
9520 get { return wallTime_; }
9521 set {
9522 wallTime_ = value;
9523 }
9525
9527 public const int UserTimeFieldNumber = 16;
9528 private double userTime_;
9529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9531 public double UserTime {
9532 get { return userTime_; }
9533 set {
9534 userTime_ = value;
9535 }
9537
9539 public const int DeterministicTimeFieldNumber = 17;
9540 private double deterministicTime_;
9541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9542 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9543 public double DeterministicTime {
9544 get { return deterministicTime_; }
9545 set {
9546 deterministicTime_ = value;
9547 }
9549
9551 public const int GapIntegralFieldNumber = 22;
9552 private double gapIntegral_;
9556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9557 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9558 public double GapIntegral {
9559 get { return gapIntegral_; }
9560 set {
9561 gapIntegral_ = value;
9562 }
9563 }
9566 public const int SolutionInfoFieldNumber = 20;
9567 private string solutionInfo_ = "";
9572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9573 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9574 public string SolutionInfo {
9575 get { return solutionInfo_; }
9576 set {
9577 solutionInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9578 }
9580
9582 public const int SolveLogFieldNumber = 26;
9583 private string solveLog_ = "";
9588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9589 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9590 public string SolveLog {
9591 get { return solveLog_; }
9592 set {
9593 solveLog_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9594 }
9595 }
9596
9597 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9598 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9599 public override bool Equals(object other) {
9600 return Equals(other as CpSolverResponse);
9601 }
9602
9603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9604 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9605 public bool Equals(CpSolverResponse other) {
9606 if (ReferenceEquals(other, null)) {
9607 return false;
9608 }
9609 if (ReferenceEquals(other, this)) {
9610 return true;
9612 if (Status != other.Status) return false;
9613 if(!solution_.Equals(other.solution_)) return false;
9614 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(ObjectiveValue, other.ObjectiveValue)) return false;
9615 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(BestObjectiveBound, other.BestObjectiveBound)) return false;
9616 if(!additionalSolutions_.Equals(other.additionalSolutions_)) return false;
9617 if(!tightenedVariables_.Equals(other.tightenedVariables_)) return false;
9618 if(!sufficientAssumptionsForInfeasibility_.Equals(other.sufficientAssumptionsForInfeasibility_)) return false;
9619 if (!object.Equals(IntegerObjective, other.IntegerObjective)) return false;
9620 if (InnerObjectiveLowerBound != other.InnerObjectiveLowerBound) return false;
9621 if (NumIntegers != other.NumIntegers) return false;
9622 if (NumBooleans != other.NumBooleans) return false;
9623 if (NumConflicts != other.NumConflicts) return false;
9624 if (NumBranches != other.NumBranches) return false;
9625 if (NumBinaryPropagations != other.NumBinaryPropagations) return false;
9626 if (NumIntegerPropagations != other.NumIntegerPropagations) return false;
9627 if (NumRestarts != other.NumRestarts) return false;
9628 if (NumLpIterations != other.NumLpIterations) return false;
9629 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(WallTime, other.WallTime)) return false;
9630 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(UserTime, other.UserTime)) return false;
9631 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DeterministicTime, other.DeterministicTime)) return false;
9632 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(GapIntegral, other.GapIntegral)) return false;
9633 if (SolutionInfo != other.SolutionInfo) return false;
9634 if (SolveLog != other.SolveLog) return false;
9635 return Equals(_unknownFields, other._unknownFields);
9636 }
9637
9638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9639 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9640 public override int GetHashCode() {
9641 int hash = 1;
9642 if (Status != global::Google.OrTools.Sat.CpSolverStatus.Unknown) hash ^= Status.GetHashCode();
9643 hash ^= solution_.GetHashCode();
9644 if (ObjectiveValue != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ObjectiveValue);
9645 if (BestObjectiveBound != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(BestObjectiveBound);
9646 hash ^= additionalSolutions_.GetHashCode();
9647 hash ^= tightenedVariables_.GetHashCode();
9648 hash ^= sufficientAssumptionsForInfeasibility_.GetHashCode();
9649 if (integerObjective_ != null) hash ^= IntegerObjective.GetHashCode();
9650 if (InnerObjectiveLowerBound != 0L) hash ^= InnerObjectiveLowerBound.GetHashCode();
9651 if (NumIntegers != 0L) hash ^= NumIntegers.GetHashCode();
9652 if (NumBooleans != 0L) hash ^= NumBooleans.GetHashCode();
9653 if (NumConflicts != 0L) hash ^= NumConflicts.GetHashCode();
9654 if (NumBranches != 0L) hash ^= NumBranches.GetHashCode();
9655 if (NumBinaryPropagations != 0L) hash ^= NumBinaryPropagations.GetHashCode();
9656 if (NumIntegerPropagations != 0L) hash ^= NumIntegerPropagations.GetHashCode();
9657 if (NumRestarts != 0L) hash ^= NumRestarts.GetHashCode();
9658 if (NumLpIterations != 0L) hash ^= NumLpIterations.GetHashCode();
9659 if (WallTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(WallTime);
9660 if (UserTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(UserTime);
9661 if (DeterministicTime != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DeterministicTime);
9662 if (GapIntegral != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(GapIntegral);
9663 if (SolutionInfo.Length != 0) hash ^= SolutionInfo.GetHashCode();
9664 if (SolveLog.Length != 0) hash ^= SolveLog.GetHashCode();
9665 if (_unknownFields != null) {
9666 hash ^= _unknownFields.GetHashCode();
9667 }
9668 return hash;
9669 }
9670
9671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9672 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9673 public override string ToString() {
9674 return pb::JsonFormatter.ToDiagnosticString(this);
9675 }
9676
9677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9678 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9679 public void WriteTo(pb::CodedOutputStream output) {
9680 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9681 output.WriteRawMessage(this);
9682 #else
9683 if (Status != global::Google.OrTools.Sat.CpSolverStatus.Unknown) {
9684 output.WriteRawTag(8);
9685 output.WriteEnum((int) Status);
9686 }
9687 solution_.WriteTo(output, _repeated_solution_codec);
9688 if (ObjectiveValue != 0D) {
9689 output.WriteRawTag(25);
9690 output.WriteDouble(ObjectiveValue);
9691 }
9692 if (BestObjectiveBound != 0D) {
9693 output.WriteRawTag(33);
9694 output.WriteDouble(BestObjectiveBound);
9695 }
9696 if (NumBooleans != 0L) {
9697 output.WriteRawTag(80);
9698 output.WriteInt64(NumBooleans);
9699 }
9700 if (NumConflicts != 0L) {
9701 output.WriteRawTag(88);
9702 output.WriteInt64(NumConflicts);
9703 }
9704 if (NumBranches != 0L) {
9705 output.WriteRawTag(96);
9706 output.WriteInt64(NumBranches);
9707 }
9708 if (NumBinaryPropagations != 0L) {
9709 output.WriteRawTag(104);
9710 output.WriteInt64(NumBinaryPropagations);
9711 }
9712 if (NumIntegerPropagations != 0L) {
9713 output.WriteRawTag(112);
9714 output.WriteInt64(NumIntegerPropagations);
9715 }
9716 if (WallTime != 0D) {
9717 output.WriteRawTag(121);
9718 output.WriteDouble(WallTime);
9719 }
9720 if (UserTime != 0D) {
9721 output.WriteRawTag(129, 1);
9722 output.WriteDouble(UserTime);
9723 }
9724 if (DeterministicTime != 0D) {
9725 output.WriteRawTag(137, 1);
9726 output.WriteDouble(DeterministicTime);
9727 }
9728 if (SolutionInfo.Length != 0) {
9729 output.WriteRawTag(162, 1);
9730 output.WriteString(SolutionInfo);
9731 }
9732 tightenedVariables_.WriteTo(output, _repeated_tightenedVariables_codec);
9733 if (GapIntegral != 0D) {
9734 output.WriteRawTag(177, 1);
9735 output.WriteDouble(GapIntegral);
9736 }
9737 sufficientAssumptionsForInfeasibility_.WriteTo(output, _repeated_sufficientAssumptionsForInfeasibility_codec);
9738 if (NumRestarts != 0L) {
9739 output.WriteRawTag(192, 1);
9740 output.WriteInt64(NumRestarts);
9741 }
9742 if (NumLpIterations != 0L) {
9743 output.WriteRawTag(200, 1);
9744 output.WriteInt64(NumLpIterations);
9745 }
9746 if (SolveLog.Length != 0) {
9747 output.WriteRawTag(210, 1);
9748 output.WriteString(SolveLog);
9749 }
9750 additionalSolutions_.WriteTo(output, _repeated_additionalSolutions_codec);
9751 if (integerObjective_ != null) {
9752 output.WriteRawTag(226, 1);
9753 output.WriteMessage(IntegerObjective);
9754 }
9755 if (InnerObjectiveLowerBound != 0L) {
9756 output.WriteRawTag(232, 1);
9757 output.WriteInt64(InnerObjectiveLowerBound);
9758 }
9759 if (NumIntegers != 0L) {
9760 output.WriteRawTag(240, 1);
9761 output.WriteInt64(NumIntegers);
9762 }
9763 if (_unknownFields != null) {
9764 _unknownFields.WriteTo(output);
9765 }
9766 #endif
9767 }
9768
9769 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9771 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9772 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9773 if (Status != global::Google.OrTools.Sat.CpSolverStatus.Unknown) {
9774 output.WriteRawTag(8);
9775 output.WriteEnum((int) Status);
9776 }
9777 solution_.WriteTo(ref output, _repeated_solution_codec);
9778 if (ObjectiveValue != 0D) {
9779 output.WriteRawTag(25);
9780 output.WriteDouble(ObjectiveValue);
9781 }
9782 if (BestObjectiveBound != 0D) {
9783 output.WriteRawTag(33);
9784 output.WriteDouble(BestObjectiveBound);
9785 }
9786 if (NumBooleans != 0L) {
9787 output.WriteRawTag(80);
9788 output.WriteInt64(NumBooleans);
9789 }
9790 if (NumConflicts != 0L) {
9791 output.WriteRawTag(88);
9792 output.WriteInt64(NumConflicts);
9793 }
9794 if (NumBranches != 0L) {
9795 output.WriteRawTag(96);
9796 output.WriteInt64(NumBranches);
9797 }
9798 if (NumBinaryPropagations != 0L) {
9799 output.WriteRawTag(104);
9800 output.WriteInt64(NumBinaryPropagations);
9801 }
9802 if (NumIntegerPropagations != 0L) {
9803 output.WriteRawTag(112);
9804 output.WriteInt64(NumIntegerPropagations);
9805 }
9806 if (WallTime != 0D) {
9807 output.WriteRawTag(121);
9808 output.WriteDouble(WallTime);
9809 }
9810 if (UserTime != 0D) {
9811 output.WriteRawTag(129, 1);
9812 output.WriteDouble(UserTime);
9813 }
9814 if (DeterministicTime != 0D) {
9815 output.WriteRawTag(137, 1);
9816 output.WriteDouble(DeterministicTime);
9817 }
9818 if (SolutionInfo.Length != 0) {
9819 output.WriteRawTag(162, 1);
9820 output.WriteString(SolutionInfo);
9821 }
9822 tightenedVariables_.WriteTo(ref output, _repeated_tightenedVariables_codec);
9823 if (GapIntegral != 0D) {
9824 output.WriteRawTag(177, 1);
9825 output.WriteDouble(GapIntegral);
9826 }
9827 sufficientAssumptionsForInfeasibility_.WriteTo(ref output, _repeated_sufficientAssumptionsForInfeasibility_codec);
9828 if (NumRestarts != 0L) {
9829 output.WriteRawTag(192, 1);
9830 output.WriteInt64(NumRestarts);
9831 }
9832 if (NumLpIterations != 0L) {
9833 output.WriteRawTag(200, 1);
9834 output.WriteInt64(NumLpIterations);
9835 }
9836 if (SolveLog.Length != 0) {
9837 output.WriteRawTag(210, 1);
9838 output.WriteString(SolveLog);
9839 }
9840 additionalSolutions_.WriteTo(ref output, _repeated_additionalSolutions_codec);
9841 if (integerObjective_ != null) {
9842 output.WriteRawTag(226, 1);
9843 output.WriteMessage(IntegerObjective);
9844 }
9845 if (InnerObjectiveLowerBound != 0L) {
9846 output.WriteRawTag(232, 1);
9847 output.WriteInt64(InnerObjectiveLowerBound);
9848 }
9849 if (NumIntegers != 0L) {
9850 output.WriteRawTag(240, 1);
9851 output.WriteInt64(NumIntegers);
9852 }
9853 if (_unknownFields != null) {
9854 _unknownFields.WriteTo(ref output);
9855 }
9856 }
9857 #endif
9858
9859 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9860 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9861 public int CalculateSize() {
9862 int size = 0;
9863 if (Status != global::Google.OrTools.Sat.CpSolverStatus.Unknown) {
9864 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status);
9865 }
9866 size += solution_.CalculateSize(_repeated_solution_codec);
9867 if (ObjectiveValue != 0D) {
9868 size += 1 + 8;
9869 }
9870 if (BestObjectiveBound != 0D) {
9871 size += 1 + 8;
9872 }
9873 size += additionalSolutions_.CalculateSize(_repeated_additionalSolutions_codec);
9874 size += tightenedVariables_.CalculateSize(_repeated_tightenedVariables_codec);
9875 size += sufficientAssumptionsForInfeasibility_.CalculateSize(_repeated_sufficientAssumptionsForInfeasibility_codec);
9876 if (integerObjective_ != null) {
9877 size += 2 + pb::CodedOutputStream.ComputeMessageSize(IntegerObjective);
9878 }
9879 if (InnerObjectiveLowerBound != 0L) {
9880 size += 2 + pb::CodedOutputStream.ComputeInt64Size(InnerObjectiveLowerBound);
9881 }
9882 if (NumIntegers != 0L) {
9883 size += 2 + pb::CodedOutputStream.ComputeInt64Size(NumIntegers);
9884 }
9885 if (NumBooleans != 0L) {
9886 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBooleans);
9887 }
9888 if (NumConflicts != 0L) {
9889 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumConflicts);
9890 }
9891 if (NumBranches != 0L) {
9892 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBranches);
9893 }
9894 if (NumBinaryPropagations != 0L) {
9895 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumBinaryPropagations);
9896 }
9897 if (NumIntegerPropagations != 0L) {
9898 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NumIntegerPropagations);
9899 }
9900 if (NumRestarts != 0L) {
9901 size += 2 + pb::CodedOutputStream.ComputeInt64Size(NumRestarts);
9902 }
9903 if (NumLpIterations != 0L) {
9904 size += 2 + pb::CodedOutputStream.ComputeInt64Size(NumLpIterations);
9905 }
9906 if (WallTime != 0D) {
9907 size += 1 + 8;
9908 }
9909 if (UserTime != 0D) {
9910 size += 2 + 8;
9911 }
9912 if (DeterministicTime != 0D) {
9913 size += 2 + 8;
9914 }
9915 if (GapIntegral != 0D) {
9916 size += 2 + 8;
9917 }
9918 if (SolutionInfo.Length != 0) {
9919 size += 2 + pb::CodedOutputStream.ComputeStringSize(SolutionInfo);
9920 }
9921 if (SolveLog.Length != 0) {
9922 size += 2 + pb::CodedOutputStream.ComputeStringSize(SolveLog);
9923 }
9924 if (_unknownFields != null) {
9925 size += _unknownFields.CalculateSize();
9926 }
9927 return size;
9928 }
9929
9930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9931 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9932 public void MergeFrom(CpSolverResponse other) {
9933 if (other == null) {
9934 return;
9935 }
9936 if (other.Status != global::Google.OrTools.Sat.CpSolverStatus.Unknown) {
9937 Status = other.Status;
9938 }
9939 solution_.Add(other.solution_);
9940 if (other.ObjectiveValue != 0D) {
9941 ObjectiveValue = other.ObjectiveValue;
9942 }
9943 if (other.BestObjectiveBound != 0D) {
9944 BestObjectiveBound = other.BestObjectiveBound;
9945 }
9946 additionalSolutions_.Add(other.additionalSolutions_);
9947 tightenedVariables_.Add(other.tightenedVariables_);
9948 sufficientAssumptionsForInfeasibility_.Add(other.sufficientAssumptionsForInfeasibility_);
9949 if (other.integerObjective_ != null) {
9950 if (integerObjective_ == null) {
9951 IntegerObjective = new global::Google.OrTools.Sat.CpObjectiveProto();
9952 }
9953 IntegerObjective.MergeFrom(other.IntegerObjective);
9954 }
9955 if (other.InnerObjectiveLowerBound != 0L) {
9956 InnerObjectiveLowerBound = other.InnerObjectiveLowerBound;
9957 }
9958 if (other.NumIntegers != 0L) {
9959 NumIntegers = other.NumIntegers;
9960 }
9961 if (other.NumBooleans != 0L) {
9962 NumBooleans = other.NumBooleans;
9963 }
9964 if (other.NumConflicts != 0L) {
9965 NumConflicts = other.NumConflicts;
9966 }
9967 if (other.NumBranches != 0L) {
9968 NumBranches = other.NumBranches;
9969 }
9970 if (other.NumBinaryPropagations != 0L) {
9971 NumBinaryPropagations = other.NumBinaryPropagations;
9972 }
9973 if (other.NumIntegerPropagations != 0L) {
9974 NumIntegerPropagations = other.NumIntegerPropagations;
9975 }
9976 if (other.NumRestarts != 0L) {
9977 NumRestarts = other.NumRestarts;
9978 }
9979 if (other.NumLpIterations != 0L) {
9980 NumLpIterations = other.NumLpIterations;
9981 }
9982 if (other.WallTime != 0D) {
9983 WallTime = other.WallTime;
9984 }
9985 if (other.UserTime != 0D) {
9986 UserTime = other.UserTime;
9987 }
9988 if (other.DeterministicTime != 0D) {
9989 DeterministicTime = other.DeterministicTime;
9990 }
9991 if (other.GapIntegral != 0D) {
9992 GapIntegral = other.GapIntegral;
9993 }
9994 if (other.SolutionInfo.Length != 0) {
9995 SolutionInfo = other.SolutionInfo;
9996 }
9997 if (other.SolveLog.Length != 0) {
9998 SolveLog = other.SolveLog;
9999 }
10000 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10001 }
10002
10003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10004 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10005 public void MergeFrom(pb::CodedInputStream input) {
10006 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10007 input.ReadRawMessage(this);
10008 #else
10009 uint tag;
10010 while ((tag = input.ReadTag()) != 0) {
10011 switch(tag) {
10012 default:
10013 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10014 break;
10015 case 8: {
10016 Status = (global::Google.OrTools.Sat.CpSolverStatus) input.ReadEnum();
10017 break;
10018 }
10019 case 18:
10020 case 16: {
10021 solution_.AddEntriesFrom(input, _repeated_solution_codec);
10022 break;
10023 }
10024 case 25: {
10025 ObjectiveValue = input.ReadDouble();
10026 break;
10027 }
10028 case 33: {
10029 BestObjectiveBound = input.ReadDouble();
10030 break;
10031 }
10032 case 80: {
10033 NumBooleans = input.ReadInt64();
10034 break;
10035 }
10036 case 88: {
10037 NumConflicts = input.ReadInt64();
10038 break;
10039 }
10040 case 96: {
10041 NumBranches = input.ReadInt64();
10042 break;
10043 }
10044 case 104: {
10045 NumBinaryPropagations = input.ReadInt64();
10046 break;
10047 }
10048 case 112: {
10049 NumIntegerPropagations = input.ReadInt64();
10050 break;
10051 }
10052 case 121: {
10053 WallTime = input.ReadDouble();
10054 break;
10055 }
10056 case 129: {
10057 UserTime = input.ReadDouble();
10058 break;
10059 }
10060 case 137: {
10061 DeterministicTime = input.ReadDouble();
10062 break;
10063 }
10064 case 162: {
10065 SolutionInfo = input.ReadString();
10066 break;
10067 }
10068 case 170: {
10069 tightenedVariables_.AddEntriesFrom(input, _repeated_tightenedVariables_codec);
10070 break;
10071 }
10072 case 177: {
10073 GapIntegral = input.ReadDouble();
10074 break;
10075 }
10076 case 186:
10077 case 184: {
10078 sufficientAssumptionsForInfeasibility_.AddEntriesFrom(input, _repeated_sufficientAssumptionsForInfeasibility_codec);
10079 break;
10080 }
10081 case 192: {
10082 NumRestarts = input.ReadInt64();
10083 break;
10084 }
10085 case 200: {
10086 NumLpIterations = input.ReadInt64();
10087 break;
10088 }
10089 case 210: {
10090 SolveLog = input.ReadString();
10091 break;
10092 }
10093 case 218: {
10094 additionalSolutions_.AddEntriesFrom(input, _repeated_additionalSolutions_codec);
10095 break;
10096 }
10097 case 226: {
10098 if (integerObjective_ == null) {
10099 IntegerObjective = new global::Google.OrTools.Sat.CpObjectiveProto();
10100 }
10101 input.ReadMessage(IntegerObjective);
10102 break;
10103 }
10104 case 232: {
10105 InnerObjectiveLowerBound = input.ReadInt64();
10106 break;
10107 }
10108 case 240: {
10109 NumIntegers = input.ReadInt64();
10110 break;
10111 }
10112 }
10113 }
10114 #endif
10115 }
10116
10117 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10120 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10121 uint tag;
10122 while ((tag = input.ReadTag()) != 0) {
10123 switch(tag) {
10124 default:
10125 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10126 break;
10127 case 8: {
10128 Status = (global::Google.OrTools.Sat.CpSolverStatus) input.ReadEnum();
10129 break;
10130 }
10131 case 18:
10132 case 16: {
10133 solution_.AddEntriesFrom(ref input, _repeated_solution_codec);
10134 break;
10135 }
10136 case 25: {
10137 ObjectiveValue = input.ReadDouble();
10138 break;
10139 }
10140 case 33: {
10141 BestObjectiveBound = input.ReadDouble();
10142 break;
10143 }
10144 case 80: {
10145 NumBooleans = input.ReadInt64();
10146 break;
10147 }
10148 case 88: {
10149 NumConflicts = input.ReadInt64();
10150 break;
10151 }
10152 case 96: {
10153 NumBranches = input.ReadInt64();
10154 break;
10155 }
10156 case 104: {
10157 NumBinaryPropagations = input.ReadInt64();
10158 break;
10159 }
10160 case 112: {
10161 NumIntegerPropagations = input.ReadInt64();
10162 break;
10163 }
10164 case 121: {
10165 WallTime = input.ReadDouble();
10166 break;
10167 }
10168 case 129: {
10169 UserTime = input.ReadDouble();
10170 break;
10171 }
10172 case 137: {
10173 DeterministicTime = input.ReadDouble();
10174 break;
10175 }
10176 case 162: {
10177 SolutionInfo = input.ReadString();
10178 break;
10179 }
10180 case 170: {
10181 tightenedVariables_.AddEntriesFrom(ref input, _repeated_tightenedVariables_codec);
10182 break;
10183 }
10184 case 177: {
10185 GapIntegral = input.ReadDouble();
10186 break;
10187 }
10188 case 186:
10189 case 184: {
10190 sufficientAssumptionsForInfeasibility_.AddEntriesFrom(ref input, _repeated_sufficientAssumptionsForInfeasibility_codec);
10191 break;
10192 }
10193 case 192: {
10194 NumRestarts = input.ReadInt64();
10195 break;
10196 }
10197 case 200: {
10198 NumLpIterations = input.ReadInt64();
10199 break;
10200 }
10201 case 210: {
10202 SolveLog = input.ReadString();
10203 break;
10204 }
10205 case 218: {
10206 additionalSolutions_.AddEntriesFrom(ref input, _repeated_additionalSolutions_codec);
10207 break;
10208 }
10209 case 226: {
10210 if (integerObjective_ == null) {
10211 IntegerObjective = new global::Google.OrTools.Sat.CpObjectiveProto();
10212 }
10213 input.ReadMessage(IntegerObjective);
10214 break;
10215 }
10216 case 232: {
10217 InnerObjectiveLowerBound = input.ReadInt64();
10218 break;
10219 }
10220 case 240: {
10221 NumIntegers = input.ReadInt64();
10222 break;
10223 }
10224 }
10225 }
10226 }
10227 #endif
10228
10229 }
10230
10231 #endregion
10232
10233}
10234
10235#endregion Designer generated code
global::Google.Protobuf.Reflection pbr
global::System.Collections.Generic scg
global::Google.Protobuf.Collections pbc
Definition SetCover.pb.cs:9
global::Google.Protobuf pb
Definition SetCover.pb.cs:8
All affine expressions must take different values.
AllDifferentConstraintProto(AllDifferentConstraintProto other)
bool Equals(AllDifferentConstraintProto other)
This constraint forces a sequence of variables to be accepted by an automaton.
Argument of the constraints of the form OP(literals).
BoolArgumentProto(BoolArgumentProto other)
static pb::MessageParser< BoolArgumentProto > Parser
static pbr::MessageDescriptor Descriptor
void MergeFrom(BoolArgumentProto other)
bool Equals(BoolArgumentProto other)
override bool Equals(object other)
const int LiteralsFieldNumber
Field number for the "literals" field.
pbc::RepeatedField< int > Literals
void WriteTo(pb::CodedOutputStream output)
The circuit constraint is defined on a graph where the arc presence are controlled by literals....
ConstraintOneofCase
Enum of possible cases for the "constraint" oneof.
bool Equals(ConstraintProto other)
override bool Equals(object other)
A constraint programming problem.
global::Google.OrTools.Sat.CpObjectiveProto Objective
The objective to minimize. Can be empty for pure decision problems.
global::Google.OrTools.Sat.PartialVariableAssignment SolutionHint
Solution hint.
global::Google.OrTools.Sat.FloatObjectiveProto FloatingPointObjective
Advanced usage. It is invalid to have both an objective and a floating point objective.
global::Google.OrTools.Sat.SymmetryProto Symmetry
For now, this is not meant to be filled by a client writing a model, but by our preprocessing step.
string Name
For debug/logging only. Can be empty.
Holder for reflection information generated from ortools/sat/cp_model.proto.
Definition CpModel.pb.cs:15
static pbr::FileDescriptor Descriptor
File descriptor for ortools/sat/cp_model.proto.
Definition CpModel.pb.cs:19
The response returned by a solver trying to solve a CpModelProto.
long InnerObjectiveLowerBound
Advanced usage.
double ObjectiveValue
Only make sense for an optimization problem. The objective value of the returned solution if it is no...
long NumIntegers
Some statistics about the solve.
string SolutionInfo
Additional information about how the solution was found. It also stores model or parameters errors th...
string SolveLog
The solve log will be filled if the parameter log_to_response is set to true.
global::Google.OrTools.Sat.CpObjectiveProto IntegerObjective
Contains the integer objective optimized internally. This is only filled if the problem had a floatin...
double WallTime
The time counted from the beginning of the Solve() call.
double GapIntegral
The integral of log(1 + absolute_objective_gap) over time.
double BestObjectiveBound
Only make sense for an optimization problem. A proven lower-bound on the objective for a minimization...
global::Google.OrTools.Sat.CpSolverStatus Status
The status of the solve.
Just a message used to store dense solution. This is used by the additional_solutions field.
The sum of the demands of the intervals at each interval point cannot exceed a capacity....
Define the strategy to follow when the solver needs to take a new decision.
A dense matrix of numbers encoded in a flat way, row by row. That is matrix[i][j] = entries[i * num_c...
The constraint target = vars[index]. This enforces that index takes one of the value in [0,...
A linear floating point objective: sum coeffs[i] * vars[i] + offset.
void MergeFrom(IntegerVariableProto other)
static pb::MessageParser< IntegerVariableProto > Parser
override bool Equals(object other)
const int DomainFieldNumber
Field number for the "domain" field.
const int NameFieldNumber
Field number for the "name" field.
void WriteTo(pb::CodedOutputStream output)
string Name
For debug/logging only. Can be empty.
static pbr::MessageDescriptor Descriptor
This is not really a constraint. It is there so it can be referred by other constraints using this "i...
The two arrays of variable each represent a function, the second is the inverse of the first: f_direc...
static pbr::MessageDescriptor Descriptor
const int TargetFieldNumber
Field number for the "target" field.
static pb::MessageParser< LinearArgumentProto > Parser
global::Google.OrTools.Sat.LinearExpressionProto Target
The linear sum vars[i] * coeffs[i] must fall in the given domain. The domain has the same format as t...
Some constraints supports linear expression instead of just using a reference to a variable....
pbc::RepeatedField< long > Coeffs
override bool Equals(object other)
static pbr::MessageDescriptor Descriptor
void WriteTo(pb::CodedOutputStream output)
const int VarsFieldNumber
Field number for the "vars" field.
static pb::MessageParser< LinearExpressionProto > Parser
const int OffsetFieldNumber
Field number for the "offset" field.
const int CoeffsFieldNumber
Field number for the "coeffs" field.
void MergeFrom(LinearExpressionProto other)
A list of variables, without any semantics.
The boxes defined by [start_x, end_x) * [start_y, end_y) cannot overlap. Furthermore,...
All the intervals (index of IntervalConstraintProto) must be disjoint. More formally,...
This message encodes a partial (or full) assignment of the variables of a CpModelProto....
Maintain a reservoir level within bounds. The water level starts at 0, and at any time,...
The "VRP" (Vehicle Routing Problem) constraint.
A permutation of integers encoded as a list of cycles, hence the "sparse" format. The image of an ele...
EXPERIMENTAL. For now, this is meant to be used by the solver and not filled by clients.
The values of the n-tuple formed by the given variables can only be one of the listed n-tuples in val...
CpSolverStatus
The status returned by a solver trying to solve a CpModelProto.
@ Infeasible
The problem has been proven infeasible.
@ Unknown
The status of the model is still unknown. A search limit has been reached before any of the statuses ...
@ Feasible
A feasible solution has been found. But the search was stopped before we could prove optimality or be...
@ ModelInvalid
The given CpModelProto didn't pass the validation step. You can get a detailed error by calling Valid...
@ Optimal
An optimal feasible solution has been found.