6package com.google.ortools.sat;
15@com.google.protobuf.Generated
16public final class ArcLpValue
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 ArcLpValue.class.getName());
31 private ArcLpValue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private ArcLpValue() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_ArcLpValue_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_ArcLpValue_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.sat.ArcLpValue.class, com.google.ortools.sat.ArcLpValue.Builder.class);
50 private int bitField0_;
52 private int tail_ = 0;
59 return ((bitField0_ & 0x00000001) != 0);
71 private int head_ = 0;
78 return ((bitField0_ & 0x00000002) != 0);
90 private double lpValue_ = 0D;
97 return ((bitField0_ & 0x00000004) != 0);
108 private byte memoizedIsInitialized = -1;
115 memoizedIsInitialized = 1;
120 public void writeTo(com.google.protobuf.CodedOutputStream output)
121 throws java.io.IOException {
122 if (((bitField0_ & 0x00000001) != 0)) {
123 output.writeInt32(1, tail_);
125 if (((bitField0_ & 0x00000002) != 0)) {
126 output.writeInt32(2, head_);
128 if (((bitField0_ & 0x00000004) != 0)) {
129 output.writeDouble(3, lpValue_);
131 getUnknownFields().writeTo(output);
136 int size = memoizedSize;
137 if (size != -1)
return size;
140 if (((bitField0_ & 0x00000001) != 0)) {
141 size += com.google.protobuf.CodedOutputStream
142 .computeInt32Size(1, tail_);
144 if (((bitField0_ & 0x00000002) != 0)) {
145 size += com.google.protobuf.CodedOutputStream
146 .computeInt32Size(2, head_);
148 if (((bitField0_ & 0x00000004) != 0)) {
149 size += com.google.protobuf.CodedOutputStream
150 .computeDoubleSize(3, lpValue_);
152 size += getUnknownFields().getSerializedSize();
158 public boolean equals(
final java.lang.Object obj) {
162 if (!(obj instanceof com.google.ortools.sat.ArcLpValue)) {
163 return super.equals(obj);
170 != other.
getTail())
return false;
175 != other.
getHead())
return false;
179 if (java.lang.Double.doubleToLongBits(
getLpValue())
180 != java.lang.Double.doubleToLongBits(
183 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
189 if (memoizedHashCode != 0) {
190 return memoizedHashCode;
196 hash = (53 * hash) +
getTail();
200 hash = (53 * hash) +
getHead();
204 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
205 java.lang.Double.doubleToLongBits(
getLpValue()));
207 hash = (29 * hash) + getUnknownFields().hashCode();
208 memoizedHashCode = hash;
213 java.nio.ByteBuffer data)
214 throws com.google.protobuf.InvalidProtocolBufferException {
215 return PARSER.parseFrom(data);
218 java.nio.ByteBuffer data,
219 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
220 throws com.google.protobuf.InvalidProtocolBufferException {
221 return PARSER.parseFrom(data, extensionRegistry);
224 com.google.protobuf.ByteString data)
225 throws com.google.protobuf.InvalidProtocolBufferException {
226 return PARSER.parseFrom(data);
229 com.google.protobuf.ByteString data,
230 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
231 throws com.google.protobuf.InvalidProtocolBufferException {
232 return PARSER.parseFrom(data, extensionRegistry);
235 throws com.google.protobuf.InvalidProtocolBufferException {
236 return PARSER.parseFrom(data);
240 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
241 throws com.google.protobuf.InvalidProtocolBufferException {
242 return PARSER.parseFrom(data, extensionRegistry);
245 throws java.io.IOException {
246 return com.google.protobuf.GeneratedMessage
247 .parseWithIOException(PARSER, input);
250 java.io.InputStream input,
251 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
252 throws java.io.IOException {
253 return com.google.protobuf.GeneratedMessage
254 .parseWithIOException(PARSER, input, extensionRegistry);
258 throws java.io.IOException {
259 return com.google.protobuf.GeneratedMessage
260 .parseDelimitedWithIOException(PARSER, input);
264 java.io.InputStream input,
265 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
266 throws java.io.IOException {
267 return com.google.protobuf.GeneratedMessage
268 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
271 com.google.protobuf.CodedInputStream input)
272 throws java.io.IOException {
273 return com.google.protobuf.GeneratedMessage
274 .parseWithIOException(PARSER, input);
277 com.google.protobuf.CodedInputStream input,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws java.io.IOException {
280 return com.google.protobuf.GeneratedMessage
281 .parseWithIOException(PARSER, input, extensionRegistry);
287 return DEFAULT_INSTANCE.toBuilder();
290 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
294 return this == DEFAULT_INSTANCE
300 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
311 public static final class Builder
extends
312 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
315 public static final com.google.protobuf.Descriptors.Descriptor
317 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_ArcLpValue_descriptor;
321 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
323 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_ArcLpValue_fieldAccessorTable
324 .ensureFieldAccessorsInitialized(
325 com.google.ortools.sat.ArcLpValue.class, com.google.ortools.sat.ArcLpValue.Builder.class);
334 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
349 public com.google.protobuf.Descriptors.Descriptor
351 return com.google.ortools.sat.RoutesSupportGraph.internal_static_operations_research_sat_ArcLpValue_descriptor;
356 return com.google.ortools.sat.ArcLpValue.getDefaultInstance();
363 throw newUninitializedMessageException(result);
371 if (bitField0_ != 0) { buildPartial0(result); }
376 private void buildPartial0(com.google.ortools.sat.ArcLpValue result) {
377 int from_bitField0_ = bitField0_;
378 int to_bitField0_ = 0;
379 if (((from_bitField0_ & 0x00000001) != 0)) {
380 result.tail_ = tail_;
381 to_bitField0_ |= 0x00000001;
383 if (((from_bitField0_ & 0x00000002) != 0)) {
384 result.head_ = head_;
385 to_bitField0_ |= 0x00000002;
387 if (((from_bitField0_ & 0x00000004) != 0)) {
388 result.lpValue_ = lpValue_;
389 to_bitField0_ |= 0x00000004;
391 result.bitField0_ |= to_bitField0_;
395 public Builder
mergeFrom(com.google.protobuf.Message other) {
396 if (other instanceof com.google.ortools.sat.ArcLpValue) {
397 return mergeFrom((com.google.ortools.sat.ArcLpValue)other);
399 super.mergeFrom(other);
404 public Builder
mergeFrom(com.google.ortools.sat.ArcLpValue other) {
405 if (other == com.google.ortools.sat.ArcLpValue.getDefaultInstance())
return this;
406 if (other.hasTail()) {
409 if (other.hasHead()) {
412 if (other.hasLpValue()) {
415 this.mergeUnknownFields(other.getUnknownFields());
427 com.google.protobuf.CodedInputStream input,
428 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
429 throws java.io.IOException {
430 if (extensionRegistry ==
null) {
431 throw new java.lang.NullPointerException();
434 boolean done =
false;
436 int tag = input.readTag();
442 tail_ = input.readInt32();
443 bitField0_ |= 0x00000001;
447 head_ = input.readInt32();
448 bitField0_ |= 0x00000002;
452 lpValue_ = input.readDouble();
453 bitField0_ |= 0x00000004;
457 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
464 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
465 throw e.unwrapIOException();
471 private int bitField0_;
480 return ((bitField0_ & 0x00000001) != 0);
498 bitField0_ |= 0x00000001;
507 bitField0_ = (bitField0_ & ~0x00000001);
520 return ((bitField0_ & 0x00000002) != 0);
538 bitField0_ |= 0x00000002;
547 bitField0_ = (bitField0_ & ~0x00000002);
553 private double lpValue_ ;
560 return ((bitField0_ & 0x00000004) != 0);
578 bitField0_ |= 0x00000004;
587 bitField0_ = (bitField0_ & ~0x00000004);
599 DEFAULT_INSTANCE =
new com.google.ortools.sat.ArcLpValue();
603 return DEFAULT_INSTANCE;
606 private static final com.google.protobuf.Parser<
ArcLpValue>
607 PARSER =
new com.google.protobuf.AbstractParser<
ArcLpValue>() {
610 com.google.protobuf.CodedInputStream input,
611 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
612 throws com.google.protobuf.InvalidProtocolBufferException {
615 builder.mergeFrom(input, extensionRegistry);
616 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
617 throw e.setUnfinishedMessage(builder.buildPartial());
618 }
catch (com.google.protobuf.UninitializedMessageException e) {
619 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
620 }
catch (java.io.IOException e) {
621 throw new com.google.protobuf.InvalidProtocolBufferException(e)
622 .setUnfinishedMessage(builder.buildPartial());
624 return builder.buildPartial();
628 public static com.google.protobuf.Parser<ArcLpValue>
parser() {
639 return DEFAULT_INSTANCE;