6package com.google.ortools.util;
16@com.google.protobuf.Generated
17public final class Int128
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 Int128.class.getName());
32 private Int128(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
52 private long high_ = 0L;
63 private long low_ = 0L;
73 private byte memoizedIsInitialized = -1;
80 memoizedIsInitialized = 1;
85 public void writeTo(com.google.protobuf.CodedOutputStream output)
86 throws java.io.IOException {
88 output.writeInt64(1, high_);
91 output.writeUInt64(2, low_);
93 getUnknownFields().writeTo(output);
98 int size = memoizedSize;
99 if (size != -1)
return size;
103 size += com.google.protobuf.CodedOutputStream
104 .computeInt64Size(1, high_);
107 size += com.google.protobuf.CodedOutputStream
108 .computeUInt64Size(2, low_);
110 size += getUnknownFields().getSerializedSize();
116 public boolean equals(
final java.lang.Object obj) {
120 if (!(obj instanceof com.google.ortools.util.Int128)) {
121 return super.equals(obj);
126 != other.
getHigh())
return false;
128 != other.
getLow())
return false;
129 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
135 if (memoizedHashCode != 0) {
136 return memoizedHashCode;
141 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
144 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
146 hash = (29 * hash) + getUnknownFields().hashCode();
147 memoizedHashCode = hash;
152 java.nio.ByteBuffer data)
153 throws com.google.protobuf.InvalidProtocolBufferException {
154 return PARSER.parseFrom(data);
157 java.nio.ByteBuffer data,
158 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
159 throws com.google.protobuf.InvalidProtocolBufferException {
160 return PARSER.parseFrom(data, extensionRegistry);
163 com.google.protobuf.ByteString data)
164 throws com.google.protobuf.InvalidProtocolBufferException {
165 return PARSER.parseFrom(data);
168 com.google.protobuf.ByteString data,
169 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
170 throws com.google.protobuf.InvalidProtocolBufferException {
171 return PARSER.parseFrom(data, extensionRegistry);
174 throws com.google.protobuf.InvalidProtocolBufferException {
175 return PARSER.parseFrom(data);
179 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
180 throws com.google.protobuf.InvalidProtocolBufferException {
181 return PARSER.parseFrom(data, extensionRegistry);
184 throws java.io.IOException {
185 return com.google.protobuf.GeneratedMessage
186 .parseWithIOException(PARSER, input);
189 java.io.InputStream input,
190 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
191 throws java.io.IOException {
192 return com.google.protobuf.GeneratedMessage
193 .parseWithIOException(PARSER, input, extensionRegistry);
197 throws java.io.IOException {
198 return com.google.protobuf.GeneratedMessage
199 .parseDelimitedWithIOException(PARSER, input);
203 java.io.InputStream input,
204 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
205 throws java.io.IOException {
206 return com.google.protobuf.GeneratedMessage
207 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
210 com.google.protobuf.CodedInputStream input)
211 throws java.io.IOException {
212 return com.google.protobuf.GeneratedMessage
213 .parseWithIOException(PARSER, input);
216 com.google.protobuf.CodedInputStream input,
217 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
218 throws java.io.IOException {
219 return com.google.protobuf.GeneratedMessage
220 .parseWithIOException(PARSER, input, extensionRegistry);
226 return DEFAULT_INSTANCE.toBuilder();
229 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
233 return this == DEFAULT_INSTANCE
239 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
251 public static final class Builder
extends
252 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
255 public static final com.google.protobuf.Descriptors.Descriptor
257 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
261 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
263 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_fieldAccessorTable
264 .ensureFieldAccessorsInitialized(
265 com.google.ortools.util.Int128.class, com.google.ortools.util.Int128.Builder.class);
274 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
288 public com.google.protobuf.Descriptors.Descriptor
290 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
295 return com.google.ortools.util.Int128.getDefaultInstance();
302 throw newUninitializedMessageException(result);
310 if (bitField0_ != 0) { buildPartial0(result); }
315 private void buildPartial0(com.google.ortools.util.Int128 result) {
316 int from_bitField0_ = bitField0_;
317 if (((from_bitField0_ & 0x00000001) != 0)) {
318 result.high_ = high_;
320 if (((from_bitField0_ & 0x00000002) != 0)) {
326 public Builder
mergeFrom(com.google.protobuf.Message other) {
327 if (other instanceof com.google.ortools.util.Int128) {
328 return mergeFrom((com.google.ortools.util.Int128)other);
330 super.mergeFrom(other);
335 public Builder
mergeFrom(com.google.ortools.util.Int128 other) {
336 if (other == com.google.ortools.util.Int128.getDefaultInstance())
return this;
337 if (other.getHigh() != 0L) {
340 if (other.getLow() != 0L) {
343 this.mergeUnknownFields(other.getUnknownFields());
355 com.google.protobuf.CodedInputStream input,
356 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
357 throws java.io.IOException {
358 if (extensionRegistry ==
null) {
359 throw new java.lang.NullPointerException();
362 boolean done =
false;
364 int tag = input.readTag();
370 high_ = input.readInt64();
371 bitField0_ |= 0x00000001;
375 low_ = input.readUInt64();
376 bitField0_ |= 0x00000002;
380 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
387 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
388 throw e.unwrapIOException();
394 private int bitField0_;
413 bitField0_ |= 0x00000001;
422 bitField0_ = (bitField0_ & ~0x00000001);
445 bitField0_ |= 0x00000002;
454 bitField0_ = (bitField0_ & ~0x00000002);
466 DEFAULT_INSTANCE =
new com.google.ortools.util.Int128();
470 return DEFAULT_INSTANCE;
473 private static final com.google.protobuf.Parser<
Int128>
474 PARSER =
new com.google.protobuf.AbstractParser<
Int128>() {
476 public Int128 parsePartialFrom(
477 com.google.protobuf.CodedInputStream input,
478 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
479 throws com.google.protobuf.InvalidProtocolBufferException {
482 builder.mergeFrom(input, extensionRegistry);
483 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
484 throw e.setUnfinishedMessage(builder.buildPartial());
485 }
catch (com.google.protobuf.UninitializedMessageException e) {
486 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
487 }
catch (java.io.IOException e) {
488 throw new com.google.protobuf.InvalidProtocolBufferException(e)
489 .setUnfinishedMessage(builder.buildPartial());
491 return builder.buildPartial();
495 public static com.google.protobuf.Parser<Int128>
parser() {
506 return DEFAULT_INSTANCE;