6package com.google.ortools.pdlp;
11@com.google.protobuf.Generated
12public final class PointMetadata
extends
13 com.google.protobuf.GeneratedMessage implements
16private static final long serialVersionUID = 0L;
18 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
19 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 PointMetadata.class.getName());
27 private PointMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 private PointMetadata() {
32 randomPrimalProjections_ = emptyDoubleList();
33 randomDualProjections_ = emptyDoubleList();
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
49 private int bitField0_;
51 private int pointType_ = 0;
61 return ((bitField0_ & 0x00000001) != 0);
77 @SuppressWarnings(
"serial")
78 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ =
89 public java.
util.List<java.lang.Double>
91 return randomPrimalProjections_;
102 return randomPrimalProjections_.size();
114 return randomPrimalProjections_.getDouble(index);
116 private int randomPrimalProjectionsMemoizedSerializedSize = -1;
119 @SuppressWarnings(
"serial")
120 private com.google.protobuf.Internal.DoubleList randomDualProjections_ =
131 public java.
util.List<java.lang.Double>
133 return randomDualProjections_;
144 return randomDualProjections_.size();
156 return randomDualProjections_.getDouble(index);
158 private int randomDualProjectionsMemoizedSerializedSize = -1;
161 private long activePrimalVariableCount_ = 0L;
172 return ((bitField0_ & 0x00000002) != 0);
184 return activePrimalVariableCount_;
188 private long activeDualVariableCount_ = 0L;
199 return ((bitField0_ & 0x00000004) != 0);
211 return activeDualVariableCount_;
215 private long activePrimalVariableChange_ = 0L;
227 return ((bitField0_ & 0x00000008) != 0);
240 return activePrimalVariableChange_;
244 private long activeDualVariableChange_ = 0L;
256 return ((bitField0_ & 0x00000010) != 0);
269 return activeDualVariableChange_;
272 private byte memoizedIsInitialized = -1;
279 memoizedIsInitialized = 1;
284 public void writeTo(com.google.protobuf.CodedOutputStream output)
285 throws java.io.IOException {
287 if (((bitField0_ & 0x00000001) != 0)) {
288 output.writeEnum(1, pointType_);
291 output.writeUInt32NoTag(18);
292 output.writeUInt32NoTag(randomPrimalProjectionsMemoizedSerializedSize);
294 for (
int i = 0; i < randomPrimalProjections_.size(); i++) {
295 output.writeDoubleNoTag(randomPrimalProjections_.getDouble(i));
298 output.writeUInt32NoTag(26);
299 output.writeUInt32NoTag(randomDualProjectionsMemoizedSerializedSize);
301 for (
int i = 0; i < randomDualProjections_.size(); i++) {
302 output.writeDoubleNoTag(randomDualProjections_.getDouble(i));
304 if (((bitField0_ & 0x00000002) != 0)) {
305 output.writeInt64(4, activePrimalVariableCount_);
307 if (((bitField0_ & 0x00000004) != 0)) {
308 output.writeInt64(5, activeDualVariableCount_);
310 if (((bitField0_ & 0x00000008) != 0)) {
311 output.writeInt64(6, activePrimalVariableChange_);
313 if (((bitField0_ & 0x00000010) != 0)) {
314 output.writeInt64(7, activeDualVariableChange_);
316 getUnknownFields().writeTo(output);
321 int size = memoizedSize;
322 if (size != -1)
return size;
325 if (((bitField0_ & 0x00000001) != 0)) {
326 size += com.google.protobuf.CodedOutputStream
327 .computeEnumSize(1, pointType_);
335 size += com.google.protobuf.CodedOutputStream
336 .computeInt32SizeNoTag(dataSize);
338 randomPrimalProjectionsMemoizedSerializedSize = dataSize;
346 size += com.google.protobuf.CodedOutputStream
347 .computeInt32SizeNoTag(dataSize);
349 randomDualProjectionsMemoizedSerializedSize = dataSize;
351 if (((bitField0_ & 0x00000002) != 0)) {
352 size += com.google.protobuf.CodedOutputStream
353 .computeInt64Size(4, activePrimalVariableCount_);
355 if (((bitField0_ & 0x00000004) != 0)) {
356 size += com.google.protobuf.CodedOutputStream
357 .computeInt64Size(5, activeDualVariableCount_);
359 if (((bitField0_ & 0x00000008) != 0)) {
360 size += com.google.protobuf.CodedOutputStream
361 .computeInt64Size(6, activePrimalVariableChange_);
363 if (((bitField0_ & 0x00000010) != 0)) {
364 size += com.google.protobuf.CodedOutputStream
365 .computeInt64Size(7, activeDualVariableChange_);
367 size += getUnknownFields().getSerializedSize();
373 public boolean equals(
final java.lang.Object obj) {
377 if (!(obj instanceof com.google.ortools.pdlp.PointMetadata)) {
378 return super.equals(obj);
384 if (pointType_ != other.pointType_)
return false;
410 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
416 if (memoizedHashCode != 0) {
417 return memoizedHashCode;
423 hash = (53 * hash) + pointType_;
435 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
440 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
445 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
450 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
453 hash = (29 * hash) + getUnknownFields().hashCode();
454 memoizedHashCode = hash;
459 java.nio.ByteBuffer data)
460 throws com.google.protobuf.InvalidProtocolBufferException {
461 return PARSER.parseFrom(data);
464 java.nio.ByteBuffer data,
465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
466 throws com.google.protobuf.InvalidProtocolBufferException {
467 return PARSER.parseFrom(data, extensionRegistry);
470 com.google.protobuf.ByteString data)
471 throws com.google.protobuf.InvalidProtocolBufferException {
472 return PARSER.parseFrom(data);
475 com.google.protobuf.ByteString data,
476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
477 throws com.google.protobuf.InvalidProtocolBufferException {
478 return PARSER.parseFrom(data, extensionRegistry);
481 throws com.google.protobuf.InvalidProtocolBufferException {
482 return PARSER.parseFrom(data);
486 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
487 throws com.google.protobuf.InvalidProtocolBufferException {
488 return PARSER.parseFrom(data, extensionRegistry);
491 throws java.io.IOException {
492 return com.google.protobuf.GeneratedMessage
493 .parseWithIOException(PARSER, input);
496 java.io.InputStream input,
497 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
498 throws java.io.IOException {
499 return com.google.protobuf.GeneratedMessage
500 .parseWithIOException(PARSER, input, extensionRegistry);
504 throws java.io.IOException {
505 return com.google.protobuf.GeneratedMessage
506 .parseDelimitedWithIOException(PARSER, input);
510 java.io.InputStream input,
511 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
512 throws java.io.IOException {
513 return com.google.protobuf.GeneratedMessage
514 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
517 com.google.protobuf.CodedInputStream input)
518 throws java.io.IOException {
519 return com.google.protobuf.GeneratedMessage
520 .parseWithIOException(PARSER, input);
523 com.google.protobuf.CodedInputStream input,
524 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
525 throws java.io.IOException {
526 return com.google.protobuf.GeneratedMessage
527 .parseWithIOException(PARSER, input, extensionRegistry);
533 return DEFAULT_INSTANCE.toBuilder();
536 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
540 return this == DEFAULT_INSTANCE
546 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
553 public static final class Builder
extends
554 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
557 public static final com.google.protobuf.Descriptors.Descriptor
559 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
563 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
565 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
566 .ensureFieldAccessorsInitialized(
567 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
576 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
585 randomPrimalProjections_ = emptyDoubleList();
586 randomDualProjections_ = emptyDoubleList();
587 activePrimalVariableCount_ = 0L;
588 activeDualVariableCount_ = 0L;
589 activePrimalVariableChange_ = 0L;
590 activeDualVariableChange_ = 0L;
595 public com.google.protobuf.Descriptors.Descriptor
597 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
602 return com.google.ortools.pdlp.PointMetadata.getDefaultInstance();
609 throw newUninitializedMessageException(result);
617 if (bitField0_ != 0) { buildPartial0(result); }
622 private void buildPartial0(com.google.ortools.pdlp.PointMetadata result) {
623 int from_bitField0_ = bitField0_;
624 int to_bitField0_ = 0;
625 if (((from_bitField0_ & 0x00000001) != 0)) {
626 result.pointType_ = pointType_;
627 to_bitField0_ |= 0x00000001;
629 if (((from_bitField0_ & 0x00000002) != 0)) {
630 randomPrimalProjections_.makeImmutable();
631 result.randomPrimalProjections_ = randomPrimalProjections_;
633 if (((from_bitField0_ & 0x00000004) != 0)) {
634 randomDualProjections_.makeImmutable();
635 result.randomDualProjections_ = randomDualProjections_;
637 if (((from_bitField0_ & 0x00000008) != 0)) {
638 result.activePrimalVariableCount_ = activePrimalVariableCount_;
639 to_bitField0_ |= 0x00000002;
641 if (((from_bitField0_ & 0x00000010) != 0)) {
642 result.activeDualVariableCount_ = activeDualVariableCount_;
643 to_bitField0_ |= 0x00000004;
645 if (((from_bitField0_ & 0x00000020) != 0)) {
646 result.activePrimalVariableChange_ = activePrimalVariableChange_;
647 to_bitField0_ |= 0x00000008;
649 if (((from_bitField0_ & 0x00000040) != 0)) {
650 result.activeDualVariableChange_ = activeDualVariableChange_;
651 to_bitField0_ |= 0x00000010;
653 result.bitField0_ |= to_bitField0_;
657 public Builder
mergeFrom(com.google.protobuf.Message other) {
658 if (other instanceof com.google.ortools.pdlp.PointMetadata) {
659 return mergeFrom((com.google.ortools.pdlp.PointMetadata)other);
661 super.mergeFrom(other);
666 public Builder
mergeFrom(com.google.ortools.pdlp.PointMetadata other) {
667 if (other == com.google.ortools.pdlp.PointMetadata.getDefaultInstance())
return this;
668 if (other.hasPointType()) {
671 if (!other.randomPrimalProjections_.isEmpty()) {
672 if (randomPrimalProjections_.isEmpty()) {
673 randomPrimalProjections_ = other.randomPrimalProjections_;
674 randomPrimalProjections_.makeImmutable();
675 bitField0_ |= 0x00000002;
677 ensureRandomPrimalProjectionsIsMutable();
678 randomPrimalProjections_.addAll(other.randomPrimalProjections_);
682 if (!other.randomDualProjections_.isEmpty()) {
683 if (randomDualProjections_.isEmpty()) {
684 randomDualProjections_ = other.randomDualProjections_;
685 randomDualProjections_.makeImmutable();
686 bitField0_ |= 0x00000004;
688 ensureRandomDualProjectionsIsMutable();
689 randomDualProjections_.addAll(other.randomDualProjections_);
693 if (other.hasActivePrimalVariableCount()) {
696 if (other.hasActiveDualVariableCount()) {
699 if (other.hasActivePrimalVariableChange()) {
702 if (other.hasActiveDualVariableChange()) {
705 this.mergeUnknownFields(other.getUnknownFields());
717 com.google.protobuf.CodedInputStream input,
718 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
719 throws java.io.IOException {
720 if (extensionRegistry ==
null) {
721 throw new java.lang.NullPointerException();
724 boolean done =
false;
726 int tag = input.readTag();
732 int tmpRaw = input.readEnum();
734 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
735 if (tmpValue ==
null) {
736 mergeUnknownVarintField(1, tmpRaw);
739 bitField0_ |= 0x00000001;
744 double v = input.readDouble();
745 ensureRandomPrimalProjectionsIsMutable();
746 randomPrimalProjections_.addDouble(v);
750 int length = input.readRawVarint32();
751 int limit = input.pushLimit(length);
752 int alloc = length > 4096 ? 4096 : length;
753 ensureRandomPrimalProjectionsIsMutable(alloc / 8);
754 while (input.getBytesUntilLimit() > 0) {
755 randomPrimalProjections_.addDouble(input.readDouble());
757 input.popLimit(limit);
761 double v = input.readDouble();
762 ensureRandomDualProjectionsIsMutable();
763 randomDualProjections_.addDouble(v);
767 int length = input.readRawVarint32();
768 int limit = input.pushLimit(length);
769 int alloc = length > 4096 ? 4096 : length;
770 ensureRandomDualProjectionsIsMutable(alloc / 8);
771 while (input.getBytesUntilLimit() > 0) {
772 randomDualProjections_.addDouble(input.readDouble());
774 input.popLimit(limit);
778 activePrimalVariableCount_ = input.readInt64();
779 bitField0_ |= 0x00000008;
783 activeDualVariableCount_ = input.readInt64();
784 bitField0_ |= 0x00000010;
788 activePrimalVariableChange_ = input.readInt64();
789 bitField0_ |= 0x00000020;
793 activeDualVariableChange_ = input.readInt64();
794 bitField0_ |= 0x00000040;
798 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
805 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
806 throw e.unwrapIOException();
812 private int bitField0_;
814 private int pointType_ = 0;
824 return ((bitField0_ & 0x00000001) != 0);
849 if (value ==
null) {
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();
1373 public static com.google.protobuf.Parser<PointMetadata>
parser() {
1384 return DEFAULT_INSTANCE;