6package com.google.ortools.pdlp;
11@com.google.protobuf.Generated
12public final class MalitskyPockParams
extends
13 com.google.protobuf.GeneratedMessage implements
16private static final long serialVersionUID = 0L;
18 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
19 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 MalitskyPockParams.class.getName());
27 private MalitskyPockParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 private MalitskyPockParams() {
31 stepSizeDownscalingFactor_ = 0.7D;
32 linesearchContractionFactor_ = 0.99D;
33 stepSizeInterpolation_ = 1D;
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
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);
49 private int bitField0_;
51 private double stepSizeDownscalingFactor_ = 0.7D;
65 return ((bitField0_ & 0x00000001) != 0);
80 return stepSizeDownscalingFactor_;
84 private double linesearchContractionFactor_ = 0.99D;
99 return ((bitField0_ & 0x00000002) != 0);
115 return linesearchContractionFactor_;
119 private double stepSizeInterpolation_ = 1D;
134 return ((bitField0_ & 0x00000004) != 0);
150 return stepSizeInterpolation_;
153 private byte memoizedIsInitialized = -1;
160 memoizedIsInitialized = 1;
165 public void writeTo(com.google.protobuf.CodedOutputStream output)
166 throws java.io.IOException {
167 if (((bitField0_ & 0x00000001) != 0)) {
168 output.writeDouble(1, stepSizeDownscalingFactor_);
170 if (((bitField0_ & 0x00000002) != 0)) {
171 output.writeDouble(2, linesearchContractionFactor_);
173 if (((bitField0_ & 0x00000004) != 0)) {
174 output.writeDouble(3, stepSizeInterpolation_);
176 getUnknownFields().writeTo(output);
181 int size = memoizedSize;
182 if (size != -1)
return size;
185 if (((bitField0_ & 0x00000001) != 0)) {
186 size += com.google.protobuf.CodedOutputStream
187 .computeDoubleSize(1, stepSizeDownscalingFactor_);
189 if (((bitField0_ & 0x00000002) != 0)) {
190 size += com.google.protobuf.CodedOutputStream
191 .computeDoubleSize(2, linesearchContractionFactor_);
193 if (((bitField0_ & 0x00000004) != 0)) {
194 size += com.google.protobuf.CodedOutputStream
195 .computeDoubleSize(3, stepSizeInterpolation_);
197 size += getUnknownFields().getSerializedSize();
203 public boolean equals(
final java.lang.Object obj) {
207 if (!(obj instanceof com.google.ortools.pdlp.MalitskyPockParams)) {
208 return super.equals(obj);
215 != java.lang.Double.doubleToLongBits(
221 != java.lang.Double.doubleToLongBits(
227 != java.lang.Double.doubleToLongBits(
230 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
236 if (memoizedHashCode != 0) {
237 return memoizedHashCode;
243 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
248 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
253 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
256 hash = (29 * hash) + getUnknownFields().hashCode();
257 memoizedHashCode = hash;
262 java.nio.ByteBuffer data)
263 throws com.google.protobuf.InvalidProtocolBufferException {
264 return PARSER.parseFrom(data);
267 java.nio.ByteBuffer data,
268 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
269 throws com.google.protobuf.InvalidProtocolBufferException {
270 return PARSER.parseFrom(data, extensionRegistry);
273 com.google.protobuf.ByteString data)
274 throws com.google.protobuf.InvalidProtocolBufferException {
275 return PARSER.parseFrom(data);
278 com.google.protobuf.ByteString data,
279 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
280 throws com.google.protobuf.InvalidProtocolBufferException {
281 return PARSER.parseFrom(data, extensionRegistry);
284 throws com.google.protobuf.InvalidProtocolBufferException {
285 return PARSER.parseFrom(data);
289 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
290 throws com.google.protobuf.InvalidProtocolBufferException {
291 return PARSER.parseFrom(data, extensionRegistry);
294 throws java.io.IOException {
295 return com.google.protobuf.GeneratedMessage
296 .parseWithIOException(PARSER, input);
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);
307 throws java.io.IOException {
308 return com.google.protobuf.GeneratedMessage
309 .parseDelimitedWithIOException(PARSER, input);
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);
320 com.google.protobuf.CodedInputStream input)
321 throws java.io.IOException {
322 return com.google.protobuf.GeneratedMessage
323 .parseWithIOException(PARSER, input);
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);
336 return DEFAULT_INSTANCE.toBuilder();
339 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
343 return this == DEFAULT_INSTANCE
349 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
356 public static final class Builder
extends
357 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
360 public static final com.google.protobuf.Descriptors.Descriptor
362 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
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);
379 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
387 stepSizeDownscalingFactor_ = 0.7D;
388 linesearchContractionFactor_ = 0.99D;
389 stepSizeInterpolation_ = 1D;
394 public com.google.protobuf.Descriptors.Descriptor
396 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
401 return com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance();
408 throw newUninitializedMessageException(result);
416 if (bitField0_ != 0) { buildPartial0(result); }
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;
428 if (((from_bitField0_ & 0x00000002) != 0)) {
429 result.linesearchContractionFactor_ = linesearchContractionFactor_;
430 to_bitField0_ |= 0x00000002;
432 if (((from_bitField0_ & 0x00000004) != 0)) {
433 result.stepSizeInterpolation_ = stepSizeInterpolation_;
434 to_bitField0_ |= 0x00000004;
436 result.bitField0_ |= to_bitField0_;
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);
444 super.mergeFrom(other);
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()) {
454 if (other.hasLinesearchContractionFactor()) {
457 if (other.hasStepSizeInterpolation()) {
460 this.mergeUnknownFields(other.getUnknownFields());
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();
479 boolean done =
false;
481 int tag = input.readTag();
487 stepSizeDownscalingFactor_ = input.readDouble();
488 bitField0_ |= 0x00000001;
492 linesearchContractionFactor_ = input.readDouble();
493 bitField0_ |= 0x00000002;
497 stepSizeInterpolation_ = input.readDouble();
498 bitField0_ |= 0x00000004;
502 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
509 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
510 throw e.unwrapIOException();
516 private int bitField0_;
518 private double stepSizeDownscalingFactor_ = 0.7D;
532 return ((bitField0_ & 0x00000001) != 0);
547 return stepSizeDownscalingFactor_;
563 stepSizeDownscalingFactor_ = value;
564 bitField0_ |= 0x00000001;
580 bitField0_ = (bitField0_ & ~0x00000001);
581 stepSizeDownscalingFactor_ = 0.7D;
586 private double linesearchContractionFactor_ = 0.99D;
601 return ((bitField0_ & 0x00000002) != 0);
617 return linesearchContractionFactor_;
634 linesearchContractionFactor_ = value;
635 bitField0_ |= 0x00000002;
652 bitField0_ = (bitField0_ & ~0x00000002);
653 linesearchContractionFactor_ = 0.99D;
658 private double stepSizeInterpolation_ = 1D;
673 return ((bitField0_ & 0x00000004) != 0);
689 return stepSizeInterpolation_;
706 stepSizeInterpolation_ = value;
707 bitField0_ |= 0x00000004;
724 bitField0_ = (bitField0_ & ~0x00000004);
725 stepSizeInterpolation_ = 1D;
736 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.MalitskyPockParams();
740 return DEFAULT_INSTANCE;
747 com.google.protobuf.CodedInputStream input,
748 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
749 throws com.google.protobuf.InvalidProtocolBufferException {
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());
761 return builder.buildPartial();
765 public static com.google.protobuf.Parser<MalitskyPockParams>
parser() {
776 return DEFAULT_INSTANCE;