Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
NoOverlap2DConstraintProto.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/sat/cp_model.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.sat;
6
22public final class NoOverlap2DConstraintProto extends
23 com.google.protobuf.GeneratedMessage implements
24 // @@protoc_insertion_point(message_implements:operations_research.sat.NoOverlap2DConstraintProto)
26private static final long serialVersionUID = 0L;
27 static {
28 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
29 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
30 /* major= */ 4,
31 /* minor= */ 26,
32 /* patch= */ 1,
33 /* suffix= */ "",
34 NoOverlap2DConstraintProto.class.getName());
35 }
36 // Use NoOverlap2DConstraintProto.newBuilder() to construct.
37 private NoOverlap2DConstraintProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
38 super(builder);
39 }
41 xIntervals_ = emptyIntList();
42 yIntervals_ = emptyIntList();
43 }
44
45 public static final com.google.protobuf.Descriptors.Descriptor
47 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_NoOverlap2DConstraintProto_descriptor;
48 }
49
50 @java.lang.Override
51 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
53 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_NoOverlap2DConstraintProto_fieldAccessorTable
54 .ensureFieldAccessorsInitialized(
55 com.google.ortools.sat.NoOverlap2DConstraintProto.class, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.class);
56 }
57
58 public static final int X_INTERVALS_FIELD_NUMBER = 1;
59 @SuppressWarnings("serial")
60 private com.google.protobuf.Internal.IntList xIntervals_ =
61 emptyIntList();
66 @java.lang.Override
67 public java.util.List<java.lang.Integer>
69 return xIntervals_;
70 }
75 public int getXIntervalsCount() {
76 return xIntervals_.size();
77 }
83 public int getXIntervals(int index) {
84 return xIntervals_.getInt(index);
85 }
86 private int xIntervalsMemoizedSerializedSize = -1;
87
88 public static final int Y_INTERVALS_FIELD_NUMBER = 2;
89 @SuppressWarnings("serial")
90 private com.google.protobuf.Internal.IntList yIntervals_ =
91 emptyIntList();
100 @java.lang.Override
101 public java.util.List<java.lang.Integer>
103 return yIntervals_;
104 }
113 public int getYIntervalsCount() {
114 return yIntervals_.size();
115 }
125 public int getYIntervals(int index) {
126 return yIntervals_.getInt(index);
127 }
128 private int yIntervalsMemoizedSerializedSize = -1;
129
130 private byte memoizedIsInitialized = -1;
131 @java.lang.Override
132 public final boolean isInitialized() {
133 byte isInitialized = memoizedIsInitialized;
134 if (isInitialized == 1) return true;
135 if (isInitialized == 0) return false;
136
137 memoizedIsInitialized = 1;
138 return true;
139 }
140
141 @java.lang.Override
142 public void writeTo(com.google.protobuf.CodedOutputStream output)
143 throws java.io.IOException {
145 if (getXIntervalsList().size() > 0) {
146 output.writeUInt32NoTag(10);
147 output.writeUInt32NoTag(xIntervalsMemoizedSerializedSize);
148 }
149 for (int i = 0; i < xIntervals_.size(); i++) {
150 output.writeInt32NoTag(xIntervals_.getInt(i));
151 }
152 if (getYIntervalsList().size() > 0) {
153 output.writeUInt32NoTag(18);
154 output.writeUInt32NoTag(yIntervalsMemoizedSerializedSize);
155 }
156 for (int i = 0; i < yIntervals_.size(); i++) {
157 output.writeInt32NoTag(yIntervals_.getInt(i));
158 }
159 getUnknownFields().writeTo(output);
160 }
161
162 @java.lang.Override
163 public int getSerializedSize() {
164 int size = memoizedSize;
165 if (size != -1) return size;
166
167 size = 0;
168 {
169 int dataSize = 0;
170 for (int i = 0; i < xIntervals_.size(); i++) {
171 dataSize += com.google.protobuf.CodedOutputStream
172 .computeInt32SizeNoTag(xIntervals_.getInt(i));
173 }
174 size += dataSize;
175 if (!getXIntervalsList().isEmpty()) {
176 size += 1;
177 size += com.google.protobuf.CodedOutputStream
178 .computeInt32SizeNoTag(dataSize);
179 }
180 xIntervalsMemoizedSerializedSize = dataSize;
181 }
182 {
183 int dataSize = 0;
184 for (int i = 0; i < yIntervals_.size(); i++) {
185 dataSize += com.google.protobuf.CodedOutputStream
186 .computeInt32SizeNoTag(yIntervals_.getInt(i));
187 }
188 size += dataSize;
189 if (!getYIntervalsList().isEmpty()) {
190 size += 1;
191 size += com.google.protobuf.CodedOutputStream
192 .computeInt32SizeNoTag(dataSize);
193 }
194 yIntervalsMemoizedSerializedSize = dataSize;
195 }
196 size += getUnknownFields().getSerializedSize();
197 memoizedSize = size;
198 return size;
199 }
200
201 @java.lang.Override
202 public boolean equals(final java.lang.Object obj) {
203 if (obj == this) {
204 return true;
205 }
206 if (!(obj instanceof com.google.ortools.sat.NoOverlap2DConstraintProto)) {
207 return super.equals(obj);
208 }
209 com.google.ortools.sat.NoOverlap2DConstraintProto other = (com.google.ortools.sat.NoOverlap2DConstraintProto) obj;
210
211 if (!getXIntervalsList()
212 .equals(other.getXIntervalsList())) return false;
213 if (!getYIntervalsList()
214 .equals(other.getYIntervalsList())) return false;
215 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
216 return true;
217 }
218
219 @java.lang.Override
220 public int hashCode() {
221 if (memoizedHashCode != 0) {
222 return memoizedHashCode;
223 }
224 int hash = 41;
225 hash = (19 * hash) + getDescriptor().hashCode();
226 if (getXIntervalsCount() > 0) {
227 hash = (37 * hash) + X_INTERVALS_FIELD_NUMBER;
228 hash = (53 * hash) + getXIntervalsList().hashCode();
229 }
230 if (getYIntervalsCount() > 0) {
231 hash = (37 * hash) + Y_INTERVALS_FIELD_NUMBER;
232 hash = (53 * hash) + getYIntervalsList().hashCode();
233 }
234 hash = (29 * hash) + getUnknownFields().hashCode();
235 memoizedHashCode = hash;
236 return hash;
237 }
238
240 java.nio.ByteBuffer data)
241 throws com.google.protobuf.InvalidProtocolBufferException {
242 return PARSER.parseFrom(data);
243 }
245 java.nio.ByteBuffer data,
246 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
247 throws com.google.protobuf.InvalidProtocolBufferException {
248 return PARSER.parseFrom(data, extensionRegistry);
249 }
251 com.google.protobuf.ByteString data)
252 throws com.google.protobuf.InvalidProtocolBufferException {
253 return PARSER.parseFrom(data);
254 }
256 com.google.protobuf.ByteString data,
257 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
258 throws com.google.protobuf.InvalidProtocolBufferException {
259 return PARSER.parseFrom(data, extensionRegistry);
260 }
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data);
264 }
266 byte[] data,
267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data, extensionRegistry);
270 }
271 public static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(java.io.InputStream input)
272 throws java.io.IOException {
273 return com.google.protobuf.GeneratedMessage
274 .parseWithIOException(PARSER, input);
275 }
277 java.io.InputStream input,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws java.io.IOException {
280 return com.google.protobuf.GeneratedMessage
281 .parseWithIOException(PARSER, input, extensionRegistry);
282 }
283
285 throws java.io.IOException {
286 return com.google.protobuf.GeneratedMessage
287 .parseDelimitedWithIOException(PARSER, input);
288 }
289
291 java.io.InputStream input,
292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
296 }
298 com.google.protobuf.CodedInputStream input)
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessage
301 .parseWithIOException(PARSER, input);
302 }
304 com.google.protobuf.CodedInputStream input,
305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseWithIOException(PARSER, input, extensionRegistry);
309 }
310
311 @java.lang.Override
312 public Builder newBuilderForType() { return newBuilder(); }
313 public static Builder newBuilder() {
314 return DEFAULT_INSTANCE.toBuilder();
315 }
316 public static Builder newBuilder(com.google.ortools.sat.NoOverlap2DConstraintProto prototype) {
317 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
318 }
319 @java.lang.Override
321 return this == DEFAULT_INSTANCE
322 ? new Builder() : new Builder().mergeFrom(this);
323 }
324
325 @java.lang.Override
327 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
328 Builder builder = new Builder(parent);
329 return builder;
330 }
346 public static final class Builder extends
347 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
348 // @@protoc_insertion_point(builder_implements:operations_research.sat.NoOverlap2DConstraintProto)
349 com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder {
350 public static final com.google.protobuf.Descriptors.Descriptor
352 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_NoOverlap2DConstraintProto_descriptor;
353 }
354
355 @java.lang.Override
356 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
358 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_NoOverlap2DConstraintProto_fieldAccessorTable
359 .ensureFieldAccessorsInitialized(
360 com.google.ortools.sat.NoOverlap2DConstraintProto.class, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder.class);
361 }
362
363 // Construct using com.google.ortools.sat.NoOverlap2DConstraintProto.newBuilder()
364 private Builder() {
365
366 }
367
368 private Builder(
369 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
370 super(parent);
371
372 }
373 @java.lang.Override
374 public Builder clear() {
375 super.clear();
376 bitField0_ = 0;
377 xIntervals_ = emptyIntList();
378 yIntervals_ = emptyIntList();
379 return this;
380 }
381
382 @java.lang.Override
383 public com.google.protobuf.Descriptors.Descriptor
385 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_NoOverlap2DConstraintProto_descriptor;
386 }
387
388 @java.lang.Override
390 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
391 }
392
393 @java.lang.Override
396 if (!result.isInitialized()) {
397 throw newUninitializedMessageException(result);
398 }
399 return result;
400 }
401
402 @java.lang.Override
404 com.google.ortools.sat.NoOverlap2DConstraintProto result = new com.google.ortools.sat.NoOverlap2DConstraintProto(this);
405 if (bitField0_ != 0) { buildPartial0(result); }
406 onBuilt();
407 return result;
408 }
409
410 private void buildPartial0(com.google.ortools.sat.NoOverlap2DConstraintProto result) {
411 int from_bitField0_ = bitField0_;
412 if (((from_bitField0_ & 0x00000001) != 0)) {
413 xIntervals_.makeImmutable();
414 result.xIntervals_ = xIntervals_;
415 }
416 if (((from_bitField0_ & 0x00000002) != 0)) {
417 yIntervals_.makeImmutable();
418 result.yIntervals_ = yIntervals_;
419 }
420 }
421
422 @java.lang.Override
423 public Builder mergeFrom(com.google.protobuf.Message other) {
424 if (other instanceof com.google.ortools.sat.NoOverlap2DConstraintProto) {
425 return mergeFrom((com.google.ortools.sat.NoOverlap2DConstraintProto)other);
426 } else {
427 super.mergeFrom(other);
428 return this;
429 }
430 }
431
432 public Builder mergeFrom(com.google.ortools.sat.NoOverlap2DConstraintProto other) {
433 if (other == com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance()) return this;
434 if (!other.xIntervals_.isEmpty()) {
435 if (xIntervals_.isEmpty()) {
436 xIntervals_ = other.xIntervals_;
437 xIntervals_.makeImmutable();
438 bitField0_ |= 0x00000001;
439 } else {
440 ensureXIntervalsIsMutable();
441 xIntervals_.addAll(other.xIntervals_);
442 }
443 onChanged();
444 }
445 if (!other.yIntervals_.isEmpty()) {
446 if (yIntervals_.isEmpty()) {
447 yIntervals_ = other.yIntervals_;
448 yIntervals_.makeImmutable();
449 bitField0_ |= 0x00000002;
450 } else {
451 ensureYIntervalsIsMutable();
452 yIntervals_.addAll(other.yIntervals_);
453 }
454 onChanged();
455 }
456 this.mergeUnknownFields(other.getUnknownFields());
457 onChanged();
458 return this;
459 }
460
461 @java.lang.Override
462 public final boolean isInitialized() {
463 return true;
464 }
465
466 @java.lang.Override
468 com.google.protobuf.CodedInputStream input,
469 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
470 throws java.io.IOException {
471 if (extensionRegistry == null) {
472 throw new java.lang.NullPointerException();
473 }
474 try {
475 boolean done = false;
476 while (!done) {
477 int tag = input.readTag();
478 switch (tag) {
479 case 0:
480 done = true;
481 break;
482 case 8: {
483 int v = input.readInt32();
484 ensureXIntervalsIsMutable();
485 xIntervals_.addInt(v);
486 break;
487 } // case 8
488 case 10: {
489 int length = input.readRawVarint32();
490 int limit = input.pushLimit(length);
491 ensureXIntervalsIsMutable();
492 while (input.getBytesUntilLimit() > 0) {
493 xIntervals_.addInt(input.readInt32());
494 }
495 input.popLimit(limit);
496 break;
497 } // case 10
498 case 16: {
499 int v = input.readInt32();
500 ensureYIntervalsIsMutable();
501 yIntervals_.addInt(v);
502 break;
503 } // case 16
504 case 18: {
505 int length = input.readRawVarint32();
506 int limit = input.pushLimit(length);
507 ensureYIntervalsIsMutable();
508 while (input.getBytesUntilLimit() > 0) {
509 yIntervals_.addInt(input.readInt32());
510 }
511 input.popLimit(limit);
512 break;
513 } // case 18
514 default: {
515 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
516 done = true; // was an endgroup tag
517 }
518 break;
519 } // default:
520 } // switch (tag)
521 } // while (!done)
522 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
523 throw e.unwrapIOException();
524 } finally {
525 onChanged();
526 } // finally
527 return this;
528 }
529 private int bitField0_;
530
531 private com.google.protobuf.Internal.IntList xIntervals_ = emptyIntList();
532 private void ensureXIntervalsIsMutable() {
533 if (!xIntervals_.isModifiable()) {
534 xIntervals_ = makeMutableCopy(xIntervals_);
535 }
536 bitField0_ |= 0x00000001;
537 }
542 public java.util.List<java.lang.Integer>
544 xIntervals_.makeImmutable();
545 return xIntervals_;
546 }
551 public int getXIntervalsCount() {
552 return xIntervals_.size();
553 }
559 public int getXIntervals(int index) {
560 return xIntervals_.getInt(index);
561 }
569 int index, int value) {
570
571 ensureXIntervalsIsMutable();
572 xIntervals_.setInt(index, value);
573 bitField0_ |= 0x00000001;
574 onChanged();
575 return this;
576 }
582 public Builder addXIntervals(int value) {
583
584 ensureXIntervalsIsMutable();
585 xIntervals_.addInt(value);
586 bitField0_ |= 0x00000001;
587 onChanged();
588 return this;
589 }
596 java.lang.Iterable<? extends java.lang.Integer> values) {
597 ensureXIntervalsIsMutable();
598 com.google.protobuf.AbstractMessageLite.Builder.addAll(
599 values, xIntervals_);
600 bitField0_ |= 0x00000001;
601 onChanged();
602 return this;
603 }
609 xIntervals_ = emptyIntList();
610 bitField0_ = (bitField0_ & ~0x00000001);
611 onChanged();
612 return this;
613 }
614
615 private com.google.protobuf.Internal.IntList yIntervals_ = emptyIntList();
616 private void ensureYIntervalsIsMutable() {
617 if (!yIntervals_.isModifiable()) {
618 yIntervals_ = makeMutableCopy(yIntervals_);
619 }
620 bitField0_ |= 0x00000002;
621 }
630 public java.util.List<java.lang.Integer>
632 yIntervals_.makeImmutable();
633 return yIntervals_;
634 }
643 public int getYIntervalsCount() {
644 return yIntervals_.size();
645 }
655 public int getYIntervals(int index) {
656 return yIntervals_.getInt(index);
657 }
669 int index, int value) {
670
671 ensureYIntervalsIsMutable();
672 yIntervals_.setInt(index, value);
673 bitField0_ |= 0x00000002;
674 onChanged();
675 return this;
676 }
686 public Builder addYIntervals(int value) {
687
688 ensureYIntervalsIsMutable();
689 yIntervals_.addInt(value);
690 bitField0_ |= 0x00000002;
691 onChanged();
692 return this;
693 }
704 java.lang.Iterable<? extends java.lang.Integer> values) {
705 ensureYIntervalsIsMutable();
706 com.google.protobuf.AbstractMessageLite.Builder.addAll(
707 values, yIntervals_);
708 bitField0_ |= 0x00000002;
709 onChanged();
710 return this;
711 }
721 yIntervals_ = emptyIntList();
722 bitField0_ = (bitField0_ & ~0x00000002);
723 onChanged();
724 return this;
725 }
726
727 // @@protoc_insertion_point(builder_scope:operations_research.sat.NoOverlap2DConstraintProto)
728 }
729
730 // @@protoc_insertion_point(class_scope:operations_research.sat.NoOverlap2DConstraintProto)
731 private static final com.google.ortools.sat.NoOverlap2DConstraintProto DEFAULT_INSTANCE;
732 static {
733 DEFAULT_INSTANCE = new com.google.ortools.sat.NoOverlap2DConstraintProto();
734 }
735
737 return DEFAULT_INSTANCE;
738 }
739
740 private static final com.google.protobuf.Parser<NoOverlap2DConstraintProto>
741 PARSER = new com.google.protobuf.AbstractParser<NoOverlap2DConstraintProto>() {
742 @java.lang.Override
743 public NoOverlap2DConstraintProto parsePartialFrom(
744 com.google.protobuf.CodedInputStream input,
745 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
746 throws com.google.protobuf.InvalidProtocolBufferException {
747 Builder builder = newBuilder();
748 try {
749 builder.mergeFrom(input, extensionRegistry);
750 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
751 throw e.setUnfinishedMessage(builder.buildPartial());
752 } catch (com.google.protobuf.UninitializedMessageException e) {
753 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
754 } catch (java.io.IOException e) {
755 throw new com.google.protobuf.InvalidProtocolBufferException(e)
756 .setUnfinishedMessage(builder.buildPartial());
757 }
758 return builder.buildPartial();
759 }
760 };
761
762 public static com.google.protobuf.Parser<NoOverlap2DConstraintProto> parser() {
763 return PARSER;
764 }
765
766 @java.lang.Override
767 public com.google.protobuf.Parser<NoOverlap2DConstraintProto> getParserForType() {
768 return PARSER;
769 }
770
771 @java.lang.Override
775
776}
777
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder addAllYIntervals(java.lang.Iterable<? extends java.lang.Integer > values)
Builder mergeFrom(com.google.ortools.sat.NoOverlap2DConstraintProto other)
Builder addAllXIntervals(java.lang.Iterable<? extends java.lang.Integer > values)
com.google.ortools.sat.NoOverlap2DConstraintProto buildPartial()
com.google.ortools.sat.NoOverlap2DConstraintProto build()
com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstanceForType()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(byte[] data)
com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstanceForType()
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< NoOverlap2DConstraintProto > parser()
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(com.google.protobuf.ByteString data)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< NoOverlap2DConstraintProto > getParserForType()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(java.io.InputStream input)
static Builder newBuilder(com.google.ortools.sat.NoOverlap2DConstraintProto prototype)
static com.google.ortools.sat.NoOverlap2DConstraintProto getDefaultInstance()
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.sat.NoOverlap2DConstraintProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)