Google OR-Tools v9.12
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
MalitskyPockParams.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solvers.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.pdlp;
7
11public final class MalitskyPockParams extends
12 com.google.protobuf.GeneratedMessage implements
13 // @@protoc_insertion_point(message_implements:operations_research.pdlp.MalitskyPockParams)
15private static final long serialVersionUID = 0L;
16 static {
17 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
18 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
19 /* major= */ 4,
20 /* minor= */ 29,
21 /* patch= */ 3,
22 /* suffix= */ "",
23 MalitskyPockParams.class.getName());
24 }
25 // Use MalitskyPockParams.newBuilder() to construct.
26 private MalitskyPockParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
27 super(builder);
28 }
29 private MalitskyPockParams() {
30 stepSizeDownscalingFactor_ = 0.7D;
31 linesearchContractionFactor_ = 0.99D;
32 stepSizeInterpolation_ = 1D;
33 }
34
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
38 }
39
40 @java.lang.Override
41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.pdlp.MalitskyPockParams.class, com.google.ortools.pdlp.MalitskyPockParams.Builder.class);
46 }
47
48 private int bitField0_;
49 public static final int STEP_SIZE_DOWNSCALING_FACTOR_FIELD_NUMBER = 1;
50 private double stepSizeDownscalingFactor_ = 0.7D;
62 @java.lang.Override
64 return ((bitField0_ & 0x00000001) != 0);
65 }
66
77 @java.lang.Override
79 return stepSizeDownscalingFactor_;
80 }
81
82 public static final int LINESEARCH_CONTRACTION_FACTOR_FIELD_NUMBER = 2;
83 private double linesearchContractionFactor_ = 0.99D;
96 @java.lang.Override
98 return ((bitField0_ & 0x00000002) != 0);
99 }
100
112 @java.lang.Override
114 return linesearchContractionFactor_;
115 }
116
117 public static final int STEP_SIZE_INTERPOLATION_FIELD_NUMBER = 3;
118 private double stepSizeInterpolation_ = 1D;
131 @java.lang.Override
132 public boolean hasStepSizeInterpolation() {
133 return ((bitField0_ & 0x00000004) != 0);
134 }
135
147 @java.lang.Override
148 public double getStepSizeInterpolation() {
149 return stepSizeInterpolation_;
150 }
151
152 private byte memoizedIsInitialized = -1;
153 @java.lang.Override
154 public final boolean isInitialized() {
155 byte isInitialized = memoizedIsInitialized;
156 if (isInitialized == 1) return true;
157 if (isInitialized == 0) return false;
158
159 memoizedIsInitialized = 1;
160 return true;
161 }
162
163 @java.lang.Override
164 public void writeTo(com.google.protobuf.CodedOutputStream output)
165 throws java.io.IOException {
166 if (((bitField0_ & 0x00000001) != 0)) {
167 output.writeDouble(1, stepSizeDownscalingFactor_);
168 }
169 if (((bitField0_ & 0x00000002) != 0)) {
170 output.writeDouble(2, linesearchContractionFactor_);
171 }
172 if (((bitField0_ & 0x00000004) != 0)) {
173 output.writeDouble(3, stepSizeInterpolation_);
174 }
175 getUnknownFields().writeTo(output);
176 }
177
178 @java.lang.Override
179 public int getSerializedSize() {
180 int size = memoizedSize;
181 if (size != -1) return size;
182
183 size = 0;
184 if (((bitField0_ & 0x00000001) != 0)) {
185 size += com.google.protobuf.CodedOutputStream
186 .computeDoubleSize(1, stepSizeDownscalingFactor_);
187 }
188 if (((bitField0_ & 0x00000002) != 0)) {
189 size += com.google.protobuf.CodedOutputStream
190 .computeDoubleSize(2, linesearchContractionFactor_);
191 }
192 if (((bitField0_ & 0x00000004) != 0)) {
193 size += com.google.protobuf.CodedOutputStream
194 .computeDoubleSize(3, stepSizeInterpolation_);
195 }
196 size += getUnknownFields().getSerializedSize();
197 memoizedSize = size;
198 return size;
199 }
200
201 @java.lang.Override
202 public boolean equals(final java.lang.Object obj) {
203 if (obj == this) {
204 return true;
205 }
206 if (!(obj instanceof com.google.ortools.pdlp.MalitskyPockParams)) {
207 return super.equals(obj);
208 }
209 com.google.ortools.pdlp.MalitskyPockParams other = (com.google.ortools.pdlp.MalitskyPockParams) obj;
210
211 if (hasStepSizeDownscalingFactor() != other.hasStepSizeDownscalingFactor()) return false;
213 if (java.lang.Double.doubleToLongBits(getStepSizeDownscalingFactor())
214 != java.lang.Double.doubleToLongBits(
215 other.getStepSizeDownscalingFactor())) return false;
216 }
219 if (java.lang.Double.doubleToLongBits(getLinesearchContractionFactor())
220 != java.lang.Double.doubleToLongBits(
221 other.getLinesearchContractionFactor())) return false;
222 }
223 if (hasStepSizeInterpolation() != other.hasStepSizeInterpolation()) return false;
225 if (java.lang.Double.doubleToLongBits(getStepSizeInterpolation())
226 != java.lang.Double.doubleToLongBits(
227 other.getStepSizeInterpolation())) return false;
228 }
229 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
230 return true;
231 }
232
233 @java.lang.Override
234 public int hashCode() {
235 if (memoizedHashCode != 0) {
236 return memoizedHashCode;
237 }
238 int hash = 41;
239 hash = (19 * hash) + getDescriptor().hashCode();
242 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
243 java.lang.Double.doubleToLongBits(getStepSizeDownscalingFactor()));
244 }
247 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
248 java.lang.Double.doubleToLongBits(getLinesearchContractionFactor()));
249 }
251 hash = (37 * hash) + STEP_SIZE_INTERPOLATION_FIELD_NUMBER;
252 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
253 java.lang.Double.doubleToLongBits(getStepSizeInterpolation()));
254 }
255 hash = (29 * hash) + getUnknownFields().hashCode();
256 memoizedHashCode = hash;
257 return hash;
258 }
259
261 java.nio.ByteBuffer data)
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data);
264 }
266 java.nio.ByteBuffer data,
267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data, extensionRegistry);
270 }
272 com.google.protobuf.ByteString data)
273 throws com.google.protobuf.InvalidProtocolBufferException {
274 return PARSER.parseFrom(data);
275 }
277 com.google.protobuf.ByteString data,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws com.google.protobuf.InvalidProtocolBufferException {
280 return PARSER.parseFrom(data, extensionRegistry);
281 }
283 throws com.google.protobuf.InvalidProtocolBufferException {
284 return PARSER.parseFrom(data);
285 }
287 byte[] data,
288 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
289 throws com.google.protobuf.InvalidProtocolBufferException {
290 return PARSER.parseFrom(data, extensionRegistry);
291 }
292 public static com.google.ortools.pdlp.MalitskyPockParams parseFrom(java.io.InputStream input)
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseWithIOException(PARSER, input);
296 }
298 java.io.InputStream input,
299 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
300 throws java.io.IOException {
301 return com.google.protobuf.GeneratedMessage
302 .parseWithIOException(PARSER, input, extensionRegistry);
303 }
304
305 public static com.google.ortools.pdlp.MalitskyPockParams parseDelimitedFrom(java.io.InputStream input)
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseDelimitedWithIOException(PARSER, input);
309 }
310
312 java.io.InputStream input,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws java.io.IOException {
315 return com.google.protobuf.GeneratedMessage
316 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
317 }
319 com.google.protobuf.CodedInputStream input)
320 throws java.io.IOException {
321 return com.google.protobuf.GeneratedMessage
322 .parseWithIOException(PARSER, input);
323 }
325 com.google.protobuf.CodedInputStream input,
326 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws java.io.IOException {
328 return com.google.protobuf.GeneratedMessage
329 .parseWithIOException(PARSER, input, extensionRegistry);
330 }
331
332 @java.lang.Override
333 public Builder newBuilderForType() { return newBuilder(); }
334 public static Builder newBuilder() {
335 return DEFAULT_INSTANCE.toBuilder();
336 }
337 public static Builder newBuilder(com.google.ortools.pdlp.MalitskyPockParams prototype) {
338 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
339 }
340 @java.lang.Override
342 return this == DEFAULT_INSTANCE
343 ? new Builder() : new Builder().mergeFrom(this);
344 }
345
346 @java.lang.Override
348 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
349 Builder builder = new Builder(parent);
350 return builder;
351 }
352
355 public static final class Builder extends
356 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
357 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.MalitskyPockParams)
359 public static final com.google.protobuf.Descriptors.Descriptor
361 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
362 }
363
364 @java.lang.Override
365 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
367 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_fieldAccessorTable
368 .ensureFieldAccessorsInitialized(
369 com.google.ortools.pdlp.MalitskyPockParams.class, com.google.ortools.pdlp.MalitskyPockParams.Builder.class);
370 }
371
372 // Construct using com.google.ortools.pdlp.MalitskyPockParams.newBuilder()
373 private Builder() {
374
375 }
376
377 private Builder(
378 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
379 super(parent);
380
381 }
382 @java.lang.Override
383 public Builder clear() {
384 super.clear();
385 bitField0_ = 0;
386 stepSizeDownscalingFactor_ = 0.7D;
387 linesearchContractionFactor_ = 0.99D;
388 stepSizeInterpolation_ = 1D;
389 return this;
390 }
391
392 @java.lang.Override
393 public com.google.protobuf.Descriptors.Descriptor
395 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
396 }
397
398 @java.lang.Override
400 return com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance();
401 }
402
403 @java.lang.Override
406 if (!result.isInitialized()) {
407 throw newUninitializedMessageException(result);
408 }
409 return result;
410 }
411
412 @java.lang.Override
414 com.google.ortools.pdlp.MalitskyPockParams result = new com.google.ortools.pdlp.MalitskyPockParams(this);
415 if (bitField0_ != 0) { buildPartial0(result); }
416 onBuilt();
417 return result;
418 }
419
420 private void buildPartial0(com.google.ortools.pdlp.MalitskyPockParams result) {
421 int from_bitField0_ = bitField0_;
422 int to_bitField0_ = 0;
423 if (((from_bitField0_ & 0x00000001) != 0)) {
424 result.stepSizeDownscalingFactor_ = stepSizeDownscalingFactor_;
425 to_bitField0_ |= 0x00000001;
426 }
427 if (((from_bitField0_ & 0x00000002) != 0)) {
428 result.linesearchContractionFactor_ = linesearchContractionFactor_;
429 to_bitField0_ |= 0x00000002;
430 }
431 if (((from_bitField0_ & 0x00000004) != 0)) {
432 result.stepSizeInterpolation_ = stepSizeInterpolation_;
433 to_bitField0_ |= 0x00000004;
434 }
435 result.bitField0_ |= to_bitField0_;
436 }
437
438 @java.lang.Override
439 public Builder mergeFrom(com.google.protobuf.Message other) {
440 if (other instanceof com.google.ortools.pdlp.MalitskyPockParams) {
441 return mergeFrom((com.google.ortools.pdlp.MalitskyPockParams)other);
442 } else {
443 super.mergeFrom(other);
444 return this;
445 }
446 }
447
448 public Builder mergeFrom(com.google.ortools.pdlp.MalitskyPockParams other) {
449 if (other == com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance()) return this;
450 if (other.hasStepSizeDownscalingFactor()) {
451 setStepSizeDownscalingFactor(other.getStepSizeDownscalingFactor());
452 }
453 if (other.hasLinesearchContractionFactor()) {
454 setLinesearchContractionFactor(other.getLinesearchContractionFactor());
455 }
456 if (other.hasStepSizeInterpolation()) {
457 setStepSizeInterpolation(other.getStepSizeInterpolation());
458 }
459 this.mergeUnknownFields(other.getUnknownFields());
460 onChanged();
461 return this;
462 }
463
464 @java.lang.Override
465 public final boolean isInitialized() {
466 return true;
467 }
468
469 @java.lang.Override
470 public Builder mergeFrom(
471 com.google.protobuf.CodedInputStream input,
472 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
473 throws java.io.IOException {
474 if (extensionRegistry == null) {
475 throw new java.lang.NullPointerException();
476 }
477 try {
478 boolean done = false;
479 while (!done) {
480 int tag = input.readTag();
481 switch (tag) {
482 case 0:
483 done = true;
484 break;
485 case 9: {
486 stepSizeDownscalingFactor_ = input.readDouble();
487 bitField0_ |= 0x00000001;
488 break;
489 } // case 9
490 case 17: {
491 linesearchContractionFactor_ = input.readDouble();
492 bitField0_ |= 0x00000002;
493 break;
494 } // case 17
495 case 25: {
496 stepSizeInterpolation_ = input.readDouble();
497 bitField0_ |= 0x00000004;
498 break;
499 } // case 25
500 default: {
501 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
502 done = true; // was an endgroup tag
503 }
504 break;
505 } // default:
506 } // switch (tag)
507 } // while (!done)
508 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
509 throw e.unwrapIOException();
510 } finally {
511 onChanged();
512 } // finally
513 return this;
514 }
515 private int bitField0_;
516
517 private double stepSizeDownscalingFactor_ = 0.7D;
529 @java.lang.Override
531 return ((bitField0_ & 0x00000001) != 0);
532 }
533
544 @java.lang.Override
546 return stepSizeDownscalingFactor_;
547 }
548
560 public Builder setStepSizeDownscalingFactor(double value) {
561
562 stepSizeDownscalingFactor_ = value;
563 bitField0_ |= 0x00000001;
564 onChanged();
565 return this;
566 }
567
579 bitField0_ = (bitField0_ & ~0x00000001);
580 stepSizeDownscalingFactor_ = 0.7D;
581 onChanged();
582 return this;
583 }
584
585 private double linesearchContractionFactor_ = 0.99D;
598 @java.lang.Override
600 return ((bitField0_ & 0x00000002) != 0);
601 }
602
614 @java.lang.Override
616 return linesearchContractionFactor_;
617 }
618
631 public Builder setLinesearchContractionFactor(double value) {
632
633 linesearchContractionFactor_ = value;
634 bitField0_ |= 0x00000002;
635 onChanged();
636 return this;
637 }
638
651 bitField0_ = (bitField0_ & ~0x00000002);
652 linesearchContractionFactor_ = 0.99D;
653 onChanged();
654 return this;
655 }
656
657 private double stepSizeInterpolation_ = 1D;
670 @java.lang.Override
671 public boolean hasStepSizeInterpolation() {
672 return ((bitField0_ & 0x00000004) != 0);
673 }
674
686 @java.lang.Override
687 public double getStepSizeInterpolation() {
688 return stepSizeInterpolation_;
689 }
690
703 public Builder setStepSizeInterpolation(double value) {
704
705 stepSizeInterpolation_ = value;
706 bitField0_ |= 0x00000004;
707 onChanged();
708 return this;
709 }
710
722 public Builder clearStepSizeInterpolation() {
723 bitField0_ = (bitField0_ & ~0x00000004);
724 stepSizeInterpolation_ = 1D;
725 onChanged();
726 return this;
727 }
728
729 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.MalitskyPockParams)
730 }
731
732 // @@protoc_insertion_point(class_scope:operations_research.pdlp.MalitskyPockParams)
733 private static final com.google.ortools.pdlp.MalitskyPockParams DEFAULT_INSTANCE;
734 static {
735 DEFAULT_INSTANCE = new com.google.ortools.pdlp.MalitskyPockParams();
736 }
737
739 return DEFAULT_INSTANCE;
740 }
741
742 private static final com.google.protobuf.Parser<MalitskyPockParams>
743 PARSER = new com.google.protobuf.AbstractParser<MalitskyPockParams>() {
744 @java.lang.Override
745 public MalitskyPockParams parsePartialFrom(
746 com.google.protobuf.CodedInputStream input,
747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
748 throws com.google.protobuf.InvalidProtocolBufferException {
749 Builder builder = newBuilder();
750 try {
751 builder.mergeFrom(input, extensionRegistry);
752 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
753 throw e.setUnfinishedMessage(builder.buildPartial());
754 } catch (com.google.protobuf.UninitializedMessageException e) {
755 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
756 } catch (java.io.IOException e) {
757 throw new com.google.protobuf.InvalidProtocolBufferException(e)
758 .setUnfinishedMessage(builder.buildPartial());
759 }
760 return builder.buildPartial();
761 }
762 };
763
764 public static com.google.protobuf.Parser<MalitskyPockParams> parser() {
765 return PARSER;
766 }
767
768 @java.lang.Override
769 public com.google.protobuf.Parser<MalitskyPockParams> getParserForType() {
770 return PARSER;
771 }
772
773 @java.lang.Override
775 return DEFAULT_INSTANCE;
776 }
777
778}
779
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.pdlp.MalitskyPockParams getDefaultInstanceForType()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.pdlp.MalitskyPockParams build()
com.google.ortools.pdlp.MalitskyPockParams buildPartial()
Builder mergeFrom(com.google.protobuf.Message other)
Builder mergeFrom(com.google.ortools.pdlp.MalitskyPockParams other)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.pdlp.MalitskyPockParams parseDelimitedFrom(java.io.InputStream input)
com.google.protobuf.Parser< MalitskyPockParams > getParserForType()
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(java.io.InputStream input)
boolean equals(final java.lang.Object obj)
static com.google.protobuf.Parser< MalitskyPockParams > parser()
static Builder newBuilder(com.google.ortools.pdlp.MalitskyPockParams prototype)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(byte[] data)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.pdlp.MalitskyPockParams parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(com.google.protobuf.CodedInputStream input)
com.google.ortools.pdlp.MalitskyPockParams getDefaultInstanceForType()
static com.google.ortools.pdlp.MalitskyPockParams getDefaultInstance()
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.pdlp.MalitskyPockParams parseFrom(com.google.protobuf.ByteString data)