Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Int128.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/util/int128.proto
3
4// Protobuf Java Version: 3.25.3
5package com.google.ortools.util;
6
15public final class Int128 extends
16 com.google.protobuf.GeneratedMessageV3 implements
17 // @@protoc_insertion_point(message_implements:operations_research.Int128)
19private static final long serialVersionUID = 0L;
20 // Use Int128.newBuilder() to construct.
21 private Int128(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
22 super(builder);
23 }
24 private Int128() {
25 }
26
27 @java.lang.Override
28 @SuppressWarnings({"unused"})
29 protected java.lang.Object newInstance(
30 UnusedPrivateParameter unused) {
31 return new Int128();
32 }
33
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
37 }
38
39 @java.lang.Override
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);
45 }
46
47 public static final int HIGH_FIELD_NUMBER = 1;
48 private long high_ = 0L;
53 @java.lang.Override
54 public long getHigh() {
55 return high_;
56 }
57
58 public static final int LOW_FIELD_NUMBER = 2;
59 private long low_ = 0L;
64 @java.lang.Override
65 public long getLow() {
66 return low_;
67 }
68
69 private byte memoizedIsInitialized = -1;
70 @java.lang.Override
71 public final boolean isInitialized() {
72 byte isInitialized = memoizedIsInitialized;
73 if (isInitialized == 1) return true;
74 if (isInitialized == 0) return false;
75
76 memoizedIsInitialized = 1;
77 return true;
78 }
79
80 @java.lang.Override
81 public void writeTo(com.google.protobuf.CodedOutputStream output)
82 throws java.io.IOException {
83 if (high_ != 0L) {
84 output.writeInt64(1, high_);
85 }
86 if (low_ != 0L) {
87 output.writeUInt64(2, low_);
88 }
89 getUnknownFields().writeTo(output);
90 }
91
92 @java.lang.Override
93 public int getSerializedSize() {
94 int size = memoizedSize;
95 if (size != -1) return size;
96
97 size = 0;
98 if (high_ != 0L) {
99 size += com.google.protobuf.CodedOutputStream
100 .computeInt64Size(1, high_);
101 }
102 if (low_ != 0L) {
103 size += com.google.protobuf.CodedOutputStream
104 .computeUInt64Size(2, low_);
105 }
106 size += getUnknownFields().getSerializedSize();
107 memoizedSize = size;
108 return size;
109 }
110
111 @java.lang.Override
112 public boolean equals(final java.lang.Object obj) {
113 if (obj == this) {
114 return true;
115 }
116 if (!(obj instanceof com.google.ortools.util.Int128)) {
117 return super.equals(obj);
118 }
119 com.google.ortools.util.Int128 other = (com.google.ortools.util.Int128) obj;
120
121 if (getHigh()
122 != other.getHigh()) return false;
123 if (getLow()
124 != other.getLow()) return false;
125 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
126 return true;
127 }
128
129 @java.lang.Override
130 public int hashCode() {
131 if (memoizedHashCode != 0) {
132 return memoizedHashCode;
133 }
134 int hash = 41;
135 hash = (19 * hash) + getDescriptor().hashCode();
136 hash = (37 * hash) + HIGH_FIELD_NUMBER;
137 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
138 getHigh());
139 hash = (37 * hash) + LOW_FIELD_NUMBER;
140 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
141 getLow());
142 hash = (29 * hash) + getUnknownFields().hashCode();
143 memoizedHashCode = hash;
144 return hash;
145 }
146
148 java.nio.ByteBuffer data)
149 throws com.google.protobuf.InvalidProtocolBufferException {
150 return PARSER.parseFrom(data);
151 }
153 java.nio.ByteBuffer data,
154 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
155 throws com.google.protobuf.InvalidProtocolBufferException {
156 return PARSER.parseFrom(data, extensionRegistry);
157 }
159 com.google.protobuf.ByteString data)
160 throws com.google.protobuf.InvalidProtocolBufferException {
161 return PARSER.parseFrom(data);
162 }
164 com.google.protobuf.ByteString data,
165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
166 throws com.google.protobuf.InvalidProtocolBufferException {
167 return PARSER.parseFrom(data, extensionRegistry);
168 }
169 public static com.google.ortools.util.Int128 parseFrom(byte[] data)
170 throws com.google.protobuf.InvalidProtocolBufferException {
171 return PARSER.parseFrom(data);
172 }
174 byte[] data,
175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
176 throws com.google.protobuf.InvalidProtocolBufferException {
177 return PARSER.parseFrom(data, extensionRegistry);
178 }
179 public static com.google.ortools.util.Int128 parseFrom(java.io.InputStream input)
180 throws java.io.IOException {
181 return com.google.protobuf.GeneratedMessageV3
182 .parseWithIOException(PARSER, input);
183 }
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);
190 }
191
192 public static com.google.ortools.util.Int128 parseDelimitedFrom(java.io.InputStream input)
193 throws java.io.IOException {
194 return com.google.protobuf.GeneratedMessageV3
195 .parseDelimitedWithIOException(PARSER, input);
196 }
197
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);
204 }
206 com.google.protobuf.CodedInputStream input)
207 throws java.io.IOException {
208 return com.google.protobuf.GeneratedMessageV3
209 .parseWithIOException(PARSER, input);
210 }
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);
217 }
218
219 @java.lang.Override
220 public Builder newBuilderForType() { return newBuilder(); }
221 public static Builder newBuilder() {
222 return DEFAULT_INSTANCE.toBuilder();
223 }
224 public static Builder newBuilder(com.google.ortools.util.Int128 prototype) {
225 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
226 }
227 @java.lang.Override
229 return this == DEFAULT_INSTANCE
230 ? new Builder() : new Builder().mergeFrom(this);
231 }
232
233 @java.lang.Override
235 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
236 Builder builder = new Builder(parent);
237 return builder;
238 }
247 public static final class Builder extends
248 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
249 // @@protoc_insertion_point(builder_implements:operations_research.Int128)
250 com.google.ortools.util.Int128OrBuilder {
251 public static final com.google.protobuf.Descriptors.Descriptor
253 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
254 }
255
256 @java.lang.Override
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);
262 }
263
264 // Construct using com.google.ortools.util.Int128.newBuilder()
265 private Builder() {
266
267 }
268
269 private Builder(
270 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
271 super(parent);
272
273 }
274 @java.lang.Override
275 public Builder clear() {
276 super.clear();
277 bitField0_ = 0;
278 high_ = 0L;
279 low_ = 0L;
280 return this;
281 }
282
283 @java.lang.Override
284 public com.google.protobuf.Descriptors.Descriptor
286 return com.google.ortools.util.Int128OuterClass.internal_static_operations_research_Int128_descriptor;
287 }
288
289 @java.lang.Override
291 return com.google.ortools.util.Int128.getDefaultInstance();
292 }
293
294 @java.lang.Override
297 if (!result.isInitialized()) {
298 throw newUninitializedMessageException(result);
299 }
300 return result;
301 }
302
303 @java.lang.Override
305 com.google.ortools.util.Int128 result = new com.google.ortools.util.Int128(this);
306 if (bitField0_ != 0) { buildPartial0(result); }
307 onBuilt();
308 return result;
309 }
310
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_;
315 }
316 if (((from_bitField0_ & 0x00000002) != 0)) {
317 result.low_ = low_;
318 }
319 }
320
321 @java.lang.Override
322 public Builder clone() {
323 return super.clone();
324 }
325 @java.lang.Override
327 com.google.protobuf.Descriptors.FieldDescriptor field,
328 java.lang.Object value) {
329 return super.setField(field, value);
330 }
331 @java.lang.Override
333 com.google.protobuf.Descriptors.FieldDescriptor field) {
334 return super.clearField(field);
335 }
336 @java.lang.Override
338 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
339 return super.clearOneof(oneof);
340 }
341 @java.lang.Override
343 com.google.protobuf.Descriptors.FieldDescriptor field,
344 int index, java.lang.Object value) {
345 return super.setRepeatedField(field, index, value);
346 }
347 @java.lang.Override
349 com.google.protobuf.Descriptors.FieldDescriptor field,
350 java.lang.Object value) {
351 return super.addRepeatedField(field, value);
352 }
353 @java.lang.Override
354 public Builder mergeFrom(com.google.protobuf.Message other) {
355 if (other instanceof com.google.ortools.util.Int128) {
356 return mergeFrom((com.google.ortools.util.Int128)other);
357 } else {
358 super.mergeFrom(other);
359 return this;
360 }
361 }
362
363 public Builder mergeFrom(com.google.ortools.util.Int128 other) {
364 if (other == com.google.ortools.util.Int128.getDefaultInstance()) return this;
365 if (other.getHigh() != 0L) {
366 setHigh(other.getHigh());
367 }
368 if (other.getLow() != 0L) {
369 setLow(other.getLow());
370 }
371 this.mergeUnknownFields(other.getUnknownFields());
372 onChanged();
373 return this;
374 }
375
376 @java.lang.Override
377 public final boolean isInitialized() {
378 return true;
379 }
380
381 @java.lang.Override
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();
388 }
389 try {
390 boolean done = false;
391 while (!done) {
392 int tag = input.readTag();
393 switch (tag) {
394 case 0:
395 done = true;
396 break;
397 case 8: {
398 high_ = input.readInt64();
399 bitField0_ |= 0x00000001;
400 break;
401 } // case 8
402 case 16: {
403 low_ = input.readUInt64();
404 bitField0_ |= 0x00000002;
405 break;
406 } // case 16
407 default: {
408 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
409 done = true; // was an endgroup tag
410 }
411 break;
412 } // default:
413 } // switch (tag)
414 } // while (!done)
415 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
416 throw e.unwrapIOException();
417 } finally {
418 onChanged();
419 } // finally
420 return this;
421 }
422 private int bitField0_;
423
424 private long high_ ;
429 @java.lang.Override
430 public long getHigh() {
431 return high_;
432 }
438 public Builder setHigh(long value) {
439
440 high_ = value;
441 bitField0_ |= 0x00000001;
442 onChanged();
443 return this;
444 }
450 bitField0_ = (bitField0_ & ~0x00000001);
451 high_ = 0L;
452 onChanged();
453 return this;
454 }
455
456 private long low_ ;
461 @java.lang.Override
462 public long getLow() {
463 return low_;
464 }
470 public Builder setLow(long value) {
471
472 low_ = value;
473 bitField0_ |= 0x00000002;
474 onChanged();
475 return this;
476 }
481 public Builder clearLow() {
482 bitField0_ = (bitField0_ & ~0x00000002);
483 low_ = 0L;
484 onChanged();
485 return this;
486 }
487 @java.lang.Override
489 final com.google.protobuf.UnknownFieldSet unknownFields) {
490 return super.setUnknownFields(unknownFields);
491 }
492
493 @java.lang.Override
495 final com.google.protobuf.UnknownFieldSet unknownFields) {
496 return super.mergeUnknownFields(unknownFields);
497 }
498
499
500 // @@protoc_insertion_point(builder_scope:operations_research.Int128)
501 }
502
503 // @@protoc_insertion_point(class_scope:operations_research.Int128)
504 private static final com.google.ortools.util.Int128 DEFAULT_INSTANCE;
505 static {
506 DEFAULT_INSTANCE = new com.google.ortools.util.Int128();
507 }
508
510 return DEFAULT_INSTANCE;
511 }
512
513 private static final com.google.protobuf.Parser<Int128>
514 PARSER = new com.google.protobuf.AbstractParser<Int128>() {
515 @java.lang.Override
516 public Int128 parsePartialFrom(
517 com.google.protobuf.CodedInputStream input,
518 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
519 throws com.google.protobuf.InvalidProtocolBufferException {
520 Builder builder = newBuilder();
521 try {
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());
530 }
531 return builder.buildPartial();
532 }
533 };
534
535 public static com.google.protobuf.Parser<Int128> parser() {
536 return PARSER;
537 }
538
539 @java.lang.Override
540 public com.google.protobuf.Parser<Int128> getParserForType() {
541 return PARSER;
542 }
543
544 @java.lang.Override
546 return DEFAULT_INSTANCE;
547 }
548
549}
550
com.google.ortools.util.Int128 buildPartial()
Definition Int128.java:304
com.google.ortools.util.Int128 getDefaultInstanceForType()
Definition Int128.java:290
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:382
Builder mergeFrom(com.google.ortools.util.Int128 other)
Definition Int128.java:363
Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Definition Int128.java:332
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Definition Int128.java:252
com.google.ortools.util.Int128 build()
Definition Int128.java:295
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Definition Int128.java:285
Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Definition Int128.java:342
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Definition Int128.java:258
Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Definition Int128.java:326
Builder mergeFrom(com.google.protobuf.Message other)
Definition Int128.java:354
final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Definition Int128.java:494
Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Definition Int128.java:337
Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Definition Int128.java:348
final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)
Definition Int128.java:488
static com.google.ortools.util.Int128 getDefaultInstance()
Definition Int128.java:509
static com.google.ortools.util.Int128 parseFrom(byte[] data)
Definition Int128.java:169
static com.google.ortools.util.Int128 parseFrom(java.nio.ByteBuffer data)
Definition Int128.java:147
Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Definition Int128.java:234
static com.google.ortools.util.Int128 parseFrom(com.google.protobuf.CodedInputStream input)
Definition Int128.java:205
com.google.ortools.util.Int128 getDefaultInstanceForType()
Definition Int128.java:545
boolean equals(final java.lang.Object obj)
Definition Int128.java:112
static final int LOW_FIELD_NUMBER
Definition Int128.java:58
static com.google.ortools.util.Int128 parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:184
static com.google.ortools.util.Int128 parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:163
static com.google.ortools.util.Int128 parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:211
com.google.protobuf.Parser< Int128 > getParserForType()
Definition Int128.java:540
static com.google.ortools.util.Int128 parseFrom(java.io.InputStream input)
Definition Int128.java:179
static com.google.protobuf.Parser< Int128 > parser()
Definition Int128.java:535
static com.google.ortools.util.Int128 parseFrom(com.google.protobuf.ByteString data)
Definition Int128.java:158
static Builder newBuilder()
Definition Int128.java:221
static com.google.ortools.util.Int128 parseDelimitedFrom(java.io.InputStream input)
Definition Int128.java:192
final boolean isInitialized()
Definition Int128.java:71
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Definition Int128.java:35
static com.google.ortools.util.Int128 parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:152
java.lang.Object newInstance(UnusedPrivateParameter unused)
Definition Int128.java:29
static final int HIGH_FIELD_NUMBER
Definition Int128.java:47
static com.google.ortools.util.Int128 parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:198
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Definition Int128.java:41
void writeTo(com.google.protobuf.CodedOutputStream output)
Definition Int128.java:81
static com.google.ortools.util.Int128 parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Definition Int128.java:173
static Builder newBuilder(com.google.ortools.util.Int128 prototype)
Definition Int128.java:224