6package com.google.ortools.util;
16public final class Int128
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 Int128.class.getName());
31 private Int128(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
51 private long high_ = 0L;
62 private long low_ = 0L;
72 private byte memoizedIsInitialized = -1;
79 memoizedIsInitialized = 1;
84 public void writeTo(com.google.protobuf.CodedOutputStream output)
85 throws java.io.IOException {
87 output.writeInt64(1, high_);
90 output.writeUInt64(2, low_);
92 getUnknownFields().writeTo(output);
97 int size = memoizedSize;
98 if (size != -1)
return size;
102 size += com.google.protobuf.CodedOutputStream
103 .computeInt64Size(1, high_);
106 size += com.google.protobuf.CodedOutputStream
107 .computeUInt64Size(2, low_);
109 size += getUnknownFields().getSerializedSize();
115 public boolean equals(
final java.lang.Object obj) {
119 if (!(obj instanceof com.google.ortools.util.Int128)) {
120 return super.equals(obj);
125 != other.
getHigh())
return false;
127 != other.
getLow())
return false;
128 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
134 if (memoizedHashCode != 0) {
135 return memoizedHashCode;
140 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
143 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
145 hash = (29 * hash) + getUnknownFields().hashCode();
146 memoizedHashCode = hash;
151 java.nio.ByteBuffer data)
152 throws com.google.protobuf.InvalidProtocolBufferException {
153 return PARSER.parseFrom(data);
156 java.nio.ByteBuffer data,
157 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
158 throws com.google.protobuf.InvalidProtocolBufferException {
159 return PARSER.parseFrom(data, extensionRegistry);
162 com.google.protobuf.ByteString data)
163 throws com.google.protobuf.InvalidProtocolBufferException {
164 return PARSER.parseFrom(data);
167 com.google.protobuf.ByteString data,
168 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
169 throws com.google.protobuf.InvalidProtocolBufferException {
170 return PARSER.parseFrom(data, extensionRegistry);
173 throws com.google.protobuf.InvalidProtocolBufferException {
174 return PARSER.parseFrom(data);
178 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
179 throws com.google.protobuf.InvalidProtocolBufferException {
180 return PARSER.parseFrom(data, extensionRegistry);
183 throws java.io.IOException {
184 return com.google.protobuf.GeneratedMessage
185 .parseWithIOException(PARSER, input);
188 java.io.InputStream input,
189 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
190 throws java.io.IOException {
191 return com.google.protobuf.GeneratedMessage
192 .parseWithIOException(PARSER, input, extensionRegistry);
196 throws java.io.IOException {
197 return com.google.protobuf.GeneratedMessage
198 .parseDelimitedWithIOException(PARSER, input);
202 java.io.InputStream input,
203 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
204 throws java.io.IOException {
205 return com.google.protobuf.GeneratedMessage
206 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
209 com.google.protobuf.CodedInputStream input)
210 throws java.io.IOException {
211 return com.google.protobuf.GeneratedMessage
212 .parseWithIOException(PARSER, input);
215 com.google.protobuf.CodedInputStream input,
216 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
217 throws java.io.IOException {
218 return com.google.protobuf.GeneratedMessage
219 .parseWithIOException(PARSER, input, extensionRegistry);
225 return DEFAULT_INSTANCE.toBuilder();
228 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
232 return this == DEFAULT_INSTANCE
238 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
250 public static final class Builder
extends
251 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
254 public static final com.google.protobuf.Descriptors.Descriptor
256 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
260 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
262 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
263 .ensureFieldAccessorsInitialized(
264 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
273 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
287 public com.google.protobuf.Descriptors.Descriptor
289 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
294 return com.google.ortools.util.Int128.getDefaultInstance();
301 throw newUninitializedMessageException(result);
309 if (bitField0_ != 0) { buildPartial0(result); }
314 private void buildPartial0(com.google.ortools.util.Int128 result) {
315 int from_bitField0_ = bitField0_;
316 if (((from_bitField0_ & 0x00000001) != 0)) {
317 result.high_ = high_;
319 if (((from_bitField0_ & 0x00000002) != 0)) {
325 public Builder
mergeFrom(com.google.protobuf.Message other) {
326 if (other instanceof com.google.ortools.util.Int128) {
327 return mergeFrom((com.google.ortools.util.Int128)other);
329 super.mergeFrom(other);
334 public Builder
mergeFrom(com.google.ortools.util.Int128 other) {
335 if (other == com.google.ortools.util.Int128.getDefaultInstance())
return this;
336 if (other.getHigh() != 0L) {
339 if (other.getLow() != 0L) {
342 this.mergeUnknownFields(other.getUnknownFields());
354 com.google.protobuf.CodedInputStream input,
355 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
356 throws java.io.IOException {
357 if (extensionRegistry ==
null) {
358 throw new java.lang.NullPointerException();
361 boolean done =
false;
363 int tag = input.readTag();
369 high_ = input.readInt64();
370 bitField0_ |= 0x00000001;
374 low_ = input.readUInt64();
375 bitField0_ |= 0x00000002;
379 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
386 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
387 throw e.unwrapIOException();
393 private int bitField0_;
412 bitField0_ |= 0x00000001;
421 bitField0_ = (bitField0_ & ~0x00000001);
444 bitField0_ |= 0x00000002;
453 bitField0_ = (bitField0_ & ~0x00000002);
465 DEFAULT_INSTANCE =
new com.google.ortools.util.Int128();
469 return DEFAULT_INSTANCE;
472 private static final com.google.protobuf.Parser<
Int128>
473 PARSER =
new com.google.protobuf.AbstractParser<
Int128>() {
475 public Int128 parsePartialFrom(
476 com.google.protobuf.CodedInputStream input,
477 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
478 throws com.google.protobuf.InvalidProtocolBufferException {
481 builder.mergeFrom(input, extensionRegistry);
482 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
483 throw e.setUnfinishedMessage(builder.buildPartial());
484 }
catch (com.google.protobuf.UninitializedMessageException e) {
485 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
486 }
catch (java.io.IOException e) {
487 throw new com.google.protobuf.InvalidProtocolBufferException(e)
488 .setUnfinishedMessage(builder.buildPartial());
490 return builder.buildPartial();
494 public static com.google.protobuf.Parser<Int128>
parser() {
505 return DEFAULT_INSTANCE;