6package com.google.ortools.pdlp;
11public final class MalitskyPockParams
extends
12 com.google.protobuf.GeneratedMessage implements
15private static final long serialVersionUID = 0L;
17 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
18 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 MalitskyPockParams.class.getName());
26 private MalitskyPockParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
29 private MalitskyPockParams() {
30 stepSizeDownscalingFactor_ = 0.7D;
31 linesearchContractionFactor_ = 0.99D;
32 stepSizeInterpolation_ = 1D;
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
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);
48 private int bitField0_;
50 private double stepSizeDownscalingFactor_ = 0.7D;
64 return ((bitField0_ & 0x00000001) != 0);
79 return stepSizeDownscalingFactor_;
83 private double linesearchContractionFactor_ = 0.99D;
98 return ((bitField0_ & 0x00000002) != 0);
114 return linesearchContractionFactor_;
118 private double stepSizeInterpolation_ = 1D;
133 return ((bitField0_ & 0x00000004) != 0);
149 return stepSizeInterpolation_;
152 private byte memoizedIsInitialized = -1;
159 memoizedIsInitialized = 1;
164 public void writeTo(com.google.protobuf.CodedOutputStream output)
165 throws java.io.IOException {
166 if (((bitField0_ & 0x00000001) != 0)) {
167 output.writeDouble(1, stepSizeDownscalingFactor_);
169 if (((bitField0_ & 0x00000002) != 0)) {
170 output.writeDouble(2, linesearchContractionFactor_);
172 if (((bitField0_ & 0x00000004) != 0)) {
173 output.writeDouble(3, stepSizeInterpolation_);
175 getUnknownFields().writeTo(output);
180 int size = memoizedSize;
181 if (size != -1)
return size;
184 if (((bitField0_ & 0x00000001) != 0)) {
185 size += com.google.protobuf.CodedOutputStream
186 .computeDoubleSize(1, stepSizeDownscalingFactor_);
188 if (((bitField0_ & 0x00000002) != 0)) {
189 size += com.google.protobuf.CodedOutputStream
190 .computeDoubleSize(2, linesearchContractionFactor_);
192 if (((bitField0_ & 0x00000004) != 0)) {
193 size += com.google.protobuf.CodedOutputStream
194 .computeDoubleSize(3, stepSizeInterpolation_);
196 size += getUnknownFields().getSerializedSize();
202 public boolean equals(
final java.lang.Object obj) {
206 if (!(obj instanceof com.google.ortools.pdlp.MalitskyPockParams)) {
207 return super.equals(obj);
214 != java.lang.Double.doubleToLongBits(
220 != java.lang.Double.doubleToLongBits(
226 != java.lang.Double.doubleToLongBits(
229 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
235 if (memoizedHashCode != 0) {
236 return memoizedHashCode;
242 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
247 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
252 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
255 hash = (29 * hash) + getUnknownFields().hashCode();
256 memoizedHashCode = hash;
261 java.nio.ByteBuffer data)
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data);
266 java.nio.ByteBuffer data,
267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data, extensionRegistry);
272 com.google.protobuf.ByteString data)
273 throws com.google.protobuf.InvalidProtocolBufferException {
274 return PARSER.parseFrom(data);
277 com.google.protobuf.ByteString data,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws com.google.protobuf.InvalidProtocolBufferException {
280 return PARSER.parseFrom(data, extensionRegistry);
283 throws com.google.protobuf.InvalidProtocolBufferException {
284 return PARSER.parseFrom(data);
288 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
289 throws com.google.protobuf.InvalidProtocolBufferException {
290 return PARSER.parseFrom(data, extensionRegistry);
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseWithIOException(PARSER, input);
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);
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseDelimitedWithIOException(PARSER, input);
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);
319 com.google.protobuf.CodedInputStream input)
320 throws java.io.IOException {
321 return com.google.protobuf.GeneratedMessage
322 .parseWithIOException(PARSER, input);
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);
335 return DEFAULT_INSTANCE.toBuilder();
338 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
342 return this == DEFAULT_INSTANCE
348 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
355 public static final class Builder
extends
356 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
359 public static final com.google.protobuf.Descriptors.Descriptor
361 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
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);
378 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
386 stepSizeDownscalingFactor_ = 0.7D;
387 linesearchContractionFactor_ = 0.99D;
388 stepSizeInterpolation_ = 1D;
393 public com.google.protobuf.Descriptors.Descriptor
395 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
400 return com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance();
407 throw newUninitializedMessageException(result);
415 if (bitField0_ != 0) { buildPartial0(result); }
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;
427 if (((from_bitField0_ & 0x00000002) != 0)) {
428 result.linesearchContractionFactor_ = linesearchContractionFactor_;
429 to_bitField0_ |= 0x00000002;
431 if (((from_bitField0_ & 0x00000004) != 0)) {
432 result.stepSizeInterpolation_ = stepSizeInterpolation_;
433 to_bitField0_ |= 0x00000004;
435 result.bitField0_ |= to_bitField0_;
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);
443 super.mergeFrom(other);
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()) {
453 if (other.hasLinesearchContractionFactor()) {
456 if (other.hasStepSizeInterpolation()) {
459 this.mergeUnknownFields(other.getUnknownFields());
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();
478 boolean done =
false;
480 int tag = input.readTag();
486 stepSizeDownscalingFactor_ = input.readDouble();
487 bitField0_ |= 0x00000001;
491 linesearchContractionFactor_ = input.readDouble();
492 bitField0_ |= 0x00000002;
496 stepSizeInterpolation_ = input.readDouble();
497 bitField0_ |= 0x00000004;
501 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
508 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
509 throw e.unwrapIOException();
515 private int bitField0_;
517 private double stepSizeDownscalingFactor_ = 0.7D;
531 return ((bitField0_ & 0x00000001) != 0);
546 return stepSizeDownscalingFactor_;
562 stepSizeDownscalingFactor_ = value;
563 bitField0_ |= 0x00000001;
579 bitField0_ = (bitField0_ & ~0x00000001);
580 stepSizeDownscalingFactor_ = 0.7D;
585 private double linesearchContractionFactor_ = 0.99D;
600 return ((bitField0_ & 0x00000002) != 0);
616 return linesearchContractionFactor_;
633 linesearchContractionFactor_ = value;
634 bitField0_ |= 0x00000002;
651 bitField0_ = (bitField0_ & ~0x00000002);
652 linesearchContractionFactor_ = 0.99D;
657 private double stepSizeInterpolation_ = 1D;
672 return ((bitField0_ & 0x00000004) != 0);
688 return stepSizeInterpolation_;
705 stepSizeInterpolation_ = value;
706 bitField0_ |= 0x00000004;
723 bitField0_ = (bitField0_ & ~0x00000004);
724 stepSizeInterpolation_ = 1D;
735 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.MalitskyPockParams();
739 return DEFAULT_INSTANCE;
746 com.google.protobuf.CodedInputStream input,
747 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
748 throws com.google.protobuf.InvalidProtocolBufferException {
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());
760 return builder.buildPartial();
764 public static com.google.protobuf.Parser<MalitskyPockParams>
parser() {
775 return DEFAULT_INSTANCE;