Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
CpModelService.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_service.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 CpModelServiceReflection {
16
17 #region Descriptor
19 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
27 "CiJvcnRvb2xzL3NhdC9jcF9tb2RlbF9zZXJ2aWNlLnByb3RvEhpvcGVyYXRp",
28 "b25zX3Jlc2VhcmNoLnNhdC52MRoab3J0b29scy9zYXQvY3BfbW9kZWwucHJv",
29 "dG8aIG9ydG9vbHMvc2F0L3NhdF9wYXJhbWV0ZXJzLnByb3RvIokBCg9DcFNv",
30 "bHZlclJlcXVlc3QSNAoFbW9kZWwYASABKAsyJS5vcGVyYXRpb25zX3Jlc2Vh",
31 "cmNoLnNhdC5DcE1vZGVsUHJvdG8SOgoKcGFyYW1ldGVycxgDIAEoCzImLm9w",
32 "ZXJhdGlvbnNfcmVzZWFyY2guc2F0LlNhdFBhcmFtZXRlcnNKBAgCEAMydAoI",
33 "Q3BTb2x2ZXISaAoMU29sdmVQcm9ibGVtEisub3BlcmF0aW9uc19yZXNlYXJj",
34 "aC5zYXQudjEuQ3BTb2x2ZXJSZXF1ZXN0Gikub3BlcmF0aW9uc19yZXNlYXJj",
35 "aC5zYXQuQ3BTb2x2ZXJSZXNwb25zZSIAQkcKGWNvbS5nb29nbGUub3J0b29s",
36 "cy5zYXQudjFCE0NwTW9kZWxTZXJ2aWNlUHJvdG9QAaoCEkdvb2dsZS5PclRv",
37 "b2xzLlNhdGIGcHJvdG8z"));
38 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
39 new pbr::FileDescriptor[] { global::Google.OrTools.Sat.CpModelReflection.Descriptor, global::Google.OrTools.Sat.SatParametersReflection.Descriptor, },
40 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
41 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Sat.CpSolverRequest), global::Google.OrTools.Sat.CpSolverRequest.Parser, new[]{ "Model", "Parameters" }, null, null, null, null)
42 }));
43 }
44 #endregion
45
46 }
47 #region Messages
51 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
52 public sealed partial class CpSolverRequest : pb::IMessage<CpSolverRequest>
53 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
54 , pb::IBufferMessage
55 #endif
56 {
57 private static readonly pb::MessageParser<CpSolverRequest> _parser = new pb::MessageParser<CpSolverRequest>(() => new CpSolverRequest());
58 private pb::UnknownFieldSet _unknownFields;
59 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
60 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
61 public static pb::MessageParser<CpSolverRequest> Parser { get { return _parser; } }
62
63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
65 public static pbr::MessageDescriptor Descriptor {
66 get { return global::Google.OrTools.Sat.CpModelServiceReflection.Descriptor.MessageTypes[0]; }
67 }
68
69 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
70 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
71 pbr::MessageDescriptor pb::IMessage.Descriptor {
72 get { return Descriptor; }
73 }
74
75 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
77 public CpSolverRequest() {
78 OnConstruction();
79 }
80
81 partial void OnConstruction();
82
83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
85 public CpSolverRequest(CpSolverRequest other) : this() {
86 model_ = other.model_ != null ? other.model_.Clone() : null;
87 parameters_ = other.parameters_ != null ? other.parameters_.Clone() : null;
88 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
89 }
90
91 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
94 return new CpSolverRequest(this);
95 }
96
98 public const int ModelFieldNumber = 1;
99 private global::Google.OrTools.Sat.CpModelProto model_;
103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
104 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
105 public global::Google.OrTools.Sat.CpModelProto Model {
106 get { return model_; }
107 set {
108 model_ = value;
109 }
110 }
111
113 public const int ParametersFieldNumber = 3;
114 private global::Google.OrTools.Sat.SatParameters parameters_;
118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
119 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
120 public global::Google.OrTools.Sat.SatParameters Parameters {
121 get { return parameters_; }
122 set {
123 parameters_ = value;
124 }
125 }
126
127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
128 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
129 public override bool Equals(object other) {
130 return Equals(other as CpSolverRequest);
131 }
132
133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
134 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
135 public bool Equals(CpSolverRequest other) {
136 if (ReferenceEquals(other, null)) {
137 return false;
138 }
139 if (ReferenceEquals(other, this)) {
140 return true;
141 }
142 if (!object.Equals(Model, other.Model)) return false;
143 if (!object.Equals(Parameters, other.Parameters)) return false;
144 return Equals(_unknownFields, other._unknownFields);
145 }
146
147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
149 public override int GetHashCode() {
150 int hash = 1;
151 if (model_ != null) hash ^= Model.GetHashCode();
152 if (parameters_ != null) hash ^= Parameters.GetHashCode();
153 if (_unknownFields != null) {
154 hash ^= _unknownFields.GetHashCode();
155 }
156 return hash;
157 }
158
159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
160 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
161 public override string ToString() {
162 return pb::JsonFormatter.ToDiagnosticString(this);
163 }
164
165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
166 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
167 public void WriteTo(pb::CodedOutputStream output) {
168 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
169 output.WriteRawMessage(this);
170 #else
171 if (model_ != null) {
172 output.WriteRawTag(10);
173 output.WriteMessage(Model);
174 }
175 if (parameters_ != null) {
176 output.WriteRawTag(26);
177 output.WriteMessage(Parameters);
178 }
179 if (_unknownFields != null) {
180 _unknownFields.WriteTo(output);
181 }
182 #endif
183 }
184
185 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
187 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
188 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
189 if (model_ != null) {
190 output.WriteRawTag(10);
191 output.WriteMessage(Model);
192 }
193 if (parameters_ != null) {
194 output.WriteRawTag(26);
195 output.WriteMessage(Parameters);
196 }
197 if (_unknownFields != null) {
198 _unknownFields.WriteTo(ref output);
199 }
200 }
201 #endif
202
203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
204 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
205 public int CalculateSize() {
206 int size = 0;
207 if (model_ != null) {
208 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
209 }
210 if (parameters_ != null) {
211 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Parameters);
212 }
213 if (_unknownFields != null) {
214 size += _unknownFields.CalculateSize();
215 }
216 return size;
217 }
218
219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
221 public void MergeFrom(CpSolverRequest other) {
222 if (other == null) {
223 return;
224 }
225 if (other.model_ != null) {
226 if (model_ == null) {
227 Model = new global::Google.OrTools.Sat.CpModelProto();
228 }
229 Model.MergeFrom(other.Model);
230 }
231 if (other.parameters_ != null) {
232 if (parameters_ == null) {
233 Parameters = new global::Google.OrTools.Sat.SatParameters();
234 }
235 Parameters.MergeFrom(other.Parameters);
236 }
237 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
238 }
239
240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
241 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
242 public void MergeFrom(pb::CodedInputStream input) {
243 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
244 input.ReadRawMessage(this);
245 #else
246 uint tag;
247 while ((tag = input.ReadTag()) != 0) {
248 switch(tag) {
249 default:
250 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
251 break;
252 case 10: {
253 if (model_ == null) {
254 Model = new global::Google.OrTools.Sat.CpModelProto();
255 }
256 input.ReadMessage(Model);
257 break;
258 }
259 case 26: {
260 if (parameters_ == null) {
261 Parameters = new global::Google.OrTools.Sat.SatParameters();
262 }
263 input.ReadMessage(Parameters);
264 break;
265 }
266 }
267 }
268 #endif
269 }
270
271 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
273 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
274 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
275 uint tag;
276 while ((tag = input.ReadTag()) != 0) {
277 switch(tag) {
278 default:
279 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
280 break;
281 case 10: {
282 if (model_ == null) {
283 Model = new global::Google.OrTools.Sat.CpModelProto();
284 }
285 input.ReadMessage(Model);
286 break;
287 }
288 case 26: {
289 if (parameters_ == null) {
290 Parameters = new global::Google.OrTools.Sat.SatParameters();
291 }
292 input.ReadMessage(Parameters);
293 break;
294 }
295 }
296 }
297 }
298 #endif
299
300 }
301
302 #endregion
303
304}
305
306#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
Holder for reflection information generated from ortools/sat/cp_model_service.proto.
static pbr::FileDescriptor Descriptor
File descriptor for ortools/sat/cp_model_service.proto.
The request sent to the remote solve service.
bool Equals(CpSolverRequest other)
static pbr::MessageDescriptor Descriptor
void MergeFrom(pb::CodedInputStream input)
void MergeFrom(CpSolverRequest other)
const int ModelFieldNumber
Field number for the "model" field.
global::Google.OrTools.Sat.SatParameters Parameters
Solver parameters.
global::Google.OrTools.Sat.CpModelProto Model
The model to solve.
override bool Equals(object other)
static pb::MessageParser< CpSolverRequest > Parser
void WriteTo(pb::CodedOutputStream output)
CpSolverRequest(CpSolverRequest other)