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