6package com.google.ortools.sat;
16@com.google.protobuf.Generated
17public final class RoutesSupportGraphProto
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 RoutesSupportGraphProto.class.getName());
32 private RoutesSupportGraphProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private RoutesSupportGraphProto() {
36 arcLpValues_ = java.util.Collections.emptyList();
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_RoutesSupportGraphProto_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_RoutesSupportGraphProto_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.sat.RoutesSupportGraphProto.class, com.google.ortools.sat.RoutesSupportGraphProto.Builder.class);
53 @SuppressWarnings(
"serial")
66 public java.util.List<? extends com.google.ortools.sat.ArcLpValueOrBuilder>
75 return arcLpValues_.size();
82 return arcLpValues_.get(index);
90 return arcLpValues_.get(index);
93 private byte memoizedIsInitialized = -1;
100 memoizedIsInitialized = 1;
105 public void writeTo(com.google.protobuf.CodedOutputStream output)
106 throws java.io.IOException {
107 for (
int i = 0; i < arcLpValues_.size(); i++) {
108 output.writeMessage(1, arcLpValues_.get(i));
110 getUnknownFields().writeTo(output);
115 int size = memoizedSize;
116 if (size != -1)
return size;
119 for (
int i = 0; i < arcLpValues_.size(); i++) {
120 size += com.google.protobuf.CodedOutputStream
121 .computeMessageSize(1, arcLpValues_.get(i));
123 size += getUnknownFields().getSerializedSize();
129 public boolean equals(
final java.lang.Object obj) {
133 if (!(obj instanceof com.google.ortools.sat.RoutesSupportGraphProto)) {
134 return super.equals(obj);
140 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
146 if (memoizedHashCode != 0) {
147 return memoizedHashCode;
155 hash = (29 * hash) + getUnknownFields().hashCode();
156 memoizedHashCode = hash;
161 java.nio.ByteBuffer data)
162 throws com.google.protobuf.InvalidProtocolBufferException {
163 return PARSER.parseFrom(data);
166 java.nio.ByteBuffer data,
167 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
168 throws com.google.protobuf.InvalidProtocolBufferException {
169 return PARSER.parseFrom(data, extensionRegistry);
172 com.google.protobuf.ByteString data)
173 throws com.google.protobuf.InvalidProtocolBufferException {
174 return PARSER.parseFrom(data);
177 com.google.protobuf.ByteString data,
178 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
179 throws com.google.protobuf.InvalidProtocolBufferException {
180 return PARSER.parseFrom(data, extensionRegistry);
183 throws com.google.protobuf.InvalidProtocolBufferException {
184 return PARSER.parseFrom(data);
188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
189 throws com.google.protobuf.InvalidProtocolBufferException {
190 return PARSER.parseFrom(data, extensionRegistry);
193 throws java.io.IOException {
194 return com.google.protobuf.GeneratedMessage
195 .parseWithIOException(PARSER, input);
198 java.io.InputStream input,
199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
200 throws java.io.IOException {
201 return com.google.protobuf.GeneratedMessage
202 .parseWithIOException(PARSER, input, extensionRegistry);
206 throws java.io.IOException {
207 return com.google.protobuf.GeneratedMessage
208 .parseDelimitedWithIOException(PARSER, input);
212 java.io.InputStream input,
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws java.io.IOException {
215 return com.google.protobuf.GeneratedMessage
216 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
219 com.google.protobuf.CodedInputStream input)
220 throws java.io.IOException {
221 return com.google.protobuf.GeneratedMessage
222 .parseWithIOException(PARSER, input);
225 com.google.protobuf.CodedInputStream input,
226 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227 throws java.io.IOException {
228 return com.google.protobuf.GeneratedMessage
229 .parseWithIOException(PARSER, input, extensionRegistry);
235 return DEFAULT_INSTANCE.toBuilder();
238 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
242 return this == DEFAULT_INSTANCE
248 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
260 public static final class Builder
extends
261 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
264 public static final com.google.protobuf.Descriptors.Descriptor
266 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_RoutesSupportGraphProto_descriptor;
270 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
272 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_RoutesSupportGraphProto_fieldAccessorTable
273 .ensureFieldAccessorsInitialized(
274 com.google.ortools.sat.RoutesSupportGraphProto.class, com.google.ortools.sat.RoutesSupportGraphProto.Builder.class);
283 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
291 if (arcLpValuesBuilder_ ==
null) {
292 arcLpValues_ = java.util.Collections.emptyList();
295 arcLpValuesBuilder_.clear();
297 bitField0_ = (bitField0_ & ~0x00000001);
302 public com.google.protobuf.Descriptors.Descriptor
304 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_RoutesSupportGraphProto_descriptor;
309 return com.google.ortools.sat.RoutesSupportGraphProto.getDefaultInstance();
316 throw newUninitializedMessageException(result);
324 buildPartialRepeatedFields(result);
325 if (bitField0_ != 0) { buildPartial0(result); }
330 private void buildPartialRepeatedFields(com.google.ortools.sat.RoutesSupportGraphProto result) {
331 if (arcLpValuesBuilder_ ==
null) {
332 if (((bitField0_ & 0x00000001) != 0)) {
333 arcLpValues_ = java.util.Collections.unmodifiableList(arcLpValues_);
334 bitField0_ = (bitField0_ & ~0x00000001);
336 result.arcLpValues_ = arcLpValues_;
338 result.arcLpValues_ = arcLpValuesBuilder_.build();
342 private void buildPartial0(com.google.ortools.sat.RoutesSupportGraphProto result) {
343 int from_bitField0_ = bitField0_;
347 public Builder
mergeFrom(com.google.protobuf.Message other) {
348 if (other instanceof com.google.ortools.sat.RoutesSupportGraphProto) {
349 return mergeFrom((com.google.ortools.sat.RoutesSupportGraphProto)other);
351 super.mergeFrom(other);
356 public Builder
mergeFrom(com.google.ortools.sat.RoutesSupportGraphProto other) {
357 if (other == com.google.ortools.sat.RoutesSupportGraphProto.getDefaultInstance())
return this;
358 if (arcLpValuesBuilder_ ==
null) {
359 if (!other.arcLpValues_.isEmpty()) {
360 if (arcLpValues_.isEmpty()) {
361 arcLpValues_ = other.arcLpValues_;
362 bitField0_ = (bitField0_ & ~0x00000001);
364 ensureArcLpValuesIsMutable();
365 arcLpValues_.addAll(other.arcLpValues_);
370 if (!other.arcLpValues_.isEmpty()) {
371 if (arcLpValuesBuilder_.isEmpty()) {
372 arcLpValuesBuilder_.dispose();
373 arcLpValuesBuilder_ =
null;
374 arcLpValues_ = other.arcLpValues_;
375 bitField0_ = (bitField0_ & ~0x00000001);
376 arcLpValuesBuilder_ =
377 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
378 internalGetArcLpValuesFieldBuilder() :
null;
380 arcLpValuesBuilder_.addAllMessages(other.arcLpValues_);
384 this.mergeUnknownFields(other.getUnknownFields());
396 com.google.protobuf.CodedInputStream input,
397 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
398 throws java.io.IOException {
399 if (extensionRegistry ==
null) {
400 throw new java.lang.NullPointerException();
403 boolean done =
false;
405 int tag = input.readTag();
413 com.google.ortools.sat.ArcLpValue.parser(),
415 if (arcLpValuesBuilder_ ==
null) {
416 ensureArcLpValuesIsMutable();
419 arcLpValuesBuilder_.addMessage(m);
424 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
431 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
432 throw e.unwrapIOException();
438 private int bitField0_;
440 private java.util.List<com.google.ortools.sat.ArcLpValue> arcLpValues_ =
441 java.util.Collections.emptyList();
442 private void ensureArcLpValuesIsMutable() {
443 if (!((bitField0_ & 0x00000001) != 0)) {
444 arcLpValues_ =
new java.util.ArrayList<com.google.ortools.sat.ArcLpValue>(arcLpValues_);
445 bitField0_ |= 0x00000001;
449 private com.google.protobuf.RepeatedFieldBuilder<
450 com.google.ortools.sat.ArcLpValue, com.google.ortools.sat.ArcLpValue.Builder, com.google.ortools.sat.ArcLpValueOrBuilder> arcLpValuesBuilder_;
456 if (arcLpValuesBuilder_ ==
null) {
457 return java.util.Collections.unmodifiableList(arcLpValues_);
459 return arcLpValuesBuilder_.getMessageList();
466 if (arcLpValuesBuilder_ ==
null) {
467 return arcLpValues_.size();
469 return arcLpValuesBuilder_.getCount();
476 if (arcLpValuesBuilder_ ==
null) {
477 return arcLpValues_.get(index);
479 return arcLpValuesBuilder_.getMessage(index);
486 int index, com.google.ortools.sat.ArcLpValue value) {
487 if (arcLpValuesBuilder_ ==
null) {
489 throw new NullPointerException();
491 ensureArcLpValuesIsMutable();
492 arcLpValues_.set(index, value);
495 arcLpValuesBuilder_.setMessage(index, value);
503 int index, com.google.ortools.sat.ArcLpValue.Builder builderForValue) {
504 if (arcLpValuesBuilder_ ==
null) {
505 ensureArcLpValuesIsMutable();
506 arcLpValues_.set(index, builderForValue.build());
509 arcLpValuesBuilder_.setMessage(index, builderForValue.build());
517 if (arcLpValuesBuilder_ ==
null) {
519 throw new NullPointerException();
521 ensureArcLpValuesIsMutable();
522 arcLpValues_.add(value);
525 arcLpValuesBuilder_.addMessage(value);
533 int index, com.google.ortools.sat.ArcLpValue value) {
534 if (arcLpValuesBuilder_ ==
null) {
536 throw new NullPointerException();
538 ensureArcLpValuesIsMutable();
539 arcLpValues_.add(index, value);
542 arcLpValuesBuilder_.addMessage(index, value);
550 com.google.ortools.sat.ArcLpValue.Builder builderForValue) {
551 if (arcLpValuesBuilder_ ==
null) {
552 ensureArcLpValuesIsMutable();
553 arcLpValues_.add(builderForValue.build());
556 arcLpValuesBuilder_.addMessage(builderForValue.build());
564 int index, com.google.ortools.sat.ArcLpValue.Builder builderForValue) {
565 if (arcLpValuesBuilder_ ==
null) {
566 ensureArcLpValuesIsMutable();
567 arcLpValues_.add(index, builderForValue.build());
570 arcLpValuesBuilder_.addMessage(index, builderForValue.build());
578 java.lang.Iterable<? extends com.google.ortools.sat.ArcLpValue> values) {
579 if (arcLpValuesBuilder_ ==
null) {
580 ensureArcLpValuesIsMutable();
581 com.google.protobuf.AbstractMessageLite.Builder.addAll(
582 values, arcLpValues_);
585 arcLpValuesBuilder_.addAllMessages(values);
593 if (arcLpValuesBuilder_ ==
null) {
594 arcLpValues_ = java.util.Collections.emptyList();
595 bitField0_ = (bitField0_ & ~0x00000001);
598 arcLpValuesBuilder_.clear();
606 if (arcLpValuesBuilder_ ==
null) {
607 ensureArcLpValuesIsMutable();
608 arcLpValues_.remove(index);
611 arcLpValuesBuilder_.remove(index);
620 return internalGetArcLpValuesFieldBuilder().getBuilder(index);
627 if (arcLpValuesBuilder_ ==
null) {
628 return arcLpValues_.get(index); }
else {
629 return arcLpValuesBuilder_.getMessageOrBuilder(index);
635 public java.util.List<? extends com.google.ortools.sat.ArcLpValueOrBuilder>
637 if (arcLpValuesBuilder_ !=
null) {
638 return arcLpValuesBuilder_.getMessageOrBuilderList();
640 return java.util.Collections.unmodifiableList(arcLpValues_);
647 return internalGetArcLpValuesFieldBuilder().addBuilder(
648 com.google.ortools.sat.ArcLpValue.getDefaultInstance());
655 return internalGetArcLpValuesFieldBuilder().addBuilder(
656 index, com.google.ortools.sat.ArcLpValue.getDefaultInstance());
661 public java.util.List<com.google.ortools.sat.ArcLpValue.Builder>
663 return internalGetArcLpValuesFieldBuilder().getBuilderList();
665 private com.google.protobuf.RepeatedFieldBuilder<
666 com.google.ortools.sat.ArcLpValue, com.google.ortools.sat.ArcLpValue.Builder, com.google.ortools.sat.ArcLpValueOrBuilder>
667 internalGetArcLpValuesFieldBuilder() {
668 if (arcLpValuesBuilder_ ==
null) {
669 arcLpValuesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
670 com.google.ortools.sat.ArcLpValue, com.google.ortools.sat.ArcLpValue.Builder, com.google.ortools.sat.ArcLpValueOrBuilder>(
672 ((bitField0_ & 0x00000001) != 0),
673 getParentForChildren(),
677 return arcLpValuesBuilder_;
686 DEFAULT_INSTANCE =
new com.google.ortools.sat.RoutesSupportGraphProto();
690 return DEFAULT_INSTANCE;
697 com.google.protobuf.CodedInputStream input,
698 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
699 throws com.google.protobuf.InvalidProtocolBufferException {
702 builder.mergeFrom(input, extensionRegistry);
703 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
704 throw e.setUnfinishedMessage(builder.buildPartial());
705 }
catch (com.google.protobuf.UninitializedMessageException e) {
706 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
707 }
catch (java.io.IOException e) {
708 throw new com.google.protobuf.InvalidProtocolBufferException(e)
709 .setUnfinishedMessage(builder.buildPartial());
711 return builder.buildPartial();
715 public static com.google.protobuf.Parser<RoutesSupportGraphProto>
parser() {
726 return DEFAULT_INSTANCE;