6package com.google.ortools.pdlp;
11public final class PointMetadata
extends
12 com.google.protobuf.GeneratedMessage implements
15private static final long serialVersionUID = 0L;
17 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
18 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 PointMetadata.class.getName());
26 private PointMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
29 private PointMetadata() {
31 randomPrimalProjections_ = emptyDoubleList();
32 randomDualProjections_ = emptyDoubleList();
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
48 private int bitField0_;
50 private int pointType_ = 0;
60 return ((bitField0_ & 0x00000001) != 0);
76 @SuppressWarnings(
"serial")
77 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ =
88 public java.
util.List<java.lang.Double>
90 return randomPrimalProjections_;
101 return randomPrimalProjections_.size();
113 return randomPrimalProjections_.getDouble(index);
115 private int randomPrimalProjectionsMemoizedSerializedSize = -1;
118 @SuppressWarnings(
"serial")
119 private com.google.protobuf.Internal.DoubleList randomDualProjections_ =
130 public java.
util.List<java.lang.Double>
132 return randomDualProjections_;
143 return randomDualProjections_.size();
155 return randomDualProjections_.getDouble(index);
157 private int randomDualProjectionsMemoizedSerializedSize = -1;
160 private long activePrimalVariableCount_ = 0L;
171 return ((bitField0_ & 0x00000002) != 0);
183 return activePrimalVariableCount_;
187 private long activeDualVariableCount_ = 0L;
198 return ((bitField0_ & 0x00000004) != 0);
210 return activeDualVariableCount_;
214 private long activePrimalVariableChange_ = 0L;
226 return ((bitField0_ & 0x00000008) != 0);
239 return activePrimalVariableChange_;
243 private long activeDualVariableChange_ = 0L;
255 return ((bitField0_ & 0x00000010) != 0);
268 return activeDualVariableChange_;
271 private byte memoizedIsInitialized = -1;
278 memoizedIsInitialized = 1;
283 public void writeTo(com.google.protobuf.CodedOutputStream output)
284 throws java.io.IOException {
286 if (((bitField0_ & 0x00000001) != 0)) {
287 output.writeEnum(1, pointType_);
290 output.writeUInt32NoTag(18);
291 output.writeUInt32NoTag(randomPrimalProjectionsMemoizedSerializedSize);
293 for (
int i = 0; i < randomPrimalProjections_.size(); i++) {
294 output.writeDoubleNoTag(randomPrimalProjections_.getDouble(i));
297 output.writeUInt32NoTag(26);
298 output.writeUInt32NoTag(randomDualProjectionsMemoizedSerializedSize);
300 for (
int i = 0; i < randomDualProjections_.size(); i++) {
301 output.writeDoubleNoTag(randomDualProjections_.getDouble(i));
303 if (((bitField0_ & 0x00000002) != 0)) {
304 output.writeInt64(4, activePrimalVariableCount_);
306 if (((bitField0_ & 0x00000004) != 0)) {
307 output.writeInt64(5, activeDualVariableCount_);
309 if (((bitField0_ & 0x00000008) != 0)) {
310 output.writeInt64(6, activePrimalVariableChange_);
312 if (((bitField0_ & 0x00000010) != 0)) {
313 output.writeInt64(7, activeDualVariableChange_);
315 getUnknownFields().writeTo(output);
320 int size = memoizedSize;
321 if (size != -1)
return size;
324 if (((bitField0_ & 0x00000001) != 0)) {
325 size += com.google.protobuf.CodedOutputStream
326 .computeEnumSize(1, pointType_);
334 size += com.google.protobuf.CodedOutputStream
335 .computeInt32SizeNoTag(dataSize);
337 randomPrimalProjectionsMemoizedSerializedSize = dataSize;
345 size += com.google.protobuf.CodedOutputStream
346 .computeInt32SizeNoTag(dataSize);
348 randomDualProjectionsMemoizedSerializedSize = dataSize;
350 if (((bitField0_ & 0x00000002) != 0)) {
351 size += com.google.protobuf.CodedOutputStream
352 .computeInt64Size(4, activePrimalVariableCount_);
354 if (((bitField0_ & 0x00000004) != 0)) {
355 size += com.google.protobuf.CodedOutputStream
356 .computeInt64Size(5, activeDualVariableCount_);
358 if (((bitField0_ & 0x00000008) != 0)) {
359 size += com.google.protobuf.CodedOutputStream
360 .computeInt64Size(6, activePrimalVariableChange_);
362 if (((bitField0_ & 0x00000010) != 0)) {
363 size += com.google.protobuf.CodedOutputStream
364 .computeInt64Size(7, activeDualVariableChange_);
366 size += getUnknownFields().getSerializedSize();
372 public boolean equals(
final java.lang.Object obj) {
376 if (!(obj instanceof com.google.ortools.pdlp.PointMetadata)) {
377 return super.equals(obj);
383 if (pointType_ != other.pointType_)
return false;
409 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
415 if (memoizedHashCode != 0) {
416 return memoizedHashCode;
422 hash = (53 * hash) + pointType_;
434 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
439 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
444 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
449 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
452 hash = (29 * hash) + getUnknownFields().hashCode();
453 memoizedHashCode = hash;
458 java.nio.ByteBuffer data)
459 throws com.google.protobuf.InvalidProtocolBufferException {
460 return PARSER.parseFrom(data);
463 java.nio.ByteBuffer data,
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws com.google.protobuf.InvalidProtocolBufferException {
466 return PARSER.parseFrom(data, extensionRegistry);
469 com.google.protobuf.ByteString data)
470 throws com.google.protobuf.InvalidProtocolBufferException {
471 return PARSER.parseFrom(data);
474 com.google.protobuf.ByteString data,
475 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
476 throws com.google.protobuf.InvalidProtocolBufferException {
477 return PARSER.parseFrom(data, extensionRegistry);
480 throws com.google.protobuf.InvalidProtocolBufferException {
481 return PARSER.parseFrom(data);
485 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
486 throws com.google.protobuf.InvalidProtocolBufferException {
487 return PARSER.parseFrom(data, extensionRegistry);
490 throws java.io.IOException {
491 return com.google.protobuf.GeneratedMessage
492 .parseWithIOException(PARSER, input);
495 java.io.InputStream input,
496 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
497 throws java.io.IOException {
498 return com.google.protobuf.GeneratedMessage
499 .parseWithIOException(PARSER, input, extensionRegistry);
503 throws java.io.IOException {
504 return com.google.protobuf.GeneratedMessage
505 .parseDelimitedWithIOException(PARSER, input);
509 java.io.InputStream input,
510 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
511 throws java.io.IOException {
512 return com.google.protobuf.GeneratedMessage
513 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
516 com.google.protobuf.CodedInputStream input)
517 throws java.io.IOException {
518 return com.google.protobuf.GeneratedMessage
519 .parseWithIOException(PARSER, input);
522 com.google.protobuf.CodedInputStream input,
523 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
524 throws java.io.IOException {
525 return com.google.protobuf.GeneratedMessage
526 .parseWithIOException(PARSER, input, extensionRegistry);
532 return DEFAULT_INSTANCE.toBuilder();
535 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
539 return this == DEFAULT_INSTANCE
545 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
552 public static final class Builder
extends
553 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
556 public static final com.google.protobuf.Descriptors.Descriptor
558 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
562 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
564 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
565 .ensureFieldAccessorsInitialized(
566 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
575 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
584 randomPrimalProjections_ = emptyDoubleList();
585 randomDualProjections_ = emptyDoubleList();
586 activePrimalVariableCount_ = 0L;
587 activeDualVariableCount_ = 0L;
588 activePrimalVariableChange_ = 0L;
589 activeDualVariableChange_ = 0L;
594 public com.google.protobuf.Descriptors.Descriptor
596 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
601 return com.google.ortools.pdlp.PointMetadata.getDefaultInstance();
608 throw newUninitializedMessageException(result);
616 if (bitField0_ != 0) { buildPartial0(result); }
621 private void buildPartial0(com.google.ortools.pdlp.PointMetadata result) {
622 int from_bitField0_ = bitField0_;
623 int to_bitField0_ = 0;
624 if (((from_bitField0_ & 0x00000001) != 0)) {
625 result.pointType_ = pointType_;
626 to_bitField0_ |= 0x00000001;
628 if (((from_bitField0_ & 0x00000002) != 0)) {
629 randomPrimalProjections_.makeImmutable();
630 result.randomPrimalProjections_ = randomPrimalProjections_;
632 if (((from_bitField0_ & 0x00000004) != 0)) {
633 randomDualProjections_.makeImmutable();
634 result.randomDualProjections_ = randomDualProjections_;
636 if (((from_bitField0_ & 0x00000008) != 0)) {
637 result.activePrimalVariableCount_ = activePrimalVariableCount_;
638 to_bitField0_ |= 0x00000002;
640 if (((from_bitField0_ & 0x00000010) != 0)) {
641 result.activeDualVariableCount_ = activeDualVariableCount_;
642 to_bitField0_ |= 0x00000004;
644 if (((from_bitField0_ & 0x00000020) != 0)) {
645 result.activePrimalVariableChange_ = activePrimalVariableChange_;
646 to_bitField0_ |= 0x00000008;
648 if (((from_bitField0_ & 0x00000040) != 0)) {
649 result.activeDualVariableChange_ = activeDualVariableChange_;
650 to_bitField0_ |= 0x00000010;
652 result.bitField0_ |= to_bitField0_;
656 public Builder
mergeFrom(com.google.protobuf.Message other) {
657 if (other instanceof com.google.ortools.pdlp.PointMetadata) {
658 return mergeFrom((com.google.ortools.pdlp.PointMetadata)other);
660 super.mergeFrom(other);
665 public Builder
mergeFrom(com.google.ortools.pdlp.PointMetadata other) {
666 if (other == com.google.ortools.pdlp.PointMetadata.getDefaultInstance())
return this;
667 if (other.hasPointType()) {
670 if (!other.randomPrimalProjections_.isEmpty()) {
671 if (randomPrimalProjections_.isEmpty()) {
672 randomPrimalProjections_ = other.randomPrimalProjections_;
673 randomPrimalProjections_.makeImmutable();
674 bitField0_ |= 0x00000002;
676 ensureRandomPrimalProjectionsIsMutable();
677 randomPrimalProjections_.addAll(other.randomPrimalProjections_);
681 if (!other.randomDualProjections_.isEmpty()) {
682 if (randomDualProjections_.isEmpty()) {
683 randomDualProjections_ = other.randomDualProjections_;
684 randomDualProjections_.makeImmutable();
685 bitField0_ |= 0x00000004;
687 ensureRandomDualProjectionsIsMutable();
688 randomDualProjections_.addAll(other.randomDualProjections_);
692 if (other.hasActivePrimalVariableCount()) {
695 if (other.hasActiveDualVariableCount()) {
698 if (other.hasActivePrimalVariableChange()) {
701 if (other.hasActiveDualVariableChange()) {
704 this.mergeUnknownFields(other.getUnknownFields());
716 com.google.protobuf.CodedInputStream input,
717 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
718 throws java.io.IOException {
719 if (extensionRegistry ==
null) {
720 throw new java.lang.NullPointerException();
723 boolean done =
false;
725 int tag = input.readTag();
731 int tmpRaw = input.readEnum();
733 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
734 if (tmpValue ==
null) {
735 mergeUnknownVarintField(1, tmpRaw);
738 bitField0_ |= 0x00000001;
743 double v = input.readDouble();
744 ensureRandomPrimalProjectionsIsMutable();
745 randomPrimalProjections_.addDouble(v);
749 int length = input.readRawVarint32();
750 int limit = input.pushLimit(length);
751 int alloc = length > 4096 ? 4096 : length;
752 ensureRandomPrimalProjectionsIsMutable(alloc / 8);
753 while (input.getBytesUntilLimit() > 0) {
754 randomPrimalProjections_.addDouble(input.readDouble());
756 input.popLimit(limit);
760 double v = input.readDouble();
761 ensureRandomDualProjectionsIsMutable();
762 randomDualProjections_.addDouble(v);
766 int length = input.readRawVarint32();
767 int limit = input.pushLimit(length);
768 int alloc = length > 4096 ? 4096 : length;
769 ensureRandomDualProjectionsIsMutable(alloc / 8);
770 while (input.getBytesUntilLimit() > 0) {
771 randomDualProjections_.addDouble(input.readDouble());
773 input.popLimit(limit);
777 activePrimalVariableCount_ = input.readInt64();
778 bitField0_ |= 0x00000008;
782 activeDualVariableCount_ = input.readInt64();
783 bitField0_ |= 0x00000010;
787 activePrimalVariableChange_ = input.readInt64();
788 bitField0_ |= 0x00000020;
792 activeDualVariableChange_ = input.readInt64();
793 bitField0_ |= 0x00000040;
797 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
804 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
805 throw e.unwrapIOException();
811 private int bitField0_;
813 private int pointType_ = 0;
823 return ((bitField0_ & 0x00000001) != 0);
849 throw new NullPointerException();
851 bitField0_ |= 0x00000001;
852 pointType_ = value.getNumber();
865 bitField0_ = (bitField0_ & ~0x00000001);
871 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ = emptyDoubleList();
872 private void ensureRandomPrimalProjectionsIsMutable() {
873 if (!randomPrimalProjections_.isModifiable()) {
874 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_);
876 bitField0_ |= 0x00000002;
878 private void ensureRandomPrimalProjectionsIsMutable(
int capacity) {
879 if (!randomPrimalProjections_.isModifiable()) {
880 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_, capacity);
882 bitField0_ |= 0x00000002;
892 public java.util.List<java.lang.Double>
894 randomPrimalProjections_.makeImmutable();
895 return randomPrimalProjections_;
906 return randomPrimalProjections_.size();
918 return randomPrimalProjections_.getDouble(index);
931 int index,
double value) {
933 ensureRandomPrimalProjectionsIsMutable();
934 randomPrimalProjections_.setDouble(index, value);
935 bitField0_ |= 0x00000002;
950 ensureRandomPrimalProjectionsIsMutable();
951 randomPrimalProjections_.addDouble(value);
952 bitField0_ |= 0x00000002;
966 java.lang.Iterable<? extends java.lang.Double> values) {
967 ensureRandomPrimalProjectionsIsMutable();
968 com.google.protobuf.AbstractMessageLite.Builder.addAll(
969 values, randomPrimalProjections_);
970 bitField0_ |= 0x00000002;
983 randomPrimalProjections_ = emptyDoubleList();
984 bitField0_ = (bitField0_ & ~0x00000002);
989 private com.google.protobuf.Internal.DoubleList randomDualProjections_ = emptyDoubleList();
990 private void ensureRandomDualProjectionsIsMutable() {
991 if (!randomDualProjections_.isModifiable()) {
992 randomDualProjections_ = makeMutableCopy(randomDualProjections_);
994 bitField0_ |= 0x00000004;
996 private void ensureRandomDualProjectionsIsMutable(
int capacity) {
997 if (!randomDualProjections_.isModifiable()) {
998 randomDualProjections_ = makeMutableCopy(randomDualProjections_, capacity);
1000 bitField0_ |= 0x00000004;
1010 public java.util.List<java.lang.Double>
1012 randomDualProjections_.makeImmutable();
1013 return randomDualProjections_;
1024 return randomDualProjections_.size();
1036 return randomDualProjections_.getDouble(index);
1049 int index,
double value) {
1051 ensureRandomDualProjectionsIsMutable();
1052 randomDualProjections_.setDouble(index, value);
1053 bitField0_ |= 0x00000004;
1068 ensureRandomDualProjectionsIsMutable();
1069 randomDualProjections_.addDouble(value);
1070 bitField0_ |= 0x00000004;
1084 java.lang.Iterable<? extends java.lang.Double> values) {
1085 ensureRandomDualProjectionsIsMutable();
1086 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1087 values, randomDualProjections_);
1088 bitField0_ |= 0x00000004;
1101 randomDualProjections_ = emptyDoubleList();
1102 bitField0_ = (bitField0_ & ~0x00000004);
1107 private long activePrimalVariableCount_ ;
1118 return ((bitField0_ & 0x00000008) != 0);
1130 return activePrimalVariableCount_;
1143 activePrimalVariableCount_ = value;
1144 bitField0_ |= 0x00000008;
1157 bitField0_ = (bitField0_ & ~0x00000008);
1158 activePrimalVariableCount_ = 0L;
1163 private long activeDualVariableCount_ ;
1174 return ((bitField0_ & 0x00000010) != 0);
1186 return activeDualVariableCount_;
1199 activeDualVariableCount_ = value;
1200 bitField0_ |= 0x00000010;
1213 bitField0_ = (bitField0_ & ~0x00000010);
1214 activeDualVariableCount_ = 0L;
1219 private long activePrimalVariableChange_ ;
1231 return ((bitField0_ & 0x00000020) != 0);
1244 return activePrimalVariableChange_;
1258 activePrimalVariableChange_ = value;
1259 bitField0_ |= 0x00000020;
1273 bitField0_ = (bitField0_ & ~0x00000020);
1274 activePrimalVariableChange_ = 0L;
1279 private long activeDualVariableChange_ ;
1291 return ((bitField0_ & 0x00000040) != 0);
1304 return activeDualVariableChange_;
1318 activeDualVariableChange_ = value;
1319 bitField0_ |= 0x00000040;
1333 bitField0_ = (bitField0_ & ~0x00000040);
1334 activeDualVariableChange_ = 0L;
1345 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.PointMetadata();
1349 return DEFAULT_INSTANCE;
1352 private static final com.google.protobuf.Parser<
PointMetadata>
1353 PARSER =
new com.google.protobuf.AbstractParser<
PointMetadata>() {
1356 com.google.protobuf.CodedInputStream input,
1357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1358 throws com.google.protobuf.InvalidProtocolBufferException {
1361 builder.mergeFrom(input, extensionRegistry);
1362 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1363 throw e.setUnfinishedMessage(builder.buildPartial());
1364 }
catch (com.google.protobuf.UninitializedMessageException e) {
1365 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1366 }
catch (java.io.IOException e) {
1367 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1368 .setUnfinishedMessage(builder.buildPartial());
1370 return builder.buildPartial();
1374 public static com.google.protobuf.Parser<PointMetadata>
parser() {
1385 return DEFAULT_INSTANCE;