Google OR-Tools v9.12
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// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solve_log.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.pdlp;
7
11public final class PointMetadata extends
12 com.google.protobuf.GeneratedMessage implements
13 // @@protoc_insertion_point(message_implements:operations_research.pdlp.PointMetadata)
15private static final long serialVersionUID = 0L;
16 static {
17 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
18 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
19 /* major= */ 4,
20 /* minor= */ 29,
21 /* patch= */ 3,
22 /* suffix= */ "",
23 PointMetadata.class.getName());
24 }
25 // Use PointMetadata.newBuilder() to construct.
26 private PointMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
27 super(builder);
28 }
29 private PointMetadata() {
30 pointType_ = 0;
31 randomPrimalProjections_ = emptyDoubleList();
32 randomDualProjections_ = emptyDoubleList();
33 }
34
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
38 }
39
40 @java.lang.Override
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);
46 }
47
48 private int bitField0_;
49 public static final int POINT_TYPE_FIELD_NUMBER = 1;
50 private int pointType_ = 0;
59 @java.lang.Override public boolean hasPointType() {
60 return ((bitField0_ & 0x00000001) != 0);
61 }
62
70 @java.lang.Override public com.google.ortools.pdlp.PointType getPointType() {
71 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(pointType_);
72 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
73 }
74
75 public static final int RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER = 2;
76 @SuppressWarnings("serial")
77 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ =
78 emptyDoubleList();
87 @java.lang.Override
88 public java.util.List<java.lang.Double>
90 return randomPrimalProjections_;
91 }
92
101 return randomPrimalProjections_.size();
102 }
103
112 public double getRandomPrimalProjections(int index) {
113 return randomPrimalProjections_.getDouble(index);
114 }
115 private int randomPrimalProjectionsMemoizedSerializedSize = -1;
116
117 public static final int RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER = 3;
118 @SuppressWarnings("serial")
119 private com.google.protobuf.Internal.DoubleList randomDualProjections_ =
120 emptyDoubleList();
129 @java.lang.Override
130 public java.util.List<java.lang.Double>
132 return randomDualProjections_;
133 }
134
143 return randomDualProjections_.size();
144 }
145
154 public double getRandomDualProjections(int index) {
155 return randomDualProjections_.getDouble(index);
156 }
157 private int randomDualProjectionsMemoizedSerializedSize = -1;
158
159 public static final int ACTIVE_PRIMAL_VARIABLE_COUNT_FIELD_NUMBER = 4;
160 private long activePrimalVariableCount_ = 0L;
169 @java.lang.Override
171 return ((bitField0_ & 0x00000002) != 0);
172 }
173
181 @java.lang.Override
183 return activePrimalVariableCount_;
184 }
185
186 public static final int ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER = 5;
187 private long activeDualVariableCount_ = 0L;
196 @java.lang.Override
197 public boolean hasActiveDualVariableCount() {
198 return ((bitField0_ & 0x00000004) != 0);
199 }
200
208 @java.lang.Override
210 return activeDualVariableCount_;
211 }
212
214 private long activePrimalVariableChange_ = 0L;
224 @java.lang.Override
226 return ((bitField0_ & 0x00000008) != 0);
227 }
228
237 @java.lang.Override
239 return activePrimalVariableChange_;
240 }
241
242 public static final int ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER = 7;
243 private long activeDualVariableChange_ = 0L;
253 @java.lang.Override
255 return ((bitField0_ & 0x00000010) != 0);
256 }
257
266 @java.lang.Override
268 return activeDualVariableChange_;
269 }
270
271 private byte memoizedIsInitialized = -1;
272 @java.lang.Override
273 public final boolean isInitialized() {
274 byte isInitialized = memoizedIsInitialized;
275 if (isInitialized == 1) return true;
276 if (isInitialized == 0) return false;
277
278 memoizedIsInitialized = 1;
279 return true;
280 }
281
282 @java.lang.Override
283 public void writeTo(com.google.protobuf.CodedOutputStream output)
284 throws java.io.IOException {
286 if (((bitField0_ & 0x00000001) != 0)) {
287 output.writeEnum(1, pointType_);
288 }
289 if (getRandomPrimalProjectionsList().size() > 0) {
290 output.writeUInt32NoTag(18);
291 output.writeUInt32NoTag(randomPrimalProjectionsMemoizedSerializedSize);
292 }
293 for (int i = 0; i < randomPrimalProjections_.size(); i++) {
294 output.writeDoubleNoTag(randomPrimalProjections_.getDouble(i));
295 }
296 if (getRandomDualProjectionsList().size() > 0) {
297 output.writeUInt32NoTag(26);
298 output.writeUInt32NoTag(randomDualProjectionsMemoizedSerializedSize);
299 }
300 for (int i = 0; i < randomDualProjections_.size(); i++) {
301 output.writeDoubleNoTag(randomDualProjections_.getDouble(i));
302 }
303 if (((bitField0_ & 0x00000002) != 0)) {
304 output.writeInt64(4, activePrimalVariableCount_);
305 }
306 if (((bitField0_ & 0x00000004) != 0)) {
307 output.writeInt64(5, activeDualVariableCount_);
308 }
309 if (((bitField0_ & 0x00000008) != 0)) {
310 output.writeInt64(6, activePrimalVariableChange_);
311 }
312 if (((bitField0_ & 0x00000010) != 0)) {
313 output.writeInt64(7, activeDualVariableChange_);
314 }
315 getUnknownFields().writeTo(output);
316 }
317
318 @java.lang.Override
319 public int getSerializedSize() {
320 int size = memoizedSize;
321 if (size != -1) return size;
322
323 size = 0;
324 if (((bitField0_ & 0x00000001) != 0)) {
325 size += com.google.protobuf.CodedOutputStream
326 .computeEnumSize(1, pointType_);
327 }
328 {
329 int dataSize = 0;
330 dataSize = 8 * getRandomPrimalProjectionsList().size();
331 size += dataSize;
332 if (!getRandomPrimalProjectionsList().isEmpty()) {
333 size += 1;
334 size += com.google.protobuf.CodedOutputStream
335 .computeInt32SizeNoTag(dataSize);
336 }
337 randomPrimalProjectionsMemoizedSerializedSize = dataSize;
338 }
339 {
340 int dataSize = 0;
341 dataSize = 8 * getRandomDualProjectionsList().size();
342 size += dataSize;
343 if (!getRandomDualProjectionsList().isEmpty()) {
344 size += 1;
345 size += com.google.protobuf.CodedOutputStream
346 .computeInt32SizeNoTag(dataSize);
347 }
348 randomDualProjectionsMemoizedSerializedSize = dataSize;
349 }
350 if (((bitField0_ & 0x00000002) != 0)) {
351 size += com.google.protobuf.CodedOutputStream
352 .computeInt64Size(4, activePrimalVariableCount_);
353 }
354 if (((bitField0_ & 0x00000004) != 0)) {
355 size += com.google.protobuf.CodedOutputStream
356 .computeInt64Size(5, activeDualVariableCount_);
357 }
358 if (((bitField0_ & 0x00000008) != 0)) {
359 size += com.google.protobuf.CodedOutputStream
360 .computeInt64Size(6, activePrimalVariableChange_);
361 }
362 if (((bitField0_ & 0x00000010) != 0)) {
363 size += com.google.protobuf.CodedOutputStream
364 .computeInt64Size(7, activeDualVariableChange_);
365 }
366 size += getUnknownFields().getSerializedSize();
367 memoizedSize = size;
368 return size;
369 }
370
371 @java.lang.Override
372 public boolean equals(final java.lang.Object obj) {
373 if (obj == this) {
374 return true;
375 }
376 if (!(obj instanceof com.google.ortools.pdlp.PointMetadata)) {
377 return super.equals(obj);
378 }
379 com.google.ortools.pdlp.PointMetadata other = (com.google.ortools.pdlp.PointMetadata) obj;
380
381 if (hasPointType() != other.hasPointType()) return false;
382 if (hasPointType()) {
383 if (pointType_ != other.pointType_) return false;
384 }
386 .equals(other.getRandomPrimalProjectionsList())) return false;
388 .equals(other.getRandomDualProjectionsList())) return false;
389 if (hasActivePrimalVariableCount() != other.hasActivePrimalVariableCount()) return false;
392 != other.getActivePrimalVariableCount()) return false;
393 }
394 if (hasActiveDualVariableCount() != other.hasActiveDualVariableCount()) return false;
397 != other.getActiveDualVariableCount()) return false;
398 }
402 != other.getActivePrimalVariableChange()) return false;
403 }
404 if (hasActiveDualVariableChange() != other.hasActiveDualVariableChange()) return false;
407 != other.getActiveDualVariableChange()) return false;
408 }
409 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
410 return true;
411 }
412
413 @java.lang.Override
414 public int hashCode() {
415 if (memoizedHashCode != 0) {
416 return memoizedHashCode;
417 }
418 int hash = 41;
419 hash = (19 * hash) + getDescriptor().hashCode();
420 if (hasPointType()) {
421 hash = (37 * hash) + POINT_TYPE_FIELD_NUMBER;
422 hash = (53 * hash) + pointType_;
423 }
425 hash = (37 * hash) + RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER;
426 hash = (53 * hash) + getRandomPrimalProjectionsList().hashCode();
427 }
429 hash = (37 * hash) + RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER;
430 hash = (53 * hash) + getRandomDualProjectionsList().hashCode();
431 }
434 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
436 }
438 hash = (37 * hash) + ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER;
439 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
441 }
444 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
446 }
448 hash = (37 * hash) + ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER;
449 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
451 }
452 hash = (29 * hash) + getUnknownFields().hashCode();
453 memoizedHashCode = hash;
454 return hash;
455 }
456
458 java.nio.ByteBuffer data)
459 throws com.google.protobuf.InvalidProtocolBufferException {
460 return PARSER.parseFrom(data);
461 }
463 java.nio.ByteBuffer data,
464 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
465 throws com.google.protobuf.InvalidProtocolBufferException {
466 return PARSER.parseFrom(data, extensionRegistry);
467 }
469 com.google.protobuf.ByteString data)
470 throws com.google.protobuf.InvalidProtocolBufferException {
471 return PARSER.parseFrom(data);
472 }
474 com.google.protobuf.ByteString data,
475 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
476 throws com.google.protobuf.InvalidProtocolBufferException {
477 return PARSER.parseFrom(data, extensionRegistry);
478 }
480 throws com.google.protobuf.InvalidProtocolBufferException {
481 return PARSER.parseFrom(data);
482 }
484 byte[] data,
485 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
486 throws com.google.protobuf.InvalidProtocolBufferException {
487 return PARSER.parseFrom(data, extensionRegistry);
488 }
489 public static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input)
490 throws java.io.IOException {
491 return com.google.protobuf.GeneratedMessage
492 .parseWithIOException(PARSER, input);
493 }
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);
500 }
501
502 public static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input)
503 throws java.io.IOException {
504 return com.google.protobuf.GeneratedMessage
505 .parseDelimitedWithIOException(PARSER, input);
506 }
507
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);
514 }
516 com.google.protobuf.CodedInputStream input)
517 throws java.io.IOException {
518 return com.google.protobuf.GeneratedMessage
519 .parseWithIOException(PARSER, input);
520 }
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);
527 }
528
529 @java.lang.Override
530 public Builder newBuilderForType() { return newBuilder(); }
531 public static Builder newBuilder() {
532 return DEFAULT_INSTANCE.toBuilder();
533 }
534 public static Builder newBuilder(com.google.ortools.pdlp.PointMetadata prototype) {
535 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
536 }
537 @java.lang.Override
539 return this == DEFAULT_INSTANCE
540 ? new Builder() : new Builder().mergeFrom(this);
541 }
542
543 @java.lang.Override
545 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
546 Builder builder = new Builder(parent);
547 return builder;
548 }
549
552 public static final class Builder extends
553 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
554 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.PointMetadata)
556 public static final com.google.protobuf.Descriptors.Descriptor
558 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
559 }
560
561 @java.lang.Override
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);
567 }
568
569 // Construct using com.google.ortools.pdlp.PointMetadata.newBuilder()
570 private Builder() {
571
572 }
573
574 private Builder(
575 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
576 super(parent);
577
578 }
579 @java.lang.Override
580 public Builder clear() {
581 super.clear();
582 bitField0_ = 0;
583 pointType_ = 0;
584 randomPrimalProjections_ = emptyDoubleList();
585 randomDualProjections_ = emptyDoubleList();
586 activePrimalVariableCount_ = 0L;
587 activeDualVariableCount_ = 0L;
588 activePrimalVariableChange_ = 0L;
589 activeDualVariableChange_ = 0L;
590 return this;
591 }
592
593 @java.lang.Override
594 public com.google.protobuf.Descriptors.Descriptor
596 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
597 }
598
599 @java.lang.Override
601 return com.google.ortools.pdlp.PointMetadata.getDefaultInstance();
602 }
603
604 @java.lang.Override
607 if (!result.isInitialized()) {
608 throw newUninitializedMessageException(result);
609 }
610 return result;
611 }
612
613 @java.lang.Override
615 com.google.ortools.pdlp.PointMetadata result = new com.google.ortools.pdlp.PointMetadata(this);
616 if (bitField0_ != 0) { buildPartial0(result); }
617 onBuilt();
618 return result;
619 }
620
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;
627 }
628 if (((from_bitField0_ & 0x00000002) != 0)) {
629 randomPrimalProjections_.makeImmutable();
630 result.randomPrimalProjections_ = randomPrimalProjections_;
631 }
632 if (((from_bitField0_ & 0x00000004) != 0)) {
633 randomDualProjections_.makeImmutable();
634 result.randomDualProjections_ = randomDualProjections_;
635 }
636 if (((from_bitField0_ & 0x00000008) != 0)) {
637 result.activePrimalVariableCount_ = activePrimalVariableCount_;
638 to_bitField0_ |= 0x00000002;
639 }
640 if (((from_bitField0_ & 0x00000010) != 0)) {
641 result.activeDualVariableCount_ = activeDualVariableCount_;
642 to_bitField0_ |= 0x00000004;
643 }
644 if (((from_bitField0_ & 0x00000020) != 0)) {
645 result.activePrimalVariableChange_ = activePrimalVariableChange_;
646 to_bitField0_ |= 0x00000008;
647 }
648 if (((from_bitField0_ & 0x00000040) != 0)) {
649 result.activeDualVariableChange_ = activeDualVariableChange_;
650 to_bitField0_ |= 0x00000010;
651 }
652 result.bitField0_ |= to_bitField0_;
653 }
654
655 @java.lang.Override
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);
659 } else {
660 super.mergeFrom(other);
661 return this;
662 }
663 }
664
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()) {
668 setPointType(other.getPointType());
669 }
670 if (!other.randomPrimalProjections_.isEmpty()) {
671 if (randomPrimalProjections_.isEmpty()) {
672 randomPrimalProjections_ = other.randomPrimalProjections_;
673 randomPrimalProjections_.makeImmutable();
674 bitField0_ |= 0x00000002;
675 } else {
676 ensureRandomPrimalProjectionsIsMutable();
677 randomPrimalProjections_.addAll(other.randomPrimalProjections_);
678 }
679 onChanged();
680 }
681 if (!other.randomDualProjections_.isEmpty()) {
682 if (randomDualProjections_.isEmpty()) {
683 randomDualProjections_ = other.randomDualProjections_;
684 randomDualProjections_.makeImmutable();
685 bitField0_ |= 0x00000004;
686 } else {
687 ensureRandomDualProjectionsIsMutable();
688 randomDualProjections_.addAll(other.randomDualProjections_);
689 }
690 onChanged();
691 }
692 if (other.hasActivePrimalVariableCount()) {
693 setActivePrimalVariableCount(other.getActivePrimalVariableCount());
694 }
695 if (other.hasActiveDualVariableCount()) {
696 setActiveDualVariableCount(other.getActiveDualVariableCount());
697 }
698 if (other.hasActivePrimalVariableChange()) {
699 setActivePrimalVariableChange(other.getActivePrimalVariableChange());
700 }
701 if (other.hasActiveDualVariableChange()) {
702 setActiveDualVariableChange(other.getActiveDualVariableChange());
703 }
704 this.mergeUnknownFields(other.getUnknownFields());
705 onChanged();
706 return this;
707 }
708
709 @java.lang.Override
710 public final boolean isInitialized() {
711 return true;
712 }
713
714 @java.lang.Override
715 public Builder mergeFrom(
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();
721 }
722 try {
723 boolean done = false;
724 while (!done) {
725 int tag = input.readTag();
726 switch (tag) {
727 case 0:
728 done = true;
729 break;
730 case 8: {
731 int tmpRaw = input.readEnum();
733 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
734 if (tmpValue == null) {
735 mergeUnknownVarintField(1, tmpRaw);
736 } else {
737 pointType_ = tmpRaw;
738 bitField0_ |= 0x00000001;
739 }
740 break;
741 } // case 8
742 case 17: {
743 double v = input.readDouble();
744 ensureRandomPrimalProjectionsIsMutable();
745 randomPrimalProjections_.addDouble(v);
746 break;
747 } // case 17
748 case 18: {
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());
755 }
756 input.popLimit(limit);
757 break;
758 } // case 18
759 case 25: {
760 double v = input.readDouble();
761 ensureRandomDualProjectionsIsMutable();
762 randomDualProjections_.addDouble(v);
763 break;
764 } // case 25
765 case 26: {
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());
772 }
773 input.popLimit(limit);
774 break;
775 } // case 26
776 case 32: {
777 activePrimalVariableCount_ = input.readInt64();
778 bitField0_ |= 0x00000008;
779 break;
780 } // case 32
781 case 40: {
782 activeDualVariableCount_ = input.readInt64();
783 bitField0_ |= 0x00000010;
784 break;
785 } // case 40
786 case 48: {
787 activePrimalVariableChange_ = input.readInt64();
788 bitField0_ |= 0x00000020;
789 break;
790 } // case 48
791 case 56: {
792 activeDualVariableChange_ = input.readInt64();
793 bitField0_ |= 0x00000040;
794 break;
795 } // case 56
796 default: {
797 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
798 done = true; // was an endgroup tag
799 }
800 break;
801 } // default:
802 } // switch (tag)
803 } // while (!done)
804 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
805 throw e.unwrapIOException();
806 } finally {
807 onChanged();
808 } // finally
809 return this;
810 }
811 private int bitField0_;
812
813 private int pointType_ = 0;
822 @java.lang.Override public boolean hasPointType() {
823 return ((bitField0_ & 0x00000001) != 0);
824 }
825
833 @java.lang.Override
835 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(pointType_);
836 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
837 }
838
847 public Builder setPointType(com.google.ortools.pdlp.PointType value) {
848 if (value == null) {
849 throw new NullPointerException();
850 }
851 bitField0_ |= 0x00000001;
852 pointType_ = value.getNumber();
853 onChanged();
854 return this;
855 }
856
864 public Builder clearPointType() {
865 bitField0_ = (bitField0_ & ~0x00000001);
866 pointType_ = 0;
867 onChanged();
868 return this;
869 }
870
871 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ = emptyDoubleList();
872 private void ensureRandomPrimalProjectionsIsMutable() {
873 if (!randomPrimalProjections_.isModifiable()) {
874 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_);
875 }
876 bitField0_ |= 0x00000002;
877 }
878 private void ensureRandomPrimalProjectionsIsMutable(int capacity) {
879 if (!randomPrimalProjections_.isModifiable()) {
880 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_, capacity);
881 }
882 bitField0_ |= 0x00000002;
883 }
892 public java.util.List<java.lang.Double>
894 randomPrimalProjections_.makeImmutable();
895 return randomPrimalProjections_;
896 }
897
906 return randomPrimalProjections_.size();
907 }
908
917 public double getRandomPrimalProjections(int index) {
918 return randomPrimalProjections_.getDouble(index);
919 }
920
931 int index, double value) {
932
933 ensureRandomPrimalProjectionsIsMutable();
934 randomPrimalProjections_.setDouble(index, value);
935 bitField0_ |= 0x00000002;
936 onChanged();
937 return this;
938 }
939
948 public Builder addRandomPrimalProjections(double value) {
949
950 ensureRandomPrimalProjectionsIsMutable();
951 randomPrimalProjections_.addDouble(value);
952 bitField0_ |= 0x00000002;
953 onChanged();
954 return this;
955 }
956
966 java.lang.Iterable<? extends java.lang.Double> values) {
967 ensureRandomPrimalProjectionsIsMutable();
968 com.google.protobuf.AbstractMessageLite.Builder.addAll(
969 values, randomPrimalProjections_);
970 bitField0_ |= 0x00000002;
971 onChanged();
972 return this;
973 }
974
983 randomPrimalProjections_ = emptyDoubleList();
984 bitField0_ = (bitField0_ & ~0x00000002);
985 onChanged();
986 return this;
987 }
988
989 private com.google.protobuf.Internal.DoubleList randomDualProjections_ = emptyDoubleList();
990 private void ensureRandomDualProjectionsIsMutable() {
991 if (!randomDualProjections_.isModifiable()) {
992 randomDualProjections_ = makeMutableCopy(randomDualProjections_);
993 }
994 bitField0_ |= 0x00000004;
995 }
996 private void ensureRandomDualProjectionsIsMutable(int capacity) {
997 if (!randomDualProjections_.isModifiable()) {
998 randomDualProjections_ = makeMutableCopy(randomDualProjections_, capacity);
999 }
1000 bitField0_ |= 0x00000004;
1001 }
1010 public java.util.List<java.lang.Double>
1012 randomDualProjections_.makeImmutable();
1013 return randomDualProjections_;
1014 }
1015
1024 return randomDualProjections_.size();
1025 }
1026
1035 public double getRandomDualProjections(int index) {
1036 return randomDualProjections_.getDouble(index);
1037 }
1038
1049 int index, double value) {
1050
1051 ensureRandomDualProjectionsIsMutable();
1052 randomDualProjections_.setDouble(index, value);
1053 bitField0_ |= 0x00000004;
1054 onChanged();
1055 return this;
1056 }
1057
1066 public Builder addRandomDualProjections(double value) {
1067
1068 ensureRandomDualProjectionsIsMutable();
1069 randomDualProjections_.addDouble(value);
1070 bitField0_ |= 0x00000004;
1071 onChanged();
1072 return this;
1073 }
1074
1084 java.lang.Iterable<? extends java.lang.Double> values) {
1085 ensureRandomDualProjectionsIsMutable();
1086 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1087 values, randomDualProjections_);
1088 bitField0_ |= 0x00000004;
1089 onChanged();
1090 return this;
1091 }
1092
1101 randomDualProjections_ = emptyDoubleList();
1102 bitField0_ = (bitField0_ & ~0x00000004);
1103 onChanged();
1104 return this;
1105 }
1106
1107 private long activePrimalVariableCount_ ;
1116 @java.lang.Override
1118 return ((bitField0_ & 0x00000008) != 0);
1119 }
1120
1128 @java.lang.Override
1130 return activePrimalVariableCount_;
1131 }
1132
1141 public Builder setActivePrimalVariableCount(long value) {
1142
1143 activePrimalVariableCount_ = value;
1144 bitField0_ |= 0x00000008;
1145 onChanged();
1146 return this;
1147 }
1148
1157 bitField0_ = (bitField0_ & ~0x00000008);
1158 activePrimalVariableCount_ = 0L;
1159 onChanged();
1160 return this;
1161 }
1162
1163 private long activeDualVariableCount_ ;
1172 @java.lang.Override
1174 return ((bitField0_ & 0x00000010) != 0);
1175 }
1176
1184 @java.lang.Override
1186 return activeDualVariableCount_;
1187 }
1188
1197 public Builder setActiveDualVariableCount(long value) {
1198
1199 activeDualVariableCount_ = value;
1200 bitField0_ |= 0x00000010;
1201 onChanged();
1202 return this;
1203 }
1204
1213 bitField0_ = (bitField0_ & ~0x00000010);
1214 activeDualVariableCount_ = 0L;
1215 onChanged();
1216 return this;
1217 }
1218
1219 private long activePrimalVariableChange_ ;
1229 @java.lang.Override
1231 return ((bitField0_ & 0x00000020) != 0);
1232 }
1233
1242 @java.lang.Override
1244 return activePrimalVariableChange_;
1245 }
1246
1256 public Builder setActivePrimalVariableChange(long value) {
1257
1258 activePrimalVariableChange_ = value;
1259 bitField0_ |= 0x00000020;
1260 onChanged();
1261 return this;
1262 }
1263
1273 bitField0_ = (bitField0_ & ~0x00000020);
1274 activePrimalVariableChange_ = 0L;
1275 onChanged();
1276 return this;
1277 }
1278
1279 private long activeDualVariableChange_ ;
1289 @java.lang.Override
1291 return ((bitField0_ & 0x00000040) != 0);
1292 }
1293
1302 @java.lang.Override
1304 return activeDualVariableChange_;
1305 }
1306
1316 public Builder setActiveDualVariableChange(long value) {
1317
1318 activeDualVariableChange_ = value;
1319 bitField0_ |= 0x00000040;
1320 onChanged();
1321 return this;
1322 }
1323
1333 bitField0_ = (bitField0_ & ~0x00000040);
1334 activeDualVariableChange_ = 0L;
1335 onChanged();
1336 return this;
1337 }
1338
1339 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.PointMetadata)
1340 }
1341
1342 // @@protoc_insertion_point(class_scope:operations_research.pdlp.PointMetadata)
1343 private static final com.google.ortools.pdlp.PointMetadata DEFAULT_INSTANCE;
1344 static {
1345 DEFAULT_INSTANCE = new com.google.ortools.pdlp.PointMetadata();
1346 }
1347
1349 return DEFAULT_INSTANCE;
1350 }
1351
1352 private static final com.google.protobuf.Parser<PointMetadata>
1353 PARSER = new com.google.protobuf.AbstractParser<PointMetadata>() {
1354 @java.lang.Override
1355 public PointMetadata parsePartialFrom(
1356 com.google.protobuf.CodedInputStream input,
1357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1358 throws com.google.protobuf.InvalidProtocolBufferException {
1359 Builder builder = newBuilder();
1360 try {
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());
1369 }
1370 return builder.buildPartial();
1371 }
1372 };
1373
1374 public static com.google.protobuf.Parser<PointMetadata> parser() {
1375 return PARSER;
1376 }
1377
1378 @java.lang.Override
1379 public com.google.protobuf.Parser<PointMetadata> getParserForType() {
1380 return PARSER;
1381 }
1382
1383 @java.lang.Override
1385 return DEFAULT_INSTANCE;
1386 }
1387
1388}
1389
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