5package com.google.ortools.pdlp;
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.pdlp.InfeasibilityInformation.class, com.google.ortools.pdlp.InfeasibilityInformation.Builder.class);
50 private int bitField0_;
52 private double maxPrimalRayInfeasibility_ = 0D;
70 return ((bitField0_ & 0x00000001) != 0);
89 return maxPrimalRayInfeasibility_;
93 private double primalRayLinearObjective_ = 0D;
106 return ((bitField0_ & 0x00000002) != 0);
120 return primalRayLinearObjective_;
124 private double primalRayQuadraticNorm_ = 0D;
137 return ((bitField0_ & 0x00000004) != 0);
151 return primalRayQuadraticNorm_;
155 private double maxDualRayInfeasibility_ = 0D;
175 return ((bitField0_ & 0x00000008) != 0);
196 return maxDualRayInfeasibility_;
200 private double dualRayObjective_ = 0D;
211 return ((bitField0_ & 0x00000010) != 0);
223 return dualRayObjective_;
227 private int candidateType_ = 0;
237 return ((bitField0_ & 0x00000020) != 0);
249 return result ==
null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
252 private byte memoizedIsInitialized = -1;
259 memoizedIsInitialized = 1;
264 public void writeTo(com.google.protobuf.CodedOutputStream output)
265 throws java.io.IOException {
266 if (((bitField0_ & 0x00000001) != 0)) {
267 output.writeDouble(1, maxPrimalRayInfeasibility_);
269 if (((bitField0_ & 0x00000002) != 0)) {
270 output.writeDouble(2, primalRayLinearObjective_);
272 if (((bitField0_ & 0x00000004) != 0)) {
273 output.writeDouble(3, primalRayQuadraticNorm_);
275 if (((bitField0_ & 0x00000008) != 0)) {
276 output.writeDouble(4, maxDualRayInfeasibility_);
278 if (((bitField0_ & 0x00000010) != 0)) {
279 output.writeDouble(5, dualRayObjective_);
281 if (((bitField0_ & 0x00000020) != 0)) {
282 output.writeEnum(6, candidateType_);
284 getUnknownFields().writeTo(output);
289 int size = memoizedSize;
290 if (size != -1)
return size;
293 if (((bitField0_ & 0x00000001) != 0)) {
294 size += com.google.protobuf.CodedOutputStream
295 .computeDoubleSize(1, maxPrimalRayInfeasibility_);
297 if (((bitField0_ & 0x00000002) != 0)) {
298 size += com.google.protobuf.CodedOutputStream
299 .computeDoubleSize(2, primalRayLinearObjective_);
301 if (((bitField0_ & 0x00000004) != 0)) {
302 size += com.google.protobuf.CodedOutputStream
303 .computeDoubleSize(3, primalRayQuadraticNorm_);
305 if (((bitField0_ & 0x00000008) != 0)) {
306 size += com.google.protobuf.CodedOutputStream
307 .computeDoubleSize(4, maxDualRayInfeasibility_);
309 if (((bitField0_ & 0x00000010) != 0)) {
310 size += com.google.protobuf.CodedOutputStream
311 .computeDoubleSize(5, dualRayObjective_);
313 if (((bitField0_ & 0x00000020) != 0)) {
314 size += com.google.protobuf.CodedOutputStream
315 .computeEnumSize(6, candidateType_);
317 size += getUnknownFields().getSerializedSize();
323 public boolean equals(
final java.lang.Object obj) {
327 if (!(obj instanceof com.google.ortools.pdlp.InfeasibilityInformation)) {
328 return super.equals(obj);
335 != java.lang.Double.doubleToLongBits(
341 != java.lang.Double.doubleToLongBits(
347 != java.lang.Double.doubleToLongBits(
353 != java.lang.Double.doubleToLongBits(
359 != java.lang.Double.doubleToLongBits(
364 if (candidateType_ != other.candidateType_)
return false;
366 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
372 if (memoizedHashCode != 0) {
373 return memoizedHashCode;
379 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
384 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
389 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
394 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
399 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
404 hash = (53 * hash) + candidateType_;
406 hash = (29 * hash) + getUnknownFields().hashCode();
407 memoizedHashCode = hash;
412 java.nio.ByteBuffer data)
413 throws com.google.protobuf.InvalidProtocolBufferException {
414 return PARSER.parseFrom(data);
417 java.nio.ByteBuffer data,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws com.google.protobuf.InvalidProtocolBufferException {
420 return PARSER.parseFrom(data, extensionRegistry);
423 com.google.protobuf.ByteString data)
424 throws com.google.protobuf.InvalidProtocolBufferException {
425 return PARSER.parseFrom(data);
428 com.google.protobuf.ByteString data,
429 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
430 throws com.google.protobuf.InvalidProtocolBufferException {
431 return PARSER.parseFrom(data, extensionRegistry);
434 throws com.google.protobuf.InvalidProtocolBufferException {
435 return PARSER.parseFrom(data);
439 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
440 throws com.google.protobuf.InvalidProtocolBufferException {
441 return PARSER.parseFrom(data, extensionRegistry);
444 throws java.io.IOException {
445 return com.google.protobuf.GeneratedMessage
446 .parseWithIOException(PARSER, input);
449 java.io.InputStream input,
450 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
451 throws java.io.IOException {
452 return com.google.protobuf.GeneratedMessage
453 .parseWithIOException(PARSER, input, extensionRegistry);
457 throws java.io.IOException {
458 return com.google.protobuf.GeneratedMessage
459 .parseDelimitedWithIOException(PARSER, input);
463 java.io.InputStream input,
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws java.io.IOException {
466 return com.google.protobuf.GeneratedMessage
467 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
470 com.google.protobuf.CodedInputStream input)
471 throws java.io.IOException {
472 return com.google.protobuf.GeneratedMessage
473 .parseWithIOException(PARSER, input);
476 com.google.protobuf.CodedInputStream input,
477 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
478 throws java.io.IOException {
479 return com.google.protobuf.GeneratedMessage
480 .parseWithIOException(PARSER, input, extensionRegistry);
493 return this == DEFAULT_INSTANCE
499 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
512 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
515 public static final com.google.protobuf.Descriptors.Descriptor
517 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
521 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
523 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_fieldAccessorTable
524 .ensureFieldAccessorsInitialized(
525 com.google.ortools.pdlp.InfeasibilityInformation.class, com.google.ortools.pdlp.InfeasibilityInformation.Builder.class);
534 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
542 maxPrimalRayInfeasibility_ = 0D;
543 primalRayLinearObjective_ = 0D;
544 primalRayQuadraticNorm_ = 0D;
545 maxDualRayInfeasibility_ = 0D;
546 dualRayObjective_ = 0D;
552 public com.google.protobuf.Descriptors.Descriptor
554 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
559 return com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance();
566 throw newUninitializedMessageException(result);
574 if (bitField0_ != 0) { buildPartial0(result); }
579 private void buildPartial0(com.google.ortools.pdlp.InfeasibilityInformation result) {
580 int from_bitField0_ = bitField0_;
581 int to_bitField0_ = 0;
582 if (((from_bitField0_ & 0x00000001) != 0)) {
583 result.maxPrimalRayInfeasibility_ = maxPrimalRayInfeasibility_;
584 to_bitField0_ |= 0x00000001;
586 if (((from_bitField0_ & 0x00000002) != 0)) {
587 result.primalRayLinearObjective_ = primalRayLinearObjective_;
588 to_bitField0_ |= 0x00000002;
590 if (((from_bitField0_ & 0x00000004) != 0)) {
591 result.primalRayQuadraticNorm_ = primalRayQuadraticNorm_;
592 to_bitField0_ |= 0x00000004;
594 if (((from_bitField0_ & 0x00000008) != 0)) {
595 result.maxDualRayInfeasibility_ = maxDualRayInfeasibility_;
596 to_bitField0_ |= 0x00000008;
598 if (((from_bitField0_ & 0x00000010) != 0)) {
599 result.dualRayObjective_ = dualRayObjective_;
600 to_bitField0_ |= 0x00000010;
602 if (((from_bitField0_ & 0x00000020) != 0)) {
603 result.candidateType_ = candidateType_;
604 to_bitField0_ |= 0x00000020;
606 result.bitField0_ |= to_bitField0_;
611 if (other instanceof com.google.ortools.pdlp.InfeasibilityInformation) {
612 return mergeFrom((com.google.ortools.pdlp.InfeasibilityInformation)other);
614 super.mergeFrom(other);
620 if (other == com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance())
return this;
621 if (other.hasMaxPrimalRayInfeasibility()) {
624 if (other.hasPrimalRayLinearObjective()) {
627 if (other.hasPrimalRayQuadraticNorm()) {
630 if (other.hasMaxDualRayInfeasibility()) {
633 if (other.hasDualRayObjective()) {
636 if (other.hasCandidateType()) {
639 this.mergeUnknownFields(other.getUnknownFields());
651 com.google.protobuf.CodedInputStream input,
652 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
653 throws java.io.IOException {
654 if (extensionRegistry ==
null) {
655 throw new java.lang.NullPointerException();
658 boolean done =
false;
660 int tag = input.readTag();
666 maxPrimalRayInfeasibility_ = input.readDouble();
667 bitField0_ |= 0x00000001;
671 primalRayLinearObjective_ = input.readDouble();
672 bitField0_ |= 0x00000002;
676 primalRayQuadraticNorm_ = input.readDouble();
677 bitField0_ |= 0x00000004;
681 maxDualRayInfeasibility_ = input.readDouble();
682 bitField0_ |= 0x00000008;
686 dualRayObjective_ = input.readDouble();
687 bitField0_ |= 0x00000010;
691 int tmpRaw = input.readEnum();
693 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
694 if (tmpValue ==
null) {
695 mergeUnknownVarintField(6, tmpRaw);
697 candidateType_ = tmpRaw;
698 bitField0_ |= 0x00000020;
703 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
710 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
711 throw e.unwrapIOException();
717 private int bitField0_;
719 private double maxPrimalRayInfeasibility_ ;
737 return ((bitField0_ & 0x00000001) != 0);
756 return maxPrimalRayInfeasibility_;
776 maxPrimalRayInfeasibility_ = value;
777 bitField0_ |= 0x00000001;
797 bitField0_ = (bitField0_ & ~0x00000001);
798 maxPrimalRayInfeasibility_ = 0D;
803 private double primalRayLinearObjective_ ;
816 return ((bitField0_ & 0x00000002) != 0);
830 return primalRayLinearObjective_;
845 primalRayLinearObjective_ = value;
846 bitField0_ |= 0x00000002;
861 bitField0_ = (bitField0_ & ~0x00000002);
862 primalRayLinearObjective_ = 0D;
867 private double primalRayQuadraticNorm_ ;
880 return ((bitField0_ & 0x00000004) != 0);
894 return primalRayQuadraticNorm_;
909 primalRayQuadraticNorm_ = value;
910 bitField0_ |= 0x00000004;
925 bitField0_ = (bitField0_ & ~0x00000004);
926 primalRayQuadraticNorm_ = 0D;
931 private double maxDualRayInfeasibility_ ;
951 return ((bitField0_ & 0x00000008) != 0);
972 return maxDualRayInfeasibility_;
994 maxDualRayInfeasibility_ = value;
995 bitField0_ |= 0x00000008;
1017 bitField0_ = (bitField0_ & ~0x00000008);
1018 maxDualRayInfeasibility_ = 0D;
1023 private double dualRayObjective_ ;
1034 return ((bitField0_ & 0x00000010) != 0);
1046 return dualRayObjective_;
1059 dualRayObjective_ = value;
1060 bitField0_ |= 0x00000010;
1073 bitField0_ = (bitField0_ & ~0x00000010);
1074 dualRayObjective_ = 0D;
1079 private int candidateType_ = 0;
1089 return ((bitField0_ & 0x00000020) != 0);
1102 return result ==
null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
1114 if (value ==
null) {
1115 throw new NullPointerException();
1117 bitField0_ |= 0x00000020;
1118 candidateType_ = value.getNumber();
1131 bitField0_ = (bitField0_ & ~0x00000020);
1143 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.InfeasibilityInformation();
1147 return DEFAULT_INSTANCE;
1154 com.google.protobuf.CodedInputStream input,
1155 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1156 throws com.google.protobuf.InvalidProtocolBufferException {
1159 builder.mergeFrom(input, extensionRegistry);
1160 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1161 throw e.setUnfinishedMessage(builder.buildPartial());
1162 }
catch (com.google.protobuf.UninitializedMessageException e) {
1163 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1164 }
catch (java.io.IOException e) {
1165 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1166 .setUnfinishedMessage(builder.buildPartial());
1168 return builder.buildPartial();
1183 return DEFAULT_INSTANCE;