5package com.google.ortools.pdlp;
11 com.google.protobuf.GeneratedMessage implements
14private static final long serialVersionUID = 0L;
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 stepSizeDownscalingFactor_ = 0.7D;
30 linesearchContractionFactor_ = 0.99D;
31 stepSizeInterpolation_ = 1D;
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
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);
47 private int bitField0_;
49 private double stepSizeDownscalingFactor_ = 0.7D;
63 return ((bitField0_ & 0x00000001) != 0);
78 return stepSizeDownscalingFactor_;
82 private double linesearchContractionFactor_ = 0.99D;
97 return ((bitField0_ & 0x00000002) != 0);
113 return linesearchContractionFactor_;
117 private double stepSizeInterpolation_ = 1D;
132 return ((bitField0_ & 0x00000004) != 0);
148 return stepSizeInterpolation_;
151 private byte memoizedIsInitialized = -1;
158 memoizedIsInitialized = 1;
163 public void writeTo(com.google.protobuf.CodedOutputStream output)
164 throws java.io.IOException {
165 if (((bitField0_ & 0x00000001) != 0)) {
166 output.writeDouble(1, stepSizeDownscalingFactor_);
168 if (((bitField0_ & 0x00000002) != 0)) {
169 output.writeDouble(2, linesearchContractionFactor_);
171 if (((bitField0_ & 0x00000004) != 0)) {
172 output.writeDouble(3, stepSizeInterpolation_);
174 getUnknownFields().writeTo(output);
179 int size = memoizedSize;
180 if (size != -1)
return size;
183 if (((bitField0_ & 0x00000001) != 0)) {
184 size += com.google.protobuf.CodedOutputStream
185 .computeDoubleSize(1, stepSizeDownscalingFactor_);
187 if (((bitField0_ & 0x00000002) != 0)) {
188 size += com.google.protobuf.CodedOutputStream
189 .computeDoubleSize(2, linesearchContractionFactor_);
191 if (((bitField0_ & 0x00000004) != 0)) {
192 size += com.google.protobuf.CodedOutputStream
193 .computeDoubleSize(3, stepSizeInterpolation_);
195 size += getUnknownFields().getSerializedSize();
201 public boolean equals(
final java.lang.Object obj) {
205 if (!(obj instanceof com.google.ortools.pdlp.MalitskyPockParams)) {
206 return super.equals(obj);
213 != java.lang.Double.doubleToLongBits(
219 != java.lang.Double.doubleToLongBits(
225 != java.lang.Double.doubleToLongBits(
228 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
234 if (memoizedHashCode != 0) {
235 return memoizedHashCode;
241 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
246 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
251 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
254 hash = (29 * hash) + getUnknownFields().hashCode();
255 memoizedHashCode = hash;
260 java.nio.ByteBuffer data)
261 throws com.google.protobuf.InvalidProtocolBufferException {
262 return PARSER.parseFrom(data);
265 java.nio.ByteBuffer data,
266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
267 throws com.google.protobuf.InvalidProtocolBufferException {
268 return PARSER.parseFrom(data, extensionRegistry);
271 com.google.protobuf.ByteString data)
272 throws com.google.protobuf.InvalidProtocolBufferException {
273 return PARSER.parseFrom(data);
276 com.google.protobuf.ByteString data,
277 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278 throws com.google.protobuf.InvalidProtocolBufferException {
279 return PARSER.parseFrom(data, extensionRegistry);
282 throws com.google.protobuf.InvalidProtocolBufferException {
283 return PARSER.parseFrom(data);
287 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288 throws com.google.protobuf.InvalidProtocolBufferException {
289 return PARSER.parseFrom(data, extensionRegistry);
292 throws java.io.IOException {
293 return com.google.protobuf.GeneratedMessage
294 .parseWithIOException(PARSER, input);
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);
305 throws java.io.IOException {
306 return com.google.protobuf.GeneratedMessage
307 .parseDelimitedWithIOException(PARSER, input);
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);
318 com.google.protobuf.CodedInputStream input)
319 throws java.io.IOException {
320 return com.google.protobuf.GeneratedMessage
321 .parseWithIOException(PARSER, input);
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);
341 return this == DEFAULT_INSTANCE
347 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
355 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
358 public static final com.google.protobuf.Descriptors.Descriptor
360 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
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);
377 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
385 stepSizeDownscalingFactor_ = 0.7D;
386 linesearchContractionFactor_ = 0.99D;
387 stepSizeInterpolation_ = 1D;
392 public com.google.protobuf.Descriptors.Descriptor
394 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_MalitskyPockParams_descriptor;
399 return com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance();
406 throw newUninitializedMessageException(result);
414 if (bitField0_ != 0) { buildPartial0(result); }
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;
426 if (((from_bitField0_ & 0x00000002) != 0)) {
427 result.linesearchContractionFactor_ = linesearchContractionFactor_;
428 to_bitField0_ |= 0x00000002;
430 if (((from_bitField0_ & 0x00000004) != 0)) {
431 result.stepSizeInterpolation_ = stepSizeInterpolation_;
432 to_bitField0_ |= 0x00000004;
434 result.bitField0_ |= to_bitField0_;
439 if (other instanceof com.google.ortools.pdlp.MalitskyPockParams) {
440 return mergeFrom((com.google.ortools.pdlp.MalitskyPockParams)other);
442 super.mergeFrom(other);
448 if (other == com.google.ortools.pdlp.MalitskyPockParams.getDefaultInstance())
return this;
449 if (other.hasStepSizeDownscalingFactor()) {
452 if (other.hasLinesearchContractionFactor()) {
455 if (other.hasStepSizeInterpolation()) {
458 this.mergeUnknownFields(other.getUnknownFields());
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();
477 boolean done =
false;
479 int tag = input.readTag();
485 stepSizeDownscalingFactor_ = input.readDouble();
486 bitField0_ |= 0x00000001;
490 linesearchContractionFactor_ = input.readDouble();
491 bitField0_ |= 0x00000002;
495 stepSizeInterpolation_ = input.readDouble();
496 bitField0_ |= 0x00000004;
500 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
507 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
508 throw e.unwrapIOException();
514 private int bitField0_;
516 private double stepSizeDownscalingFactor_ = 0.7D;
530 return ((bitField0_ & 0x00000001) != 0);
545 return stepSizeDownscalingFactor_;
561 stepSizeDownscalingFactor_ = value;
562 bitField0_ |= 0x00000001;
578 bitField0_ = (bitField0_ & ~0x00000001);
579 stepSizeDownscalingFactor_ = 0.7D;
584 private double linesearchContractionFactor_ = 0.99D;
599 return ((bitField0_ & 0x00000002) != 0);
615 return linesearchContractionFactor_;
632 linesearchContractionFactor_ = value;
633 bitField0_ |= 0x00000002;
650 bitField0_ = (bitField0_ & ~0x00000002);
651 linesearchContractionFactor_ = 0.99D;
656 private double stepSizeInterpolation_ = 1D;
671 return ((bitField0_ & 0x00000004) != 0);
687 return stepSizeInterpolation_;
704 stepSizeInterpolation_ = value;
705 bitField0_ |= 0x00000004;
722 bitField0_ = (bitField0_ & ~0x00000004);
723 stepSizeInterpolation_ = 1D;
734 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.MalitskyPockParams();
738 return DEFAULT_INSTANCE;
745 com.google.protobuf.CodedInputStream input,
746 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
747 throws com.google.protobuf.InvalidProtocolBufferException {
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());
759 return builder.buildPartial();
774 return DEFAULT_INSTANCE;