5package com.google.ortools.util;
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
30 private Int128(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
50 private long high_ = 0L;
61 private long low_ = 0L;
71 private byte memoizedIsInitialized = -1;
78 memoizedIsInitialized = 1;
83 public void writeTo(com.google.protobuf.CodedOutputStream output)
84 throws java.io.IOException {
86 output.writeInt64(1, high_);
89 output.writeUInt64(2, low_);
91 getUnknownFields().writeTo(output);
96 int size = memoizedSize;
97 if (size != -1)
return size;
101 size += com.google.protobuf.CodedOutputStream
102 .computeInt64Size(1, high_);
105 size += com.google.protobuf.CodedOutputStream
106 .computeUInt64Size(2, low_);
108 size += getUnknownFields().getSerializedSize();
114 public boolean equals(
final java.lang.Object obj) {
118 if (!(obj instanceof com.google.ortools.util.Int128)) {
119 return super.equals(obj);
124 != other.
getHigh())
return false;
126 != other.
getLow())
return false;
127 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
133 if (memoizedHashCode != 0) {
134 return memoizedHashCode;
139 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
142 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
144 hash = (29 * hash) + getUnknownFields().hashCode();
145 memoizedHashCode = hash;
150 java.nio.ByteBuffer data)
151 throws com.google.protobuf.InvalidProtocolBufferException {
152 return PARSER.parseFrom(data);
155 java.nio.ByteBuffer data,
156 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
157 throws com.google.protobuf.InvalidProtocolBufferException {
158 return PARSER.parseFrom(data, extensionRegistry);
161 com.google.protobuf.ByteString data)
162 throws com.google.protobuf.InvalidProtocolBufferException {
163 return PARSER.parseFrom(data);
166 com.google.protobuf.ByteString data,
167 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
168 throws com.google.protobuf.InvalidProtocolBufferException {
169 return PARSER.parseFrom(data, extensionRegistry);
172 throws com.google.protobuf.InvalidProtocolBufferException {
173 return PARSER.parseFrom(data);
177 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
178 throws com.google.protobuf.InvalidProtocolBufferException {
179 return PARSER.parseFrom(data, extensionRegistry);
182 throws java.io.IOException {
183 return com.google.protobuf.GeneratedMessage
184 .parseWithIOException(PARSER, input);
187 java.io.InputStream input,
188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
189 throws java.io.IOException {
190 return com.google.protobuf.GeneratedMessage
191 .parseWithIOException(PARSER, input, extensionRegistry);
195 throws java.io.IOException {
196 return com.google.protobuf.GeneratedMessage
197 .parseDelimitedWithIOException(PARSER, input);
201 java.io.InputStream input,
202 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
203 throws java.io.IOException {
204 return com.google.protobuf.GeneratedMessage
205 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
208 com.google.protobuf.CodedInputStream input)
209 throws java.io.IOException {
210 return com.google.protobuf.GeneratedMessage
211 .parseWithIOException(PARSER, input);
214 com.google.protobuf.CodedInputStream input,
215 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
216 throws java.io.IOException {
217 return com.google.protobuf.GeneratedMessage
218 .parseWithIOException(PARSER, input, extensionRegistry);
231 return this == DEFAULT_INSTANCE
237 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
250 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
253 public static final com.google.protobuf.Descriptors.Descriptor
255 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
259 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
261 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
262 .ensureFieldAccessorsInitialized(
263 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
272 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
286 public com.google.protobuf.Descriptors.Descriptor
288 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
293 return com.google.ortools.util.Int128.getDefaultInstance();
300 throw newUninitializedMessageException(result);
308 if (bitField0_ != 0) { buildPartial0(result); }
313 private void buildPartial0(com.google.ortools.util.Int128 result) {
314 int from_bitField0_ = bitField0_;
315 if (((from_bitField0_ & 0x00000001) != 0)) {
316 result.high_ = high_;
318 if (((from_bitField0_ & 0x00000002) != 0)) {
325 if (other instanceof com.google.ortools.util.Int128) {
326 return mergeFrom((com.google.ortools.util.Int128)other);
328 super.mergeFrom(other);
334 if (other == com.google.ortools.util.Int128.getDefaultInstance())
return this;
335 if (other.getHigh() != 0L) {
338 if (other.getLow() != 0L) {
341 this.mergeUnknownFields(other.getUnknownFields());
353 com.google.protobuf.CodedInputStream input,
354 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355 throws java.io.IOException {
356 if (extensionRegistry ==
null) {
357 throw new java.lang.NullPointerException();
360 boolean done =
false;
362 int tag = input.readTag();
368 high_ = input.readInt64();
369 bitField0_ |= 0x00000001;
373 low_ = input.readUInt64();
374 bitField0_ |= 0x00000002;
378 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
385 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
386 throw e.unwrapIOException();
392 private int bitField0_;
411 bitField0_ |= 0x00000001;
420 bitField0_ = (bitField0_ & ~0x00000001);
443 bitField0_ |= 0x00000002;
452 bitField0_ = (bitField0_ & ~0x00000002);
464 DEFAULT_INSTANCE =
new com.google.ortools.util.Int128();
468 return DEFAULT_INSTANCE;
471 private static final com.google.protobuf.Parser<
Int128>
472 PARSER =
new com.google.protobuf.AbstractParser<
Int128>() {
474 public Int128 parsePartialFrom(
475 com.google.protobuf.CodedInputStream input,
476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
477 throws com.google.protobuf.InvalidProtocolBufferException {
480 builder.mergeFrom(input, extensionRegistry);
481 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
482 throw e.setUnfinishedMessage(builder.buildPartial());
483 }
catch (com.google.protobuf.UninitializedMessageException e) {
484 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
485 }
catch (java.io.IOException e) {
486 throw new com.google.protobuf.InvalidProtocolBufferException(e)
487 .setUnfinishedMessage(builder.buildPartial());
489 return builder.buildPartial();
504 return DEFAULT_INSTANCE;