5package com.google.ortools.pdlp;
11 com.google.protobuf.GeneratedMessage implements
14private static final long serialVersionUID = 0L;
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
25 private PointMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 randomPrimalProjections_ = emptyDoubleList();
31 randomDualProjections_ = emptyDoubleList();
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
40 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
42 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
43 .ensureFieldAccessorsInitialized(
44 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
47 private int bitField0_;
49 private int pointType_ = 0;
59 return ((bitField0_ & 0x00000001) != 0);
71 return result ==
null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
75 @SuppressWarnings(
"serial")
76 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ =
87 public java.util.List<java.lang.Double>
89 return randomPrimalProjections_;
100 return randomPrimalProjections_.size();
112 return randomPrimalProjections_.getDouble(index);
114 private int randomPrimalProjectionsMemoizedSerializedSize = -1;
117 @SuppressWarnings(
"serial")
118 private com.google.protobuf.Internal.DoubleList randomDualProjections_ =
129 public java.util.List<java.lang.Double>
131 return randomDualProjections_;
142 return randomDualProjections_.size();
154 return randomDualProjections_.getDouble(index);
156 private int randomDualProjectionsMemoizedSerializedSize = -1;
159 private long activePrimalVariableCount_ = 0L;
170 return ((bitField0_ & 0x00000002) != 0);
182 return activePrimalVariableCount_;
186 private long activeDualVariableCount_ = 0L;
197 return ((bitField0_ & 0x00000004) != 0);
209 return activeDualVariableCount_;
213 private long activePrimalVariableChange_ = 0L;
225 return ((bitField0_ & 0x00000008) != 0);
238 return activePrimalVariableChange_;
242 private long activeDualVariableChange_ = 0L;
254 return ((bitField0_ & 0x00000010) != 0);
267 return activeDualVariableChange_;
270 private byte memoizedIsInitialized = -1;
277 memoizedIsInitialized = 1;
282 public void writeTo(com.google.protobuf.CodedOutputStream output)
283 throws java.io.IOException {
285 if (((bitField0_ & 0x00000001) != 0)) {
286 output.writeEnum(1, pointType_);
289 output.writeUInt32NoTag(18);
290 output.writeUInt32NoTag(randomPrimalProjectionsMemoizedSerializedSize);
292 for (
int i = 0; i < randomPrimalProjections_.size(); i++) {
293 output.writeDoubleNoTag(randomPrimalProjections_.getDouble(i));
296 output.writeUInt32NoTag(26);
297 output.writeUInt32NoTag(randomDualProjectionsMemoizedSerializedSize);
299 for (
int i = 0; i < randomDualProjections_.size(); i++) {
300 output.writeDoubleNoTag(randomDualProjections_.getDouble(i));
302 if (((bitField0_ & 0x00000002) != 0)) {
303 output.writeInt64(4, activePrimalVariableCount_);
305 if (((bitField0_ & 0x00000004) != 0)) {
306 output.writeInt64(5, activeDualVariableCount_);
308 if (((bitField0_ & 0x00000008) != 0)) {
309 output.writeInt64(6, activePrimalVariableChange_);
311 if (((bitField0_ & 0x00000010) != 0)) {
312 output.writeInt64(7, activeDualVariableChange_);
314 getUnknownFields().writeTo(output);
319 int size = memoizedSize;
320 if (size != -1)
return size;
323 if (((bitField0_ & 0x00000001) != 0)) {
324 size += com.google.protobuf.CodedOutputStream
325 .computeEnumSize(1, pointType_);
333 size += com.google.protobuf.CodedOutputStream
334 .computeInt32SizeNoTag(dataSize);
336 randomPrimalProjectionsMemoizedSerializedSize = dataSize;
344 size += com.google.protobuf.CodedOutputStream
345 .computeInt32SizeNoTag(dataSize);
347 randomDualProjectionsMemoizedSerializedSize = dataSize;
349 if (((bitField0_ & 0x00000002) != 0)) {
350 size += com.google.protobuf.CodedOutputStream
351 .computeInt64Size(4, activePrimalVariableCount_);
353 if (((bitField0_ & 0x00000004) != 0)) {
354 size += com.google.protobuf.CodedOutputStream
355 .computeInt64Size(5, activeDualVariableCount_);
357 if (((bitField0_ & 0x00000008) != 0)) {
358 size += com.google.protobuf.CodedOutputStream
359 .computeInt64Size(6, activePrimalVariableChange_);
361 if (((bitField0_ & 0x00000010) != 0)) {
362 size += com.google.protobuf.CodedOutputStream
363 .computeInt64Size(7, activeDualVariableChange_);
365 size += getUnknownFields().getSerializedSize();
371 public boolean equals(
final java.lang.Object obj) {
375 if (!(obj instanceof com.google.ortools.pdlp.PointMetadata)) {
376 return super.equals(obj);
382 if (pointType_ != other.pointType_)
return false;
408 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
414 if (memoizedHashCode != 0) {
415 return memoizedHashCode;
421 hash = (53 * hash) + pointType_;
433 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
438 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
443 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
448 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
451 hash = (29 * hash) + getUnknownFields().hashCode();
452 memoizedHashCode = hash;
457 java.nio.ByteBuffer data)
458 throws com.google.protobuf.InvalidProtocolBufferException {
459 return PARSER.parseFrom(data);
462 java.nio.ByteBuffer data,
463 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
464 throws com.google.protobuf.InvalidProtocolBufferException {
465 return PARSER.parseFrom(data, extensionRegistry);
468 com.google.protobuf.ByteString data)
469 throws com.google.protobuf.InvalidProtocolBufferException {
470 return PARSER.parseFrom(data);
473 com.google.protobuf.ByteString data,
474 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
475 throws com.google.protobuf.InvalidProtocolBufferException {
476 return PARSER.parseFrom(data, extensionRegistry);
479 throws com.google.protobuf.InvalidProtocolBufferException {
480 return PARSER.parseFrom(data);
484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
485 throws com.google.protobuf.InvalidProtocolBufferException {
486 return PARSER.parseFrom(data, extensionRegistry);
489 throws java.io.IOException {
490 return com.google.protobuf.GeneratedMessage
491 .parseWithIOException(PARSER, input);
494 java.io.InputStream input,
495 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
496 throws java.io.IOException {
497 return com.google.protobuf.GeneratedMessage
498 .parseWithIOException(PARSER, input, extensionRegistry);
502 throws java.io.IOException {
503 return com.google.protobuf.GeneratedMessage
504 .parseDelimitedWithIOException(PARSER, input);
508 java.io.InputStream input,
509 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
510 throws java.io.IOException {
511 return com.google.protobuf.GeneratedMessage
512 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
515 com.google.protobuf.CodedInputStream input)
516 throws java.io.IOException {
517 return com.google.protobuf.GeneratedMessage
518 .parseWithIOException(PARSER, input);
521 com.google.protobuf.CodedInputStream input,
522 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
523 throws java.io.IOException {
524 return com.google.protobuf.GeneratedMessage
525 .parseWithIOException(PARSER, input, extensionRegistry);
538 return this == DEFAULT_INSTANCE
544 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
552 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
555 public static final com.google.protobuf.Descriptors.Descriptor
557 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
561 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
563 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
564 .ensureFieldAccessorsInitialized(
565 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
574 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
583 randomPrimalProjections_ = emptyDoubleList();
584 randomDualProjections_ = emptyDoubleList();
585 activePrimalVariableCount_ = 0L;
586 activeDualVariableCount_ = 0L;
587 activePrimalVariableChange_ = 0L;
588 activeDualVariableChange_ = 0L;
593 public com.google.protobuf.Descriptors.Descriptor
595 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
600 return com.google.ortools.pdlp.PointMetadata.getDefaultInstance();
607 throw newUninitializedMessageException(result);
615 if (bitField0_ != 0) { buildPartial0(result); }
620 private void buildPartial0(com.google.ortools.pdlp.PointMetadata result) {
621 int from_bitField0_ = bitField0_;
622 int to_bitField0_ = 0;
623 if (((from_bitField0_ & 0x00000001) != 0)) {
624 result.pointType_ = pointType_;
625 to_bitField0_ |= 0x00000001;
627 if (((from_bitField0_ & 0x00000002) != 0)) {
628 randomPrimalProjections_.makeImmutable();
629 result.randomPrimalProjections_ = randomPrimalProjections_;
631 if (((from_bitField0_ & 0x00000004) != 0)) {
632 randomDualProjections_.makeImmutable();
633 result.randomDualProjections_ = randomDualProjections_;
635 if (((from_bitField0_ & 0x00000008) != 0)) {
636 result.activePrimalVariableCount_ = activePrimalVariableCount_;
637 to_bitField0_ |= 0x00000002;
639 if (((from_bitField0_ & 0x00000010) != 0)) {
640 result.activeDualVariableCount_ = activeDualVariableCount_;
641 to_bitField0_ |= 0x00000004;
643 if (((from_bitField0_ & 0x00000020) != 0)) {
644 result.activePrimalVariableChange_ = activePrimalVariableChange_;
645 to_bitField0_ |= 0x00000008;
647 if (((from_bitField0_ & 0x00000040) != 0)) {
648 result.activeDualVariableChange_ = activeDualVariableChange_;
649 to_bitField0_ |= 0x00000010;
651 result.bitField0_ |= to_bitField0_;
656 if (other instanceof com.google.ortools.pdlp.PointMetadata) {
657 return mergeFrom((com.google.ortools.pdlp.PointMetadata)other);
659 super.mergeFrom(other);
665 if (other == com.google.ortools.pdlp.PointMetadata.getDefaultInstance())
return this;
666 if (other.hasPointType()) {
669 if (!other.randomPrimalProjections_.isEmpty()) {
670 if (randomPrimalProjections_.isEmpty()) {
671 randomPrimalProjections_ = other.randomPrimalProjections_;
672 randomPrimalProjections_.makeImmutable();
673 bitField0_ |= 0x00000002;
675 ensureRandomPrimalProjectionsIsMutable();
676 randomPrimalProjections_.addAll(other.randomPrimalProjections_);
680 if (!other.randomDualProjections_.isEmpty()) {
681 if (randomDualProjections_.isEmpty()) {
682 randomDualProjections_ = other.randomDualProjections_;
683 randomDualProjections_.makeImmutable();
684 bitField0_ |= 0x00000004;
686 ensureRandomDualProjectionsIsMutable();
687 randomDualProjections_.addAll(other.randomDualProjections_);
691 if (other.hasActivePrimalVariableCount()) {
694 if (other.hasActiveDualVariableCount()) {
697 if (other.hasActivePrimalVariableChange()) {
700 if (other.hasActiveDualVariableChange()) {
703 this.mergeUnknownFields(other.getUnknownFields());
715 com.google.protobuf.CodedInputStream input,
716 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
717 throws java.io.IOException {
718 if (extensionRegistry ==
null) {
719 throw new java.lang.NullPointerException();
722 boolean done =
false;
724 int tag = input.readTag();
730 int tmpRaw = input.readEnum();
732 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
733 if (tmpValue ==
null) {
734 mergeUnknownVarintField(1, tmpRaw);
737 bitField0_ |= 0x00000001;
742 double v = input.readDouble();
743 ensureRandomPrimalProjectionsIsMutable();
744 randomPrimalProjections_.addDouble(v);
748 int length = input.readRawVarint32();
749 int limit = input.pushLimit(length);
750 int alloc = length > 4096 ? 4096 : length;
751 ensureRandomPrimalProjectionsIsMutable(alloc / 8);
752 while (input.getBytesUntilLimit() > 0) {
753 randomPrimalProjections_.addDouble(input.readDouble());
755 input.popLimit(limit);
759 double v = input.readDouble();
760 ensureRandomDualProjectionsIsMutable();
761 randomDualProjections_.addDouble(v);
765 int length = input.readRawVarint32();
766 int limit = input.pushLimit(length);
767 int alloc = length > 4096 ? 4096 : length;
768 ensureRandomDualProjectionsIsMutable(alloc / 8);
769 while (input.getBytesUntilLimit() > 0) {
770 randomDualProjections_.addDouble(input.readDouble());
772 input.popLimit(limit);
776 activePrimalVariableCount_ = input.readInt64();
777 bitField0_ |= 0x00000008;
781 activeDualVariableCount_ = input.readInt64();
782 bitField0_ |= 0x00000010;
786 activePrimalVariableChange_ = input.readInt64();
787 bitField0_ |= 0x00000020;
791 activeDualVariableChange_ = input.readInt64();
792 bitField0_ |= 0x00000040;
796 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
803 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
804 throw e.unwrapIOException();
810 private int bitField0_;
812 private int pointType_ = 0;
822 return ((bitField0_ & 0x00000001) != 0);
835 return result ==
null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
848 throw new NullPointerException();
850 bitField0_ |= 0x00000001;
851 pointType_ = value.getNumber();
864 bitField0_ = (bitField0_ & ~0x00000001);
870 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ = emptyDoubleList();
871 private void ensureRandomPrimalProjectionsIsMutable() {
872 if (!randomPrimalProjections_.isModifiable()) {
873 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_);
875 bitField0_ |= 0x00000002;
877 private void ensureRandomPrimalProjectionsIsMutable(
int capacity) {
878 if (!randomPrimalProjections_.isModifiable()) {
879 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_, capacity);
881 bitField0_ |= 0x00000002;
891 public java.util.List<java.lang.Double>
893 randomPrimalProjections_.makeImmutable();
894 return randomPrimalProjections_;
905 return randomPrimalProjections_.size();
917 return randomPrimalProjections_.getDouble(index);
930 int index,
double value) {
932 ensureRandomPrimalProjectionsIsMutable();
933 randomPrimalProjections_.setDouble(index, value);
934 bitField0_ |= 0x00000002;
949 ensureRandomPrimalProjectionsIsMutable();
950 randomPrimalProjections_.addDouble(value);
951 bitField0_ |= 0x00000002;
965 java.lang.Iterable<? extends java.lang.Double> values) {
966 ensureRandomPrimalProjectionsIsMutable();
967 com.google.protobuf.AbstractMessageLite.Builder.addAll(
968 values, randomPrimalProjections_);
969 bitField0_ |= 0x00000002;
982 randomPrimalProjections_ = emptyDoubleList();
983 bitField0_ = (bitField0_ & ~0x00000002);
988 private com.google.protobuf.Internal.DoubleList randomDualProjections_ = emptyDoubleList();
989 private void ensureRandomDualProjectionsIsMutable() {
990 if (!randomDualProjections_.isModifiable()) {
991 randomDualProjections_ = makeMutableCopy(randomDualProjections_);
993 bitField0_ |= 0x00000004;
995 private void ensureRandomDualProjectionsIsMutable(
int capacity) {
996 if (!randomDualProjections_.isModifiable()) {
997 randomDualProjections_ = makeMutableCopy(randomDualProjections_, capacity);
999 bitField0_ |= 0x00000004;
1009 public java.util.List<java.lang.Double>
1011 randomDualProjections_.makeImmutable();
1012 return randomDualProjections_;
1023 return randomDualProjections_.size();
1035 return randomDualProjections_.getDouble(index);
1048 int index,
double value) {
1050 ensureRandomDualProjectionsIsMutable();
1051 randomDualProjections_.setDouble(index, value);
1052 bitField0_ |= 0x00000004;
1067 ensureRandomDualProjectionsIsMutable();
1068 randomDualProjections_.addDouble(value);
1069 bitField0_ |= 0x00000004;
1083 java.lang.Iterable<? extends java.lang.Double> values) {
1084 ensureRandomDualProjectionsIsMutable();
1085 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1086 values, randomDualProjections_);
1087 bitField0_ |= 0x00000004;
1100 randomDualProjections_ = emptyDoubleList();
1101 bitField0_ = (bitField0_ & ~0x00000004);
1106 private long activePrimalVariableCount_ ;
1117 return ((bitField0_ & 0x00000008) != 0);
1129 return activePrimalVariableCount_;
1142 activePrimalVariableCount_ = value;
1143 bitField0_ |= 0x00000008;
1156 bitField0_ = (bitField0_ & ~0x00000008);
1157 activePrimalVariableCount_ = 0L;
1162 private long activeDualVariableCount_ ;
1173 return ((bitField0_ & 0x00000010) != 0);
1185 return activeDualVariableCount_;
1198 activeDualVariableCount_ = value;
1199 bitField0_ |= 0x00000010;
1212 bitField0_ = (bitField0_ & ~0x00000010);
1213 activeDualVariableCount_ = 0L;
1218 private long activePrimalVariableChange_ ;
1230 return ((bitField0_ & 0x00000020) != 0);
1243 return activePrimalVariableChange_;
1257 activePrimalVariableChange_ = value;
1258 bitField0_ |= 0x00000020;
1272 bitField0_ = (bitField0_ & ~0x00000020);
1273 activePrimalVariableChange_ = 0L;
1278 private long activeDualVariableChange_ ;
1290 return ((bitField0_ & 0x00000040) != 0);
1303 return activeDualVariableChange_;
1317 activeDualVariableChange_ = value;
1318 bitField0_ |= 0x00000040;
1332 bitField0_ = (bitField0_ & ~0x00000040);
1333 activeDualVariableChange_ = 0L;
1344 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.PointMetadata();
1348 return DEFAULT_INSTANCE;
1351 private static final com.google.protobuf.Parser<
PointMetadata>
1352 PARSER =
new com.google.protobuf.AbstractParser<
PointMetadata>() {
1355 com.google.protobuf.CodedInputStream input,
1356 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1357 throws com.google.protobuf.InvalidProtocolBufferException {
1360 builder.mergeFrom(input, extensionRegistry);
1361 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1362 throw e.setUnfinishedMessage(builder.buildPartial());
1363 }
catch (com.google.protobuf.UninitializedMessageException e) {
1364 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1365 }
catch (java.io.IOException e) {
1366 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1367 .setUnfinishedMessage(builder.buildPartial());
1369 return builder.buildPartial();
1384 return DEFAULT_INSTANCE;