6package com.google.ortools.pdlp;
16@com.google.protobuf.Generated
17public final class InfeasibilityInformation
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 InfeasibilityInformation.class.getName());
32 private InfeasibilityInformation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private InfeasibilityInformation() {
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.pdlp.InfeasibilityInformation.class, com.google.ortools.pdlp.InfeasibilityInformation.Builder.class);
52 private int bitField0_;
54 private double maxPrimalRayInfeasibility_ = 0D;
72 return ((bitField0_ & 0x00000001) != 0);
91 return maxPrimalRayInfeasibility_;
95 private double primalRayLinearObjective_ = 0D;
108 return ((bitField0_ & 0x00000002) != 0);
122 return primalRayLinearObjective_;
126 private double primalRayQuadraticNorm_ = 0D;
139 return ((bitField0_ & 0x00000004) != 0);
153 return primalRayQuadraticNorm_;
157 private double maxDualRayInfeasibility_ = 0D;
177 return ((bitField0_ & 0x00000008) != 0);
198 return maxDualRayInfeasibility_;
202 private double dualRayObjective_ = 0D;
213 return ((bitField0_ & 0x00000010) != 0);
225 return dualRayObjective_;
229 private int candidateType_ = 0;
239 return ((bitField0_ & 0x00000020) != 0);
254 private byte memoizedIsInitialized = -1;
261 memoizedIsInitialized = 1;
266 public void writeTo(com.google.protobuf.CodedOutputStream output)
267 throws java.io.IOException {
268 if (((bitField0_ & 0x00000001) != 0)) {
269 output.writeDouble(1, maxPrimalRayInfeasibility_);
271 if (((bitField0_ & 0x00000002) != 0)) {
272 output.writeDouble(2, primalRayLinearObjective_);
274 if (((bitField0_ & 0x00000004) != 0)) {
275 output.writeDouble(3, primalRayQuadraticNorm_);
277 if (((bitField0_ & 0x00000008) != 0)) {
278 output.writeDouble(4, maxDualRayInfeasibility_);
280 if (((bitField0_ & 0x00000010) != 0)) {
281 output.writeDouble(5, dualRayObjective_);
283 if (((bitField0_ & 0x00000020) != 0)) {
284 output.writeEnum(6, candidateType_);
286 getUnknownFields().writeTo(output);
291 int size = memoizedSize;
292 if (size != -1)
return size;
295 if (((bitField0_ & 0x00000001) != 0)) {
296 size += com.google.protobuf.CodedOutputStream
297 .computeDoubleSize(1, maxPrimalRayInfeasibility_);
299 if (((bitField0_ & 0x00000002) != 0)) {
300 size += com.google.protobuf.CodedOutputStream
301 .computeDoubleSize(2, primalRayLinearObjective_);
303 if (((bitField0_ & 0x00000004) != 0)) {
304 size += com.google.protobuf.CodedOutputStream
305 .computeDoubleSize(3, primalRayQuadraticNorm_);
307 if (((bitField0_ & 0x00000008) != 0)) {
308 size += com.google.protobuf.CodedOutputStream
309 .computeDoubleSize(4, maxDualRayInfeasibility_);
311 if (((bitField0_ & 0x00000010) != 0)) {
312 size += com.google.protobuf.CodedOutputStream
313 .computeDoubleSize(5, dualRayObjective_);
315 if (((bitField0_ & 0x00000020) != 0)) {
316 size += com.google.protobuf.CodedOutputStream
317 .computeEnumSize(6, candidateType_);
319 size += getUnknownFields().getSerializedSize();
325 public boolean equals(
final java.lang.Object obj) {
329 if (!(obj instanceof com.google.ortools.pdlp.InfeasibilityInformation)) {
330 return super.equals(obj);
337 != java.lang.Double.doubleToLongBits(
343 != java.lang.Double.doubleToLongBits(
349 != java.lang.Double.doubleToLongBits(
355 != java.lang.Double.doubleToLongBits(
361 != java.lang.Double.doubleToLongBits(
366 if (candidateType_ != other.candidateType_)
return false;
368 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
374 if (memoizedHashCode != 0) {
375 return memoizedHashCode;
381 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
386 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
391 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
396 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
401 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
406 hash = (53 * hash) + candidateType_;
408 hash = (29 * hash) + getUnknownFields().hashCode();
409 memoizedHashCode = hash;
414 java.nio.ByteBuffer data)
415 throws com.google.protobuf.InvalidProtocolBufferException {
416 return PARSER.parseFrom(data);
419 java.nio.ByteBuffer data,
420 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
421 throws com.google.protobuf.InvalidProtocolBufferException {
422 return PARSER.parseFrom(data, extensionRegistry);
425 com.google.protobuf.ByteString data)
426 throws com.google.protobuf.InvalidProtocolBufferException {
427 return PARSER.parseFrom(data);
430 com.google.protobuf.ByteString data,
431 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
432 throws com.google.protobuf.InvalidProtocolBufferException {
433 return PARSER.parseFrom(data, extensionRegistry);
436 throws com.google.protobuf.InvalidProtocolBufferException {
437 return PARSER.parseFrom(data);
441 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
442 throws com.google.protobuf.InvalidProtocolBufferException {
443 return PARSER.parseFrom(data, extensionRegistry);
446 throws java.io.IOException {
447 return com.google.protobuf.GeneratedMessage
448 .parseWithIOException(PARSER, input);
451 java.io.InputStream input,
452 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
453 throws java.io.IOException {
454 return com.google.protobuf.GeneratedMessage
455 .parseWithIOException(PARSER, input, extensionRegistry);
459 throws java.io.IOException {
460 return com.google.protobuf.GeneratedMessage
461 .parseDelimitedWithIOException(PARSER, input);
465 java.io.InputStream input,
466 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
467 throws java.io.IOException {
468 return com.google.protobuf.GeneratedMessage
469 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
472 com.google.protobuf.CodedInputStream input)
473 throws java.io.IOException {
474 return com.google.protobuf.GeneratedMessage
475 .parseWithIOException(PARSER, input);
478 com.google.protobuf.CodedInputStream input,
479 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
480 throws java.io.IOException {
481 return com.google.protobuf.GeneratedMessage
482 .parseWithIOException(PARSER, input, extensionRegistry);
488 return DEFAULT_INSTANCE.toBuilder();
491 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
495 return this == DEFAULT_INSTANCE
501 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
513 public static final class Builder
extends
514 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
517 public static final com.google.protobuf.Descriptors.Descriptor
519 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
523 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
525 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_fieldAccessorTable
526 .ensureFieldAccessorsInitialized(
527 com.google.ortools.pdlp.InfeasibilityInformation.class, com.google.ortools.pdlp.InfeasibilityInformation.Builder.class);
536 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
544 maxPrimalRayInfeasibility_ = 0D;
545 primalRayLinearObjective_ = 0D;
546 primalRayQuadraticNorm_ = 0D;
547 maxDualRayInfeasibility_ = 0D;
548 dualRayObjective_ = 0D;
554 public com.google.protobuf.Descriptors.Descriptor
556 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_InfeasibilityInformation_descriptor;
561 return com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance();
568 throw newUninitializedMessageException(result);
576 if (bitField0_ != 0) { buildPartial0(result); }
581 private void buildPartial0(com.google.ortools.pdlp.InfeasibilityInformation result) {
582 int from_bitField0_ = bitField0_;
583 int to_bitField0_ = 0;
584 if (((from_bitField0_ & 0x00000001) != 0)) {
585 result.maxPrimalRayInfeasibility_ = maxPrimalRayInfeasibility_;
586 to_bitField0_ |= 0x00000001;
588 if (((from_bitField0_ & 0x00000002) != 0)) {
589 result.primalRayLinearObjective_ = primalRayLinearObjective_;
590 to_bitField0_ |= 0x00000002;
592 if (((from_bitField0_ & 0x00000004) != 0)) {
593 result.primalRayQuadraticNorm_ = primalRayQuadraticNorm_;
594 to_bitField0_ |= 0x00000004;
596 if (((from_bitField0_ & 0x00000008) != 0)) {
597 result.maxDualRayInfeasibility_ = maxDualRayInfeasibility_;
598 to_bitField0_ |= 0x00000008;
600 if (((from_bitField0_ & 0x00000010) != 0)) {
601 result.dualRayObjective_ = dualRayObjective_;
602 to_bitField0_ |= 0x00000010;
604 if (((from_bitField0_ & 0x00000020) != 0)) {
605 result.candidateType_ = candidateType_;
606 to_bitField0_ |= 0x00000020;
608 result.bitField0_ |= to_bitField0_;
612 public Builder
mergeFrom(com.google.protobuf.Message other) {
613 if (other instanceof com.google.ortools.pdlp.InfeasibilityInformation) {
614 return mergeFrom((com.google.ortools.pdlp.InfeasibilityInformation)other);
616 super.mergeFrom(other);
621 public Builder
mergeFrom(com.google.ortools.pdlp.InfeasibilityInformation other) {
622 if (other == com.google.ortools.pdlp.InfeasibilityInformation.getDefaultInstance())
return this;
623 if (other.hasMaxPrimalRayInfeasibility()) {
626 if (other.hasPrimalRayLinearObjective()) {
629 if (other.hasPrimalRayQuadraticNorm()) {
632 if (other.hasMaxDualRayInfeasibility()) {
635 if (other.hasDualRayObjective()) {
638 if (other.hasCandidateType()) {
641 this.mergeUnknownFields(other.getUnknownFields());
653 com.google.protobuf.CodedInputStream input,
654 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
655 throws java.io.IOException {
656 if (extensionRegistry ==
null) {
657 throw new java.lang.NullPointerException();
660 boolean done =
false;
662 int tag = input.readTag();
668 maxPrimalRayInfeasibility_ = input.readDouble();
669 bitField0_ |= 0x00000001;
673 primalRayLinearObjective_ = input.readDouble();
674 bitField0_ |= 0x00000002;
678 primalRayQuadraticNorm_ = input.readDouble();
679 bitField0_ |= 0x00000004;
683 maxDualRayInfeasibility_ = input.readDouble();
684 bitField0_ |= 0x00000008;
688 dualRayObjective_ = input.readDouble();
689 bitField0_ |= 0x00000010;
693 int tmpRaw = input.readEnum();
695 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
696 if (tmpValue ==
null) {
697 mergeUnknownVarintField(6, tmpRaw);
699 candidateType_ = tmpRaw;
700 bitField0_ |= 0x00000020;
705 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
712 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
713 throw e.unwrapIOException();
719 private int bitField0_;
721 private double maxPrimalRayInfeasibility_ ;
739 return ((bitField0_ & 0x00000001) != 0);
758 return maxPrimalRayInfeasibility_;
778 maxPrimalRayInfeasibility_ = value;
779 bitField0_ |= 0x00000001;
799 bitField0_ = (bitField0_ & ~0x00000001);
800 maxPrimalRayInfeasibility_ = 0D;
805 private double primalRayLinearObjective_ ;
818 return ((bitField0_ & 0x00000002) != 0);
832 return primalRayLinearObjective_;
847 primalRayLinearObjective_ = value;
848 bitField0_ |= 0x00000002;
863 bitField0_ = (bitField0_ & ~0x00000002);
864 primalRayLinearObjective_ = 0D;
869 private double primalRayQuadraticNorm_ ;
882 return ((bitField0_ & 0x00000004) != 0);
896 return primalRayQuadraticNorm_;
911 primalRayQuadraticNorm_ = value;
912 bitField0_ |= 0x00000004;
927 bitField0_ = (bitField0_ & ~0x00000004);
928 primalRayQuadraticNorm_ = 0D;
933 private double maxDualRayInfeasibility_ ;
953 return ((bitField0_ & 0x00000008) != 0);
974 return maxDualRayInfeasibility_;
996 maxDualRayInfeasibility_ = value;
997 bitField0_ |= 0x00000008;
1019 bitField0_ = (bitField0_ & ~0x00000008);
1020 maxDualRayInfeasibility_ = 0D;
1025 private double dualRayObjective_ ;
1036 return ((bitField0_ & 0x00000010) != 0);
1048 return dualRayObjective_;
1061 dualRayObjective_ = value;
1062 bitField0_ |= 0x00000010;
1075 bitField0_ = (bitField0_ & ~0x00000010);
1076 dualRayObjective_ = 0D;
1081 private int candidateType_ = 0;
1091 return ((bitField0_ & 0x00000020) != 0);
1116 if (value ==
null) {
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();
1172 public static com.google.protobuf.Parser<InfeasibilityInformation>
parser() {
1183 return DEFAULT_INSTANCE;