6package com.google.ortools.pdlp;
16public final class InfeasibilityInformation
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 InfeasibilityInformation.class.getName());
31 private InfeasibilityInformation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private InfeasibilityInformation() {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.pdlp.InfeasibilityInformation.class, com.google.ortools.pdlp.InfeasibilityInformation.Builder.class);
51 private int bitField0_;
53 private double maxPrimalRayInfeasibility_ = 0D;
71 return ((bitField0_ & 0x00000001) != 0);
90 return maxPrimalRayInfeasibility_;
94 private double primalRayLinearObjective_ = 0D;
107 return ((bitField0_ & 0x00000002) != 0);
121 return primalRayLinearObjective_;
125 private double primalRayQuadraticNorm_ = 0D;
138 return ((bitField0_ & 0x00000004) != 0);
152 return primalRayQuadraticNorm_;
156 private double maxDualRayInfeasibility_ = 0D;
176 return ((bitField0_ & 0x00000008) != 0);
197 return maxDualRayInfeasibility_;
201 private double dualRayObjective_ = 0D;
212 return ((bitField0_ & 0x00000010) != 0);
224 return dualRayObjective_;
228 private int candidateType_ = 0;
238 return ((bitField0_ & 0x00000020) != 0);
253 private byte memoizedIsInitialized = -1;
260 memoizedIsInitialized = 1;
265 public void writeTo(com.google.protobuf.CodedOutputStream output)
266 throws java.io.IOException {
267 if (((bitField0_ & 0x00000001) != 0)) {
268 output.writeDouble(1, maxPrimalRayInfeasibility_);
270 if (((bitField0_ & 0x00000002) != 0)) {
271 output.writeDouble(2, primalRayLinearObjective_);
273 if (((bitField0_ & 0x00000004) != 0)) {
274 output.writeDouble(3, primalRayQuadraticNorm_);
276 if (((bitField0_ & 0x00000008) != 0)) {
277 output.writeDouble(4, maxDualRayInfeasibility_);
279 if (((bitField0_ & 0x00000010) != 0)) {
280 output.writeDouble(5, dualRayObjective_);
282 if (((bitField0_ & 0x00000020) != 0)) {
283 output.writeEnum(6, candidateType_);
285 getUnknownFields().writeTo(output);
290 int size = memoizedSize;
291 if (size != -1)
return size;
294 if (((bitField0_ & 0x00000001) != 0)) {
295 size += com.google.protobuf.CodedOutputStream
296 .computeDoubleSize(1, maxPrimalRayInfeasibility_);
298 if (((bitField0_ & 0x00000002) != 0)) {
299 size += com.google.protobuf.CodedOutputStream
300 .computeDoubleSize(2, primalRayLinearObjective_);
302 if (((bitField0_ & 0x00000004) != 0)) {
303 size += com.google.protobuf.CodedOutputStream
304 .computeDoubleSize(3, primalRayQuadraticNorm_);
306 if (((bitField0_ & 0x00000008) != 0)) {
307 size += com.google.protobuf.CodedOutputStream
308 .computeDoubleSize(4, maxDualRayInfeasibility_);
310 if (((bitField0_ & 0x00000010) != 0)) {
311 size += com.google.protobuf.CodedOutputStream
312 .computeDoubleSize(5, dualRayObjective_);
314 if (((bitField0_ & 0x00000020) != 0)) {
315 size += com.google.protobuf.CodedOutputStream
316 .computeEnumSize(6, candidateType_);
318 size += getUnknownFields().getSerializedSize();
324 public boolean equals(
final java.lang.Object obj) {
328 if (!(obj instanceof com.google.ortools.pdlp.InfeasibilityInformation)) {
329 return super.equals(obj);
336 != java.lang.Double.doubleToLongBits(
342 != java.lang.Double.doubleToLongBits(
348 != java.lang.Double.doubleToLongBits(
354 != java.lang.Double.doubleToLongBits(
360 != java.lang.Double.doubleToLongBits(
365 if (candidateType_ != other.candidateType_)
return false;
367 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
373 if (memoizedHashCode != 0) {
374 return memoizedHashCode;
380 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
385 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
390 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
395 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
400 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
405 hash = (53 * hash) + candidateType_;
407 hash = (29 * hash) + getUnknownFields().hashCode();
408 memoizedHashCode = hash;
413 java.nio.ByteBuffer data)
414 throws com.google.protobuf.InvalidProtocolBufferException {
415 return PARSER.parseFrom(data);
418 java.nio.ByteBuffer data,
419 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
420 throws com.google.protobuf.InvalidProtocolBufferException {
421 return PARSER.parseFrom(data, extensionRegistry);
424 com.google.protobuf.ByteString data)
425 throws com.google.protobuf.InvalidProtocolBufferException {
426 return PARSER.parseFrom(data);
429 com.google.protobuf.ByteString data,
430 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
431 throws com.google.protobuf.InvalidProtocolBufferException {
432 return PARSER.parseFrom(data, extensionRegistry);
435 throws com.google.protobuf.InvalidProtocolBufferException {
436 return PARSER.parseFrom(data);
440 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
441 throws com.google.protobuf.InvalidProtocolBufferException {
442 return PARSER.parseFrom(data, extensionRegistry);
445 throws java.io.IOException {
446 return com.google.protobuf.GeneratedMessage
447 .parseWithIOException(PARSER, input);
450 java.io.InputStream input,
451 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
452 throws java.io.IOException {
453 return com.google.protobuf.GeneratedMessage
454 .parseWithIOException(PARSER, input, extensionRegistry);
458 throws java.io.IOException {
459 return com.google.protobuf.GeneratedMessage
460 .parseDelimitedWithIOException(PARSER, input);
464 java.io.InputStream input,
465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
466 throws java.io.IOException {
467 return com.google.protobuf.GeneratedMessage
468 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
471 com.google.protobuf.CodedInputStream input)
472 throws java.io.IOException {
473 return com.google.protobuf.GeneratedMessage
474 .parseWithIOException(PARSER, input);
477 com.google.protobuf.CodedInputStream input,
478 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
479 throws java.io.IOException {
480 return com.google.protobuf.GeneratedMessage
481 .parseWithIOException(PARSER, input, extensionRegistry);
487 return DEFAULT_INSTANCE.toBuilder();
490 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
494 return this == DEFAULT_INSTANCE
500 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
512 public static final class Builder
extends
513 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
516 public static final com.google.protobuf.Descriptors.Descriptor
518 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
522 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
524 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_fieldAccessorTable
525 .ensureFieldAccessorsInitialized(
526 com.google.ortools.pdlp.InfeasibilityInformation.class, com.google.ortools.pdlp.InfeasibilityInformation.Builder.class);
535 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
543 maxPrimalRayInfeasibility_ = 0D;
544 primalRayLinearObjective_ = 0D;
545 primalRayQuadraticNorm_ = 0D;
546 maxDualRayInfeasibility_ = 0D;
547 dualRayObjective_ = 0D;
553 public com.google.protobuf.Descriptors.Descriptor
555 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
560 return com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance();
567 throw newUninitializedMessageException(result);
575 if (bitField0_ != 0) { buildPartial0(result); }
580 private void buildPartial0(com.google.ortools.pdlp.InfeasibilityInformation result) {
581 int from_bitField0_ = bitField0_;
582 int to_bitField0_ = 0;
583 if (((from_bitField0_ & 0x00000001) != 0)) {
584 result.maxPrimalRayInfeasibility_ = maxPrimalRayInfeasibility_;
585 to_bitField0_ |= 0x00000001;
587 if (((from_bitField0_ & 0x00000002) != 0)) {
588 result.primalRayLinearObjective_ = primalRayLinearObjective_;
589 to_bitField0_ |= 0x00000002;
591 if (((from_bitField0_ & 0x00000004) != 0)) {
592 result.primalRayQuadraticNorm_ = primalRayQuadraticNorm_;
593 to_bitField0_ |= 0x00000004;
595 if (((from_bitField0_ & 0x00000008) != 0)) {
596 result.maxDualRayInfeasibility_ = maxDualRayInfeasibility_;
597 to_bitField0_ |= 0x00000008;
599 if (((from_bitField0_ & 0x00000010) != 0)) {
600 result.dualRayObjective_ = dualRayObjective_;
601 to_bitField0_ |= 0x00000010;
603 if (((from_bitField0_ & 0x00000020) != 0)) {
604 result.candidateType_ = candidateType_;
605 to_bitField0_ |= 0x00000020;
607 result.bitField0_ |= to_bitField0_;
611 public Builder
mergeFrom(com.google.protobuf.Message other) {
612 if (other instanceof com.google.ortools.pdlp.InfeasibilityInformation) {
613 return mergeFrom((com.google.ortools.pdlp.InfeasibilityInformation)other);
615 super.mergeFrom(other);
620 public Builder
mergeFrom(com.google.ortools.pdlp.InfeasibilityInformation other) {
621 if (other == com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance())
return this;
622 if (other.hasMaxPrimalRayInfeasibility()) {
625 if (other.hasPrimalRayLinearObjective()) {
628 if (other.hasPrimalRayQuadraticNorm()) {
631 if (other.hasMaxDualRayInfeasibility()) {
634 if (other.hasDualRayObjective()) {
637 if (other.hasCandidateType()) {
640 this.mergeUnknownFields(other.getUnknownFields());
652 com.google.protobuf.CodedInputStream input,
653 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
654 throws java.io.IOException {
655 if (extensionRegistry ==
null) {
656 throw new java.lang.NullPointerException();
659 boolean done =
false;
661 int tag = input.readTag();
667 maxPrimalRayInfeasibility_ = input.readDouble();
668 bitField0_ |= 0x00000001;
672 primalRayLinearObjective_ = input.readDouble();
673 bitField0_ |= 0x00000002;
677 primalRayQuadraticNorm_ = input.readDouble();
678 bitField0_ |= 0x00000004;
682 maxDualRayInfeasibility_ = input.readDouble();
683 bitField0_ |= 0x00000008;
687 dualRayObjective_ = input.readDouble();
688 bitField0_ |= 0x00000010;
692 int tmpRaw = input.readEnum();
694 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
695 if (tmpValue ==
null) {
696 mergeUnknownVarintField(6, tmpRaw);
698 candidateType_ = tmpRaw;
699 bitField0_ |= 0x00000020;
704 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
711 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
712 throw e.unwrapIOException();
718 private int bitField0_;
720 private double maxPrimalRayInfeasibility_ ;
738 return ((bitField0_ & 0x00000001) != 0);
757 return maxPrimalRayInfeasibility_;
777 maxPrimalRayInfeasibility_ = value;
778 bitField0_ |= 0x00000001;
798 bitField0_ = (bitField0_ & ~0x00000001);
799 maxPrimalRayInfeasibility_ = 0D;
804 private double primalRayLinearObjective_ ;
817 return ((bitField0_ & 0x00000002) != 0);
831 return primalRayLinearObjective_;
846 primalRayLinearObjective_ = value;
847 bitField0_ |= 0x00000002;
862 bitField0_ = (bitField0_ & ~0x00000002);
863 primalRayLinearObjective_ = 0D;
868 private double primalRayQuadraticNorm_ ;
881 return ((bitField0_ & 0x00000004) != 0);
895 return primalRayQuadraticNorm_;
910 primalRayQuadraticNorm_ = value;
911 bitField0_ |= 0x00000004;
926 bitField0_ = (bitField0_ & ~0x00000004);
927 primalRayQuadraticNorm_ = 0D;
932 private double maxDualRayInfeasibility_ ;
952 return ((bitField0_ & 0x00000008) != 0);
973 return maxDualRayInfeasibility_;
995 maxDualRayInfeasibility_ = value;
996 bitField0_ |= 0x00000008;
1018 bitField0_ = (bitField0_ & ~0x00000008);
1019 maxDualRayInfeasibility_ = 0D;
1024 private double dualRayObjective_ ;
1035 return ((bitField0_ & 0x00000010) != 0);
1047 return dualRayObjective_;
1060 dualRayObjective_ = value;
1061 bitField0_ |= 0x00000010;
1074 bitField0_ = (bitField0_ & ~0x00000010);
1075 dualRayObjective_ = 0D;
1080 private int candidateType_ = 0;
1090 return ((bitField0_ & 0x00000020) != 0);
1115 if (value ==
null) {
1116 throw new NullPointerException();
1118 bitField0_ |= 0x00000020;
1119 candidateType_ = value.getNumber();
1132 bitField0_ = (bitField0_ & ~0x00000020);
1144 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.InfeasibilityInformation();
1148 return DEFAULT_INSTANCE;
1155 com.google.protobuf.CodedInputStream input,
1156 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1157 throws com.google.protobuf.InvalidProtocolBufferException {
1160 builder.mergeFrom(input, extensionRegistry);
1161 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1162 throw e.setUnfinishedMessage(builder.buildPartial());
1163 }
catch (com.google.protobuf.UninitializedMessageException e) {
1164 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1165 }
catch (java.io.IOException e) {
1166 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1167 .setUnfinishedMessage(builder.buildPartial());
1169 return builder.buildPartial();
1173 public static com.google.protobuf.Parser<InfeasibilityInformation>
parser() {
1184 return DEFAULT_INSTANCE;