Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
PointMetadata.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/pdlp/solve_log.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.pdlp;
6
10public final class PointMetadata extends
11 com.google.protobuf.GeneratedMessage implements
12 // @@protoc_insertion_point(message_implements:operations_research.pdlp.PointMetadata)
14private static final long serialVersionUID = 0L;
15 static {
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
18 /* major= */ 4,
19 /* minor= */ 26,
20 /* patch= */ 1,
21 /* suffix= */ "",
22 PointMetadata.class.getName());
23 }
24 // Use PointMetadata.newBuilder() to construct.
25 private PointMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
26 super(builder);
27 }
28 private PointMetadata() {
29 pointType_ = 0;
30 randomPrimalProjections_ = emptyDoubleList();
31 randomDualProjections_ = emptyDoubleList();
32 }
33
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
37 }
38
39 @java.lang.Override
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);
45 }
46
47 private int bitField0_;
48 public static final int POINT_TYPE_FIELD_NUMBER = 1;
49 private int pointType_ = 0;
58 @java.lang.Override public boolean hasPointType() {
59 return ((bitField0_ & 0x00000001) != 0);
60 }
69 @java.lang.Override public com.google.ortools.pdlp.PointType getPointType() {
70 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(pointType_);
71 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
72 }
73
74 public static final int RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER = 2;
75 @SuppressWarnings("serial")
76 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ =
77 emptyDoubleList();
86 @java.lang.Override
87 public java.util.List<java.lang.Double>
89 return randomPrimalProjections_;
90 }
100 return randomPrimalProjections_.size();
101 }
111 public double getRandomPrimalProjections(int index) {
112 return randomPrimalProjections_.getDouble(index);
113 }
114 private int randomPrimalProjectionsMemoizedSerializedSize = -1;
115
116 public static final int RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER = 3;
117 @SuppressWarnings("serial")
118 private com.google.protobuf.Internal.DoubleList randomDualProjections_ =
119 emptyDoubleList();
128 @java.lang.Override
129 public java.util.List<java.lang.Double>
131 return randomDualProjections_;
132 }
142 return randomDualProjections_.size();
143 }
153 public double getRandomDualProjections(int index) {
154 return randomDualProjections_.getDouble(index);
155 }
156 private int randomDualProjectionsMemoizedSerializedSize = -1;
157
158 public static final int ACTIVE_PRIMAL_VARIABLE_COUNT_FIELD_NUMBER = 4;
159 private long activePrimalVariableCount_ = 0L;
168 @java.lang.Override
170 return ((bitField0_ & 0x00000002) != 0);
171 }
180 @java.lang.Override
182 return activePrimalVariableCount_;
183 }
184
185 public static final int ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER = 5;
186 private long activeDualVariableCount_ = 0L;
195 @java.lang.Override
196 public boolean hasActiveDualVariableCount() {
197 return ((bitField0_ & 0x00000004) != 0);
198 }
207 @java.lang.Override
209 return activeDualVariableCount_;
210 }
211
213 private long activePrimalVariableChange_ = 0L;
223 @java.lang.Override
225 return ((bitField0_ & 0x00000008) != 0);
226 }
236 @java.lang.Override
238 return activePrimalVariableChange_;
239 }
240
241 public static final int ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER = 7;
242 private long activeDualVariableChange_ = 0L;
252 @java.lang.Override
254 return ((bitField0_ & 0x00000010) != 0);
255 }
265 @java.lang.Override
267 return activeDualVariableChange_;
268 }
269
270 private byte memoizedIsInitialized = -1;
271 @java.lang.Override
272 public final boolean isInitialized() {
273 byte isInitialized = memoizedIsInitialized;
274 if (isInitialized == 1) return true;
275 if (isInitialized == 0) return false;
276
277 memoizedIsInitialized = 1;
278 return true;
279 }
280
281 @java.lang.Override
282 public void writeTo(com.google.protobuf.CodedOutputStream output)
283 throws java.io.IOException {
285 if (((bitField0_ & 0x00000001) != 0)) {
286 output.writeEnum(1, pointType_);
287 }
288 if (getRandomPrimalProjectionsList().size() > 0) {
289 output.writeUInt32NoTag(18);
290 output.writeUInt32NoTag(randomPrimalProjectionsMemoizedSerializedSize);
291 }
292 for (int i = 0; i < randomPrimalProjections_.size(); i++) {
293 output.writeDoubleNoTag(randomPrimalProjections_.getDouble(i));
294 }
295 if (getRandomDualProjectionsList().size() > 0) {
296 output.writeUInt32NoTag(26);
297 output.writeUInt32NoTag(randomDualProjectionsMemoizedSerializedSize);
298 }
299 for (int i = 0; i < randomDualProjections_.size(); i++) {
300 output.writeDoubleNoTag(randomDualProjections_.getDouble(i));
301 }
302 if (((bitField0_ & 0x00000002) != 0)) {
303 output.writeInt64(4, activePrimalVariableCount_);
304 }
305 if (((bitField0_ & 0x00000004) != 0)) {
306 output.writeInt64(5, activeDualVariableCount_);
307 }
308 if (((bitField0_ & 0x00000008) != 0)) {
309 output.writeInt64(6, activePrimalVariableChange_);
310 }
311 if (((bitField0_ & 0x00000010) != 0)) {
312 output.writeInt64(7, activeDualVariableChange_);
313 }
314 getUnknownFields().writeTo(output);
315 }
316
317 @java.lang.Override
318 public int getSerializedSize() {
319 int size = memoizedSize;
320 if (size != -1) return size;
321
322 size = 0;
323 if (((bitField0_ & 0x00000001) != 0)) {
324 size += com.google.protobuf.CodedOutputStream
325 .computeEnumSize(1, pointType_);
326 }
327 {
328 int dataSize = 0;
329 dataSize = 8 * getRandomPrimalProjectionsList().size();
330 size += dataSize;
331 if (!getRandomPrimalProjectionsList().isEmpty()) {
332 size += 1;
333 size += com.google.protobuf.CodedOutputStream
334 .computeInt32SizeNoTag(dataSize);
335 }
336 randomPrimalProjectionsMemoizedSerializedSize = dataSize;
337 }
338 {
339 int dataSize = 0;
340 dataSize = 8 * getRandomDualProjectionsList().size();
341 size += dataSize;
342 if (!getRandomDualProjectionsList().isEmpty()) {
343 size += 1;
344 size += com.google.protobuf.CodedOutputStream
345 .computeInt32SizeNoTag(dataSize);
346 }
347 randomDualProjectionsMemoizedSerializedSize = dataSize;
348 }
349 if (((bitField0_ & 0x00000002) != 0)) {
350 size += com.google.protobuf.CodedOutputStream
351 .computeInt64Size(4, activePrimalVariableCount_);
352 }
353 if (((bitField0_ & 0x00000004) != 0)) {
354 size += com.google.protobuf.CodedOutputStream
355 .computeInt64Size(5, activeDualVariableCount_);
356 }
357 if (((bitField0_ & 0x00000008) != 0)) {
358 size += com.google.protobuf.CodedOutputStream
359 .computeInt64Size(6, activePrimalVariableChange_);
360 }
361 if (((bitField0_ & 0x00000010) != 0)) {
362 size += com.google.protobuf.CodedOutputStream
363 .computeInt64Size(7, activeDualVariableChange_);
364 }
365 size += getUnknownFields().getSerializedSize();
366 memoizedSize = size;
367 return size;
368 }
369
370 @java.lang.Override
371 public boolean equals(final java.lang.Object obj) {
372 if (obj == this) {
373 return true;
374 }
375 if (!(obj instanceof com.google.ortools.pdlp.PointMetadata)) {
376 return super.equals(obj);
377 }
378 com.google.ortools.pdlp.PointMetadata other = (com.google.ortools.pdlp.PointMetadata) obj;
379
380 if (hasPointType() != other.hasPointType()) return false;
381 if (hasPointType()) {
382 if (pointType_ != other.pointType_) return false;
383 }
385 .equals(other.getRandomPrimalProjectionsList())) return false;
387 .equals(other.getRandomDualProjectionsList())) return false;
388 if (hasActivePrimalVariableCount() != other.hasActivePrimalVariableCount()) return false;
391 != other.getActivePrimalVariableCount()) return false;
392 }
393 if (hasActiveDualVariableCount() != other.hasActiveDualVariableCount()) return false;
396 != other.getActiveDualVariableCount()) return false;
397 }
401 != other.getActivePrimalVariableChange()) return false;
402 }
403 if (hasActiveDualVariableChange() != other.hasActiveDualVariableChange()) return false;
406 != other.getActiveDualVariableChange()) return false;
407 }
408 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
409 return true;
410 }
411
412 @java.lang.Override
413 public int hashCode() {
414 if (memoizedHashCode != 0) {
415 return memoizedHashCode;
416 }
417 int hash = 41;
418 hash = (19 * hash) + getDescriptor().hashCode();
419 if (hasPointType()) {
420 hash = (37 * hash) + POINT_TYPE_FIELD_NUMBER;
421 hash = (53 * hash) + pointType_;
422 }
424 hash = (37 * hash) + RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER;
425 hash = (53 * hash) + getRandomPrimalProjectionsList().hashCode();
426 }
428 hash = (37 * hash) + RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER;
429 hash = (53 * hash) + getRandomDualProjectionsList().hashCode();
430 }
433 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
435 }
437 hash = (37 * hash) + ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER;
438 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
440 }
443 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
445 }
447 hash = (37 * hash) + ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER;
448 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
450 }
451 hash = (29 * hash) + getUnknownFields().hashCode();
452 memoizedHashCode = hash;
453 return hash;
454 }
455
457 java.nio.ByteBuffer data)
458 throws com.google.protobuf.InvalidProtocolBufferException {
459 return PARSER.parseFrom(data);
460 }
462 java.nio.ByteBuffer data,
463 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
464 throws com.google.protobuf.InvalidProtocolBufferException {
465 return PARSER.parseFrom(data, extensionRegistry);
466 }
468 com.google.protobuf.ByteString data)
469 throws com.google.protobuf.InvalidProtocolBufferException {
470 return PARSER.parseFrom(data);
471 }
473 com.google.protobuf.ByteString data,
474 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
475 throws com.google.protobuf.InvalidProtocolBufferException {
476 return PARSER.parseFrom(data, extensionRegistry);
477 }
479 throws com.google.protobuf.InvalidProtocolBufferException {
480 return PARSER.parseFrom(data);
481 }
483 byte[] data,
484 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
485 throws com.google.protobuf.InvalidProtocolBufferException {
486 return PARSER.parseFrom(data, extensionRegistry);
487 }
488 public static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input)
489 throws java.io.IOException {
490 return com.google.protobuf.GeneratedMessage
491 .parseWithIOException(PARSER, input);
492 }
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);
499 }
500
501 public static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input)
502 throws java.io.IOException {
503 return com.google.protobuf.GeneratedMessage
504 .parseDelimitedWithIOException(PARSER, input);
505 }
506
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);
513 }
515 com.google.protobuf.CodedInputStream input)
516 throws java.io.IOException {
517 return com.google.protobuf.GeneratedMessage
518 .parseWithIOException(PARSER, input);
519 }
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);
526 }
527
528 @java.lang.Override
529 public Builder newBuilderForType() { return newBuilder(); }
530 public static Builder newBuilder() {
531 return DEFAULT_INSTANCE.toBuilder();
532 }
533 public static Builder newBuilder(com.google.ortools.pdlp.PointMetadata prototype) {
534 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
535 }
536 @java.lang.Override
538 return this == DEFAULT_INSTANCE
539 ? new Builder() : new Builder().mergeFrom(this);
540 }
541
542 @java.lang.Override
544 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
545 Builder builder = new Builder(parent);
546 return builder;
547 }
551 public static final class Builder extends
552 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
553 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.PointMetadata)
554 com.google.ortools.pdlp.PointMetadataOrBuilder {
555 public static final com.google.protobuf.Descriptors.Descriptor
557 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
558 }
559
560 @java.lang.Override
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);
566 }
567
568 // Construct using com.google.ortools.pdlp.PointMetadata.newBuilder()
569 private Builder() {
570
571 }
572
573 private Builder(
574 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
575 super(parent);
576
577 }
578 @java.lang.Override
579 public Builder clear() {
580 super.clear();
581 bitField0_ = 0;
582 pointType_ = 0;
583 randomPrimalProjections_ = emptyDoubleList();
584 randomDualProjections_ = emptyDoubleList();
585 activePrimalVariableCount_ = 0L;
586 activeDualVariableCount_ = 0L;
587 activePrimalVariableChange_ = 0L;
588 activeDualVariableChange_ = 0L;
589 return this;
590 }
591
592 @java.lang.Override
593 public com.google.protobuf.Descriptors.Descriptor
595 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
596 }
597
598 @java.lang.Override
600 return com.google.ortools.pdlp.PointMetadata.getDefaultInstance();
601 }
602
603 @java.lang.Override
606 if (!result.isInitialized()) {
607 throw newUninitializedMessageException(result);
608 }
609 return result;
610 }
611
612 @java.lang.Override
614 com.google.ortools.pdlp.PointMetadata result = new com.google.ortools.pdlp.PointMetadata(this);
615 if (bitField0_ != 0) { buildPartial0(result); }
616 onBuilt();
617 return result;
618 }
619
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;
626 }
627 if (((from_bitField0_ & 0x00000002) != 0)) {
628 randomPrimalProjections_.makeImmutable();
629 result.randomPrimalProjections_ = randomPrimalProjections_;
630 }
631 if (((from_bitField0_ & 0x00000004) != 0)) {
632 randomDualProjections_.makeImmutable();
633 result.randomDualProjections_ = randomDualProjections_;
634 }
635 if (((from_bitField0_ & 0x00000008) != 0)) {
636 result.activePrimalVariableCount_ = activePrimalVariableCount_;
637 to_bitField0_ |= 0x00000002;
638 }
639 if (((from_bitField0_ & 0x00000010) != 0)) {
640 result.activeDualVariableCount_ = activeDualVariableCount_;
641 to_bitField0_ |= 0x00000004;
642 }
643 if (((from_bitField0_ & 0x00000020) != 0)) {
644 result.activePrimalVariableChange_ = activePrimalVariableChange_;
645 to_bitField0_ |= 0x00000008;
646 }
647 if (((from_bitField0_ & 0x00000040) != 0)) {
648 result.activeDualVariableChange_ = activeDualVariableChange_;
649 to_bitField0_ |= 0x00000010;
650 }
651 result.bitField0_ |= to_bitField0_;
652 }
653
654 @java.lang.Override
655 public Builder mergeFrom(com.google.protobuf.Message other) {
656 if (other instanceof com.google.ortools.pdlp.PointMetadata) {
657 return mergeFrom((com.google.ortools.pdlp.PointMetadata)other);
658 } else {
659 super.mergeFrom(other);
660 return this;
661 }
662 }
663
664 public Builder mergeFrom(com.google.ortools.pdlp.PointMetadata other) {
665 if (other == com.google.ortools.pdlp.PointMetadata.getDefaultInstance()) return this;
666 if (other.hasPointType()) {
667 setPointType(other.getPointType());
668 }
669 if (!other.randomPrimalProjections_.isEmpty()) {
670 if (randomPrimalProjections_.isEmpty()) {
671 randomPrimalProjections_ = other.randomPrimalProjections_;
672 randomPrimalProjections_.makeImmutable();
673 bitField0_ |= 0x00000002;
674 } else {
675 ensureRandomPrimalProjectionsIsMutable();
676 randomPrimalProjections_.addAll(other.randomPrimalProjections_);
677 }
678 onChanged();
679 }
680 if (!other.randomDualProjections_.isEmpty()) {
681 if (randomDualProjections_.isEmpty()) {
682 randomDualProjections_ = other.randomDualProjections_;
683 randomDualProjections_.makeImmutable();
684 bitField0_ |= 0x00000004;
685 } else {
686 ensureRandomDualProjectionsIsMutable();
687 randomDualProjections_.addAll(other.randomDualProjections_);
688 }
689 onChanged();
690 }
691 if (other.hasActivePrimalVariableCount()) {
692 setActivePrimalVariableCount(other.getActivePrimalVariableCount());
693 }
694 if (other.hasActiveDualVariableCount()) {
695 setActiveDualVariableCount(other.getActiveDualVariableCount());
696 }
697 if (other.hasActivePrimalVariableChange()) {
698 setActivePrimalVariableChange(other.getActivePrimalVariableChange());
699 }
700 if (other.hasActiveDualVariableChange()) {
701 setActiveDualVariableChange(other.getActiveDualVariableChange());
702 }
703 this.mergeUnknownFields(other.getUnknownFields());
704 onChanged();
705 return this;
706 }
707
708 @java.lang.Override
709 public final boolean isInitialized() {
710 return true;
711 }
712
713 @java.lang.Override
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();
720 }
721 try {
722 boolean done = false;
723 while (!done) {
724 int tag = input.readTag();
725 switch (tag) {
726 case 0:
727 done = true;
728 break;
729 case 8: {
730 int tmpRaw = input.readEnum();
732 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
733 if (tmpValue == null) {
734 mergeUnknownVarintField(1, tmpRaw);
735 } else {
736 pointType_ = tmpRaw;
737 bitField0_ |= 0x00000001;
738 }
739 break;
740 } // case 8
741 case 17: {
742 double v = input.readDouble();
743 ensureRandomPrimalProjectionsIsMutable();
744 randomPrimalProjections_.addDouble(v);
745 break;
746 } // case 17
747 case 18: {
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());
754 }
755 input.popLimit(limit);
756 break;
757 } // case 18
758 case 25: {
759 double v = input.readDouble();
760 ensureRandomDualProjectionsIsMutable();
761 randomDualProjections_.addDouble(v);
762 break;
763 } // case 25
764 case 26: {
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());
771 }
772 input.popLimit(limit);
773 break;
774 } // case 26
775 case 32: {
776 activePrimalVariableCount_ = input.readInt64();
777 bitField0_ |= 0x00000008;
778 break;
779 } // case 32
780 case 40: {
781 activeDualVariableCount_ = input.readInt64();
782 bitField0_ |= 0x00000010;
783 break;
784 } // case 40
785 case 48: {
786 activePrimalVariableChange_ = input.readInt64();
787 bitField0_ |= 0x00000020;
788 break;
789 } // case 48
790 case 56: {
791 activeDualVariableChange_ = input.readInt64();
792 bitField0_ |= 0x00000040;
793 break;
794 } // case 56
795 default: {
796 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
797 done = true; // was an endgroup tag
798 }
799 break;
800 } // default:
801 } // switch (tag)
802 } // while (!done)
803 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
804 throw e.unwrapIOException();
805 } finally {
806 onChanged();
807 } // finally
808 return this;
809 }
810 private int bitField0_;
811
812 private int pointType_ = 0;
821 @java.lang.Override public boolean hasPointType() {
822 return ((bitField0_ & 0x00000001) != 0);
823 }
832 @java.lang.Override
834 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(pointType_);
835 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
836 }
846 public Builder setPointType(com.google.ortools.pdlp.PointType value) {
847 if (value == null) {
848 throw new NullPointerException();
849 }
850 bitField0_ |= 0x00000001;
851 pointType_ = value.getNumber();
852 onChanged();
853 return this;
854 }
864 bitField0_ = (bitField0_ & ~0x00000001);
865 pointType_ = 0;
866 onChanged();
867 return this;
868 }
869
870 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ = emptyDoubleList();
871 private void ensureRandomPrimalProjectionsIsMutable() {
872 if (!randomPrimalProjections_.isModifiable()) {
873 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_);
874 }
875 bitField0_ |= 0x00000002;
876 }
877 private void ensureRandomPrimalProjectionsIsMutable(int capacity) {
878 if (!randomPrimalProjections_.isModifiable()) {
879 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_, capacity);
880 }
881 bitField0_ |= 0x00000002;
882 }
891 public java.util.List<java.lang.Double>
893 randomPrimalProjections_.makeImmutable();
894 return randomPrimalProjections_;
895 }
905 return randomPrimalProjections_.size();
906 }
916 public double getRandomPrimalProjections(int index) {
917 return randomPrimalProjections_.getDouble(index);
918 }
930 int index, double value) {
931
932 ensureRandomPrimalProjectionsIsMutable();
933 randomPrimalProjections_.setDouble(index, value);
934 bitField0_ |= 0x00000002;
935 onChanged();
936 return this;
937 }
947 public Builder addRandomPrimalProjections(double value) {
948
949 ensureRandomPrimalProjectionsIsMutable();
950 randomPrimalProjections_.addDouble(value);
951 bitField0_ |= 0x00000002;
952 onChanged();
953 return this;
954 }
965 java.lang.Iterable<? extends java.lang.Double> values) {
966 ensureRandomPrimalProjectionsIsMutable();
967 com.google.protobuf.AbstractMessageLite.Builder.addAll(
968 values, randomPrimalProjections_);
969 bitField0_ |= 0x00000002;
970 onChanged();
971 return this;
972 }
982 randomPrimalProjections_ = emptyDoubleList();
983 bitField0_ = (bitField0_ & ~0x00000002);
984 onChanged();
985 return this;
986 }
987
988 private com.google.protobuf.Internal.DoubleList randomDualProjections_ = emptyDoubleList();
989 private void ensureRandomDualProjectionsIsMutable() {
990 if (!randomDualProjections_.isModifiable()) {
991 randomDualProjections_ = makeMutableCopy(randomDualProjections_);
992 }
993 bitField0_ |= 0x00000004;
994 }
995 private void ensureRandomDualProjectionsIsMutable(int capacity) {
996 if (!randomDualProjections_.isModifiable()) {
997 randomDualProjections_ = makeMutableCopy(randomDualProjections_, capacity);
998 }
999 bitField0_ |= 0x00000004;
1000 }
1009 public java.util.List<java.lang.Double>
1011 randomDualProjections_.makeImmutable();
1012 return randomDualProjections_;
1013 }
1023 return randomDualProjections_.size();
1024 }
1034 public double getRandomDualProjections(int index) {
1035 return randomDualProjections_.getDouble(index);
1036 }
1048 int index, double value) {
1049
1050 ensureRandomDualProjectionsIsMutable();
1051 randomDualProjections_.setDouble(index, value);
1052 bitField0_ |= 0x00000004;
1053 onChanged();
1054 return this;
1055 }
1065 public Builder addRandomDualProjections(double value) {
1066
1067 ensureRandomDualProjectionsIsMutable();
1068 randomDualProjections_.addDouble(value);
1069 bitField0_ |= 0x00000004;
1070 onChanged();
1071 return this;
1072 }
1083 java.lang.Iterable<? extends java.lang.Double> values) {
1084 ensureRandomDualProjectionsIsMutable();
1085 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1086 values, randomDualProjections_);
1087 bitField0_ |= 0x00000004;
1088 onChanged();
1089 return this;
1090 }
1100 randomDualProjections_ = emptyDoubleList();
1101 bitField0_ = (bitField0_ & ~0x00000004);
1102 onChanged();
1103 return this;
1104 }
1105
1106 private long activePrimalVariableCount_ ;
1115 @java.lang.Override
1117 return ((bitField0_ & 0x00000008) != 0);
1118 }
1127 @java.lang.Override
1129 return activePrimalVariableCount_;
1130 }
1141
1142 activePrimalVariableCount_ = value;
1143 bitField0_ |= 0x00000008;
1144 onChanged();
1145 return this;
1146 }
1156 bitField0_ = (bitField0_ & ~0x00000008);
1157 activePrimalVariableCount_ = 0L;
1158 onChanged();
1159 return this;
1160 }
1161
1162 private long activeDualVariableCount_ ;
1171 @java.lang.Override
1173 return ((bitField0_ & 0x00000010) != 0);
1174 }
1183 @java.lang.Override
1185 return activeDualVariableCount_;
1186 }
1197
1198 activeDualVariableCount_ = value;
1199 bitField0_ |= 0x00000010;
1200 onChanged();
1201 return this;
1202 }
1212 bitField0_ = (bitField0_ & ~0x00000010);
1213 activeDualVariableCount_ = 0L;
1214 onChanged();
1215 return this;
1216 }
1217
1218 private long activePrimalVariableChange_ ;
1228 @java.lang.Override
1230 return ((bitField0_ & 0x00000020) != 0);
1231 }
1241 @java.lang.Override
1243 return activePrimalVariableChange_;
1244 }
1256
1257 activePrimalVariableChange_ = value;
1258 bitField0_ |= 0x00000020;
1259 onChanged();
1260 return this;
1261 }
1272 bitField0_ = (bitField0_ & ~0x00000020);
1273 activePrimalVariableChange_ = 0L;
1274 onChanged();
1275 return this;
1276 }
1277
1278 private long activeDualVariableChange_ ;
1288 @java.lang.Override
1290 return ((bitField0_ & 0x00000040) != 0);
1291 }
1301 @java.lang.Override
1303 return activeDualVariableChange_;
1304 }
1316
1317 activeDualVariableChange_ = value;
1318 bitField0_ |= 0x00000040;
1319 onChanged();
1320 return this;
1321 }
1332 bitField0_ = (bitField0_ & ~0x00000040);
1333 activeDualVariableChange_ = 0L;
1334 onChanged();
1335 return this;
1336 }
1337
1338 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.PointMetadata)
1339 }
1340
1341 // @@protoc_insertion_point(class_scope:operations_research.pdlp.PointMetadata)
1342 private static final com.google.ortools.pdlp.PointMetadata DEFAULT_INSTANCE;
1343 static {
1344 DEFAULT_INSTANCE = new com.google.ortools.pdlp.PointMetadata();
1345 }
1346
1348 return DEFAULT_INSTANCE;
1349 }
1350
1351 private static final com.google.protobuf.Parser<PointMetadata>
1352 PARSER = new com.google.protobuf.AbstractParser<PointMetadata>() {
1353 @java.lang.Override
1354 public PointMetadata parsePartialFrom(
1355 com.google.protobuf.CodedInputStream input,
1356 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1357 throws com.google.protobuf.InvalidProtocolBufferException {
1358 Builder builder = newBuilder();
1359 try {
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());
1368 }
1369 return builder.buildPartial();
1370 }
1371 };
1372
1373 public static com.google.protobuf.Parser<PointMetadata> parser() {
1374 return PARSER;
1375 }
1376
1377 @java.lang.Override
1378 public com.google.protobuf.Parser<PointMetadata> getParserForType() {
1379 return PARSER;
1380 }
1381
1382 @java.lang.Override
1384 return DEFAULT_INSTANCE;
1385 }
1386
1387}
1388
Builder setRandomPrimalProjections(int index, double value)
Builder setPointType(com.google.ortools.pdlp.PointType value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.pdlp.PointMetadata getDefaultInstanceForType()
Builder setRandomDualProjections(int index, double value)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addAllRandomPrimalProjections(java.lang.Iterable<? extends java.lang.Double > values)
Builder mergeFrom(com.google.ortools.pdlp.PointMetadata other)
Builder addAllRandomDualProjections(java.lang.Iterable<? extends java.lang.Double > values)
java.util.List< java.lang.Double > getRandomPrimalProjectionsList()
com.google.ortools.pdlp.PointType getPointType()
com.google.ortools.pdlp.PointMetadata build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< java.lang.Double > getRandomDualProjectionsList()
com.google.ortools.pdlp.PointMetadata buildPartial()
com.google.ortools.pdlp.PointMetadata getDefaultInstanceForType()
com.google.protobuf.Parser< PointMetadata > getParserForType()
static final int ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER
static com.google.ortools.pdlp.PointMetadata parseFrom(byte[] data)
java.util.List< java.lang.Double > getRandomDualProjectionsList()
static com.google.ortools.pdlp.PointMetadata parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.pdlp.PointType getPointType()
static Builder newBuilder(com.google.ortools.pdlp.PointMetadata prototype)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.CodedInputStream input)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.pdlp.PointMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static final int RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER
static final int ACTIVE_PRIMAL_VARIABLE_COUNT_FIELD_NUMBER
static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean equals(final java.lang.Object obj)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata parseFrom(java.nio.ByteBuffer data)
java.util.List< java.lang.Double > getRandomPrimalProjectionsList()
static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata getDefaultInstance()
static final int RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER
static com.google.protobuf.Parser< PointMetadata > parser()
static final int ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER
static final int ACTIVE_PRIMAL_VARIABLE_CHANGE_FIELD_NUMBER