20 get {
return descriptor; }
22 private static pbr::FileDescriptor descriptor;
25 byte[] descriptorData = global::System.Convert.FromBase64String(
27 "CiBvcnRvb2xzL2dyYXBoL2Zsb3dfcHJvYmxlbS5wcm90bxITb3BlcmF0aW9u",
28 "c19yZXNlYXJjaCJVCgxGbG93QXJjUHJvdG8SDAoEdGFpbBgBIAEoAxIMCgRo",
29 "ZWFkGAIgASgDEhMKCGNhcGFjaXR5GAMgASgDOgExEhQKCXVuaXRfY29zdBgE",
30 "IAEoAzoBMCIuCg1GbG93Tm9kZVByb3RvEgoKAmlkGAEgASgDEhEKBnN1cHBs",
31 "eRgCIAEoAzoBMCKGAgoORmxvd01vZGVsUHJvdG8SMQoFbm9kZXMYASADKAsy",
32 "Ii5vcGVyYXRpb25zX3Jlc2VhcmNoLkZsb3dOb2RlUHJvdG8SLwoEYXJjcxgC",
33 "IAMoCzIhLm9wZXJhdGlvbnNfcmVzZWFyY2guRmxvd0FyY1Byb3RvEkUKDHBy",
34 "b2JsZW1fdHlwZRgDIAEoDjIvLm9wZXJhdGlvbnNfcmVzZWFyY2guRmxvd01v",
35 "ZGVsUHJvdG8uUHJvYmxlbVR5cGUiSQoLUHJvYmxlbVR5cGUSGQoVTElORUFS",
36 "X1NVTV9BU1NJR05NRU5UEAASDAoITUFYX0ZMT1cQARIRCg1NSU5fQ09TVF9G",
37 "TE9XEAJCMwoYY29tLmdvb2dsZS5vcnRvb2xzLmdyYXBoUAGqAhRHb29nbGUu",
38 "T3JUb29scy5HcmFwaA=="));
39 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
40 new pbr::FileDescriptor[] { },
41 new pbr::GeneratedClrTypeInfo(
null,
null,
new pbr::GeneratedClrTypeInfo[] {
42 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Graph.FlowArcProto), global::Google.OrTools.Graph.FlowArcProto.Parser,
new[]{
"Tail",
"Head",
"Capacity",
"UnitCost" },
null,
null,
null,
null),
43 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Graph.FlowNodeProto), global::Google.OrTools.Graph.FlowNodeProto.Parser,
new[]{
"Id",
"Supply" },
null,
null,
null,
null),
44 new pbr::GeneratedClrTypeInfo(typeof(global::Google.OrTools.Graph.FlowModelProto), global::Google.OrTools.Graph.FlowModelProto.Parser,
new[]{
"Nodes",
"Arcs",
"ProblemType" },
null,
new[]{ typeof(global::Google.OrTools.Graph.FlowModelProto.Types.ProblemType) },
null,
null)
52 public sealed partial class FlowArcProto : pb::IMessage<FlowArcProto>
53 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
57 private static readonly pb::MessageParser<FlowArcProto> _parser =
new pb::MessageParser<FlowArcProto>(() =>
new FlowArcProto());
58 private pb::UnknownFieldSet _unknownFields;
59 private int _hasBits0;
60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
61 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
62 public static pb::MessageParser<FlowArcProto>
Parser {
get {
return _parser; } }
64 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
65 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
67 get {
return global::Google.OrTools.Graph.FlowProblemReflection.Descriptor.MessageTypes[0]; }
70 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
71 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
72 pbr::MessageDescriptor pb::IMessage.Descriptor {
76 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
77 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
82 partial
void OnConstruction();
84 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
85 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
87 _hasBits0 = other._hasBits0;
90 capacity_ = other.capacity_;
91 unitCost_ = other.unitCost_;
92 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
96 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
103 private readonly
static long TailDefaultValue = 0L;
110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
111 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
113 get {
if ((_hasBits0 & 1) != 0) {
return tail_; }
else {
return TailDefaultValue; } }
120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
121 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
123 get {
return (_hasBits0 & 1) != 0; }
126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
127 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
134 private readonly
static long HeadDefaultValue = 0L;
137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
138 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
140 get {
if ((_hasBits0 & 2) != 0) {
return head_; }
else {
return HeadDefaultValue; } }
147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
150 get {
return (_hasBits0 & 2) != 0; }
153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
154 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
161 private readonly
static long CapacityDefaultValue = 1L;
163 private long capacity_;
168 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
169 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
171 get {
if ((_hasBits0 & 4) != 0) {
return capacity_; }
else {
return CapacityDefaultValue; } }
178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
179 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
181 get {
return (_hasBits0 & 4) != 0; }
184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
185 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
192 private readonly
static long UnitCostDefaultValue = 0L;
194 private long unitCost_;
199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
200 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
202 get {
if ((_hasBits0 & 8) != 0) {
return unitCost_; }
else {
return UnitCostDefaultValue; } }
209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
210 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
212 get {
return (_hasBits0 & 8) != 0; }
215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
216 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
222 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
223 public override bool Equals(
object other) {
227 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
228 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
230 if (ReferenceEquals(other,
null)) {
233 if (ReferenceEquals(other,
this)) {
236 if (
Tail != other.
Tail)
return false;
237 if (
Head != other.
Head)
return false;
240 return Equals(_unknownFields, other._unknownFields);
243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
244 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
251 if (_unknownFields !=
null) {
252 hash ^= _unknownFields.GetHashCode();
257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
258 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
260 return pb::JsonFormatter.ToDiagnosticString(
this);
263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
264 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
265 public void WriteTo(pb::CodedOutputStream output) {
266 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
267 output.WriteRawMessage(
this);
270 output.WriteRawTag(8);
271 output.WriteInt64(
Tail);
274 output.WriteRawTag(16);
275 output.WriteInt64(
Head);
278 output.WriteRawTag(24);
282 output.WriteRawTag(32);
285 if (_unknownFields !=
null) {
286 _unknownFields.WriteTo(output);
291 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
293 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
294 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
296 output.WriteRawTag(8);
297 output.WriteInt64(
Tail);
300 output.WriteRawTag(16);
301 output.WriteInt64(
Head);
304 output.WriteRawTag(24);
308 output.WriteRawTag(32);
311 if (_unknownFields !=
null) {
312 _unknownFields.WriteTo(ref output);
317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
318 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
322 size += 1 + pb::CodedOutputStream.ComputeInt64Size(
Tail);
325 size += 1 + pb::CodedOutputStream.ComputeInt64Size(
Head);
328 size += 1 + pb::CodedOutputStream.ComputeInt64Size(
Capacity);
331 size += 1 + pb::CodedOutputStream.ComputeInt64Size(
UnitCost);
333 if (_unknownFields !=
null) {
334 size += _unknownFields.CalculateSize();
339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
340 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
357 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
361 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
363 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
364 input.ReadRawMessage(
this);
367 while ((tag = input.ReadTag()) != 0) {
370 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
373 Tail = input.ReadInt64();
377 Head = input.ReadInt64();
393 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
395 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
396 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
398 while ((tag = input.ReadTag()) != 0) {
401 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
404 Tail = input.ReadInt64();
408 Head = input.ReadInt64();
428 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
432 private static readonly pb::MessageParser<FlowNodeProto> _parser =
new pb::MessageParser<FlowNodeProto>(() =>
new FlowNodeProto());
433 private pb::UnknownFieldSet _unknownFields;
434 private int _hasBits0;
435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
436 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
437 public static pb::MessageParser<FlowNodeProto> Parser {
get {
return _parser; } }
439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
440 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
441 public static pbr::MessageDescriptor Descriptor {
442 get {
return global::Google.OrTools.Graph.FlowProblemReflection.Descriptor.MessageTypes[1]; }
445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
446 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
447 pbr::MessageDescriptor pb::IMessage.Descriptor {
448 get {
return Descriptor; }
451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
452 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
457 partial
void OnConstruction();
459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
462 _hasBits0 = other._hasBits0;
464 supply_ = other.supply_;
465 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
469 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
475 public const int IdFieldNumber = 1;
476 private readonly
static long IdDefaultValue = 0L;
484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
485 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
487 get {
if ((_hasBits0 & 1) != 0) {
return id_; }
else {
return IdDefaultValue; } }
494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
495 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
497 get {
return (_hasBits0 & 1) != 0; }
500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
501 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
507 public const int SupplyFieldNumber = 2;
508 private readonly
static long SupplyDefaultValue = 0L;
510 private long supply_;
515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
516 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
518 get {
if ((_hasBits0 & 2) != 0) {
return supply_; }
else {
return SupplyDefaultValue; } }
525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
526 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
527 public bool HasSupply {
528 get {
return (_hasBits0 & 2) != 0; }
531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
532 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
538 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
539 public override bool Equals(
object other) {
543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
546 if (ReferenceEquals(other,
null)) {
549 if (ReferenceEquals(other,
this)) {
552 if (Id != other.
Id)
return false;
553 if (Supply != other.
Supply)
return false;
554 return Equals(_unknownFields, other._unknownFields);
557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
558 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
561 if (HasId) hash ^= Id.GetHashCode();
562 if (HasSupply) hash ^= Supply.GetHashCode();
563 if (_unknownFields !=
null) {
564 hash ^= _unknownFields.GetHashCode();
569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
570 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
572 return pb::JsonFormatter.ToDiagnosticString(
this);
575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
576 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
577 public void WriteTo(pb::CodedOutputStream output) {
578 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
579 output.WriteRawMessage(
this);
582 output.WriteRawTag(8);
583 output.WriteInt64(Id);
586 output.WriteRawTag(16);
587 output.WriteInt64(Supply);
589 if (_unknownFields !=
null) {
590 _unknownFields.WriteTo(output);
595 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
597 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
598 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
600 output.WriteRawTag(8);
601 output.WriteInt64(Id);
604 output.WriteRawTag(16);
605 output.WriteInt64(Supply);
607 if (_unknownFields !=
null) {
608 _unknownFields.WriteTo(ref output);
613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
614 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
618 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Id);
621 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Supply);
623 if (_unknownFields !=
null) {
624 size += _unknownFields.CalculateSize();
629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
630 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
641 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
645 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
647 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
648 input.ReadRawMessage(
this);
651 while ((tag = input.ReadTag()) != 0) {
654 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
657 Id = input.ReadInt64();
661 Supply = input.ReadInt64();
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) {
674 while ((tag = input.ReadTag()) != 0) {
677 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
680 Id = input.ReadInt64();
684 Supply = input.ReadInt64();
699 #
if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
703 private static readonly pb::MessageParser<FlowModelProto> _parser =
new pb::MessageParser<FlowModelProto>(() =>
new FlowModelProto());
704 private pb::UnknownFieldSet _unknownFields;
705 private int _hasBits0;
706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
707 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
708 public static pb::MessageParser<FlowModelProto> Parser {
get {
return _parser; } }
710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
711 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
712 public static pbr::MessageDescriptor Descriptor {
713 get {
return global::Google.OrTools.Graph.FlowProblemReflection.Descriptor.MessageTypes[2]; }
716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
717 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
718 pbr::MessageDescriptor pb::IMessage.Descriptor {
719 get {
return Descriptor; }
722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
723 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
728 partial
void OnConstruction();
730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
731 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
733 _hasBits0 = other._hasBits0;
734 nodes_ = other.nodes_.Clone();
735 arcs_ = other.arcs_.Clone();
736 problemType_ = other.problemType_;
737 _unknownFields = pb::UnknownFieldSet.
Clone(other._unknownFields);
740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
741 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
747 public const int NodesFieldNumber = 1;
748 private static readonly pb::FieldCodec<global::Google.OrTools.Graph.FlowNodeProto> _repeated_nodes_codec
749 = pb::FieldCodec.ForMessage(10, global::Google.OrTools.Graph.FlowNodeProto.Parser);
750 private readonly pbc::RepeatedField<global::Google.OrTools.Graph.FlowNodeProto> nodes_ =
new pbc::RepeatedField<global::Google.OrTools.Graph.FlowNodeProto>();
751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
752 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
753 public pbc::RepeatedField<global::Google.OrTools.Graph.FlowNodeProto> Nodes {
754 get { return nodes_; }
758 public const int ArcsFieldNumber = 2;
759 private static readonly pb::FieldCodec<global::Google.OrTools.Graph.FlowArcProto> _repeated_arcs_codec
760 = pb::FieldCodec.ForMessage(18, global::Google.OrTools.Graph.FlowArcProto.Parser);
761 private readonly pbc::RepeatedField<global::Google.OrTools.Graph.FlowArcProto> arcs_ =
new pbc::RepeatedField<global::Google.OrTools.Graph.FlowArcProto>();
762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
763 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
764 public pbc::RepeatedField<global::Google.OrTools.Graph.FlowArcProto> Arcs {
765 get { return arcs_; }
769 public const int ProblemTypeFieldNumber = 3;
770 private readonly
static global::Google.OrTools.Graph.
FlowModelProto.Types.ProblemType ProblemTypeDefaultValue = global::Google.OrTools.Graph.FlowModelProto.Types.ProblemType.LinearSumAssignment;
772 private global::Google.OrTools.Graph.FlowModelProto.Types.ProblemType problemType_;
773 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
774 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
775 public global::Google.OrTools.Graph.FlowModelProto.Types.ProblemType ProblemType {
776 get { if ((_hasBits0 & 1) != 0) { return problemType_; } else { return ProblemTypeDefaultValue; } }
779 problemType_ = value;
783 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
784 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
785 public bool HasProblemType {
786 get {
return (_hasBits0 & 1) != 0; }
789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
790 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
796 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
797 public override bool Equals(
object other) {
801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
802 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
804 if (ReferenceEquals(other,
null)) {
807 if (ReferenceEquals(other,
this)) {
810 if(!nodes_.Equals(other.nodes_))
return false;
811 if(!arcs_.Equals(other.arcs_))
return false;
812 if (ProblemType != other.
ProblemType)
return false;
813 return Equals(_unknownFields, other._unknownFields);
816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
817 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
820 hash ^= nodes_.GetHashCode();
821 hash ^= arcs_.GetHashCode();
822 if (HasProblemType) hash ^= ProblemType.GetHashCode();
823 if (_unknownFields !=
null) {
824 hash ^= _unknownFields.GetHashCode();
829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
830 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
832 return pb::JsonFormatter.ToDiagnosticString(
this);
835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
836 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
837 public void WriteTo(pb::CodedOutputStream output) {
838 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
839 output.WriteRawMessage(
this);
841 nodes_.WriteTo(output, _repeated_nodes_codec);
842 arcs_.WriteTo(output, _repeated_arcs_codec);
843 if (HasProblemType) {
844 output.WriteRawTag(24);
845 output.WriteEnum((
int) ProblemType);
847 if (_unknownFields !=
null) {
848 _unknownFields.WriteTo(output);
853 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
855 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
856 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
857 nodes_.WriteTo(ref output, _repeated_nodes_codec);
858 arcs_.WriteTo(ref output, _repeated_arcs_codec);
859 if (HasProblemType) {
860 output.WriteRawTag(24);
861 output.WriteEnum((
int) ProblemType);
863 if (_unknownFields !=
null) {
864 _unknownFields.WriteTo(ref output);
869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
870 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
873 size += nodes_.CalculateSize(_repeated_nodes_codec);
874 size += arcs_.CalculateSize(_repeated_arcs_codec);
875 if (HasProblemType) {
876 size += 1 + pb::CodedOutputStream.ComputeEnumSize((
int) ProblemType);
878 if (_unknownFields !=
null) {
879 size += _unknownFields.CalculateSize();
884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
885 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
890 nodes_.Add(other.nodes_);
891 arcs_.Add(other.arcs_);
895 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
899 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
901 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
902 input.ReadRawMessage(
this);
905 while ((tag = input.ReadTag()) != 0) {
908 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
911 nodes_.AddEntriesFrom(input, _repeated_nodes_codec);
915 arcs_.AddEntriesFrom(input, _repeated_arcs_codec);
919 ProblemType = (global::Google.OrTools.Graph.FlowModelProto.Types.ProblemType) input.ReadEnum();
927 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
929 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
930 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
932 while ((tag = input.ReadTag()) != 0) {
935 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
938 nodes_.AddEntriesFrom(ref input, _repeated_nodes_codec);
942 arcs_.AddEntriesFrom(ref input, _repeated_arcs_codec);
946 ProblemType = (global::Google.OrTools.Graph.FlowModelProto.Types.ProblemType) input.ReadEnum();
956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
957 [global::System.CodeDom.Compiler.GeneratedCode(
"protoc",
null)]
964 [pbr::OriginalName(
"MAX_FLOW")]
MaxFlow = 1,
965 [pbr::OriginalName(
"MIN_COST_FLOW")]
MinCostFlow = 2,