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