5package com.google.ortools.util;
16 com.google.protobuf.GeneratedMessageV3 implements
19private static final long serialVersionUID = 0L;
21 private Int128(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
28 @SuppressWarnings({
"unused"})
30 UnusedPrivateParameter unused) {
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
40 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
42 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
43 .ensureFieldAccessorsInitialized(
44 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
48 private long high_ = 0L;
59 private long low_ = 0L;
69 private byte memoizedIsInitialized = -1;
76 memoizedIsInitialized = 1;
81 public void writeTo(com.google.protobuf.CodedOutputStream output)
82 throws java.io.IOException {
84 output.writeInt64(1, high_);
87 output.writeUInt64(2, low_);
89 getUnknownFields().writeTo(output);
94 int size = memoizedSize;
95 if (size != -1)
return size;
99 size += com.google.protobuf.CodedOutputStream
100 .computeInt64Size(1, high_);
103 size += com.google.protobuf.CodedOutputStream
104 .computeUInt64Size(2, low_);
106 size += getUnknownFields().getSerializedSize();
112 public boolean equals(
final java.lang.Object obj) {
116 if (!(obj instanceof com.google.ortools.util.Int128)) {
117 return super.equals(obj);
122 != other.
getHigh())
return false;
124 != other.
getLow())
return false;
125 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
131 if (memoizedHashCode != 0) {
132 return memoizedHashCode;
137 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
140 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
142 hash = (29 * hash) + getUnknownFields().hashCode();
143 memoizedHashCode = hash;
148 java.nio.ByteBuffer data)
149 throws com.google.protobuf.InvalidProtocolBufferException {
150 return PARSER.parseFrom(data);
153 java.nio.ByteBuffer data,
154 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
155 throws com.google.protobuf.InvalidProtocolBufferException {
156 return PARSER.parseFrom(data, extensionRegistry);
159 com.google.protobuf.ByteString data)
160 throws com.google.protobuf.InvalidProtocolBufferException {
161 return PARSER.parseFrom(data);
164 com.google.protobuf.ByteString data,
165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
166 throws com.google.protobuf.InvalidProtocolBufferException {
167 return PARSER.parseFrom(data, extensionRegistry);
170 throws com.google.protobuf.InvalidProtocolBufferException {
171 return PARSER.parseFrom(data);
175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
176 throws com.google.protobuf.InvalidProtocolBufferException {
177 return PARSER.parseFrom(data, extensionRegistry);
180 throws java.io.IOException {
181 return com.google.protobuf.GeneratedMessageV3
182 .parseWithIOException(PARSER, input);
185 java.io.InputStream input,
186 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
187 throws java.io.IOException {
188 return com.google.protobuf.GeneratedMessageV3
189 .parseWithIOException(PARSER, input, extensionRegistry);
193 throws java.io.IOException {
194 return com.google.protobuf.GeneratedMessageV3
195 .parseDelimitedWithIOException(PARSER, input);
199 java.io.InputStream input,
200 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
201 throws java.io.IOException {
202 return com.google.protobuf.GeneratedMessageV3
203 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
206 com.google.protobuf.CodedInputStream input)
207 throws java.io.IOException {
208 return com.google.protobuf.GeneratedMessageV3
209 .parseWithIOException(PARSER, input);
212 com.google.protobuf.CodedInputStream input,
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws java.io.IOException {
215 return com.google.protobuf.GeneratedMessageV3
216 .parseWithIOException(PARSER, input, extensionRegistry);
229 return this == DEFAULT_INSTANCE
235 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
248 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
251 public static final com.google.protobuf.Descriptors.Descriptor
253 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
257 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
259 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
260 .ensureFieldAccessorsInitialized(
261 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
270 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
284 public com.google.protobuf.Descriptors.Descriptor
286 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
291 return com.google.ortools.util.Int128.getDefaultInstance();
298 throw newUninitializedMessageException(result);
306 if (bitField0_ != 0) { buildPartial0(result); }
311 private void buildPartial0(com.google.ortools.util.Int128 result) {
312 int from_bitField0_ = bitField0_;
313 if (((from_bitField0_ & 0x00000001) != 0)) {
314 result.high_ = high_;
316 if (((from_bitField0_ & 0x00000002) != 0)) {
323 return super.
clone();
327 com.google.protobuf.Descriptors.FieldDescriptor field,
328 java.lang.Object value) {
329 return super.
setField(field, value);
333 com.google.protobuf.Descriptors.FieldDescriptor field) {
338 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
343 com.google.protobuf.Descriptors.FieldDescriptor field,
344 int index, java.lang.Object value) {
349 com.google.protobuf.Descriptors.FieldDescriptor field,
350 java.lang.Object value) {
355 if (other instanceof com.google.ortools.util.Int128) {
356 return mergeFrom((com.google.ortools.util.Int128)other);
358 super.mergeFrom(other);
364 if (other == com.google.ortools.util.Int128.getDefaultInstance())
return this;
365 if (other.getHigh() != 0L) {
368 if (other.getLow() != 0L) {
383 com.google.protobuf.CodedInputStream input,
384 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
385 throws java.io.IOException {
386 if (extensionRegistry ==
null) {
387 throw new java.lang.NullPointerException();
390 boolean done =
false;
392 int tag = input.readTag();
398 high_ = input.readInt64();
399 bitField0_ |= 0x00000001;
403 low_ = input.readUInt64();
404 bitField0_ |= 0x00000002;
408 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
415 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
416 throw e.unwrapIOException();
422 private int bitField0_;
441 bitField0_ |= 0x00000001;
450 bitField0_ = (bitField0_ & ~0x00000001);
473 bitField0_ |= 0x00000002;
482 bitField0_ = (bitField0_ & ~0x00000002);
489 final com.google.protobuf.UnknownFieldSet unknownFields) {
495 final com.google.protobuf.UnknownFieldSet unknownFields) {
506 DEFAULT_INSTANCE =
new com.google.ortools.util.Int128();
510 return DEFAULT_INSTANCE;
513 private static final com.google.protobuf.Parser<
Int128>
514 PARSER =
new com.google.protobuf.AbstractParser<
Int128>() {
516 public Int128 parsePartialFrom(
517 com.google.protobuf.CodedInputStream input,
518 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
519 throws com.google.protobuf.InvalidProtocolBufferException {
522 builder.mergeFrom(input, extensionRegistry);
523 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
524 throw e.setUnfinishedMessage(builder.buildPartial());
525 }
catch (com.google.protobuf.UninitializedMessageException e) {
526 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
527 }
catch (java.io.IOException e) {
528 throw new com.google.protobuf.InvalidProtocolBufferException(e)
529 .setUnfinishedMessage(builder.buildPartial());
531 return builder.buildPartial();
546 return DEFAULT_INSTANCE;