6package com.google.ortools.pdlp;
17public final class AdaptiveLinesearchParams
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 AdaptiveLinesearchParams.class.getName());
32 private AdaptiveLinesearchParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private AdaptiveLinesearchParams() {
36 stepSizeReductionExponent_ = 0.3D;
37 stepSizeGrowthExponent_ = 0.6D;
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
46 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
48 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_fieldAccessorTable
49 .ensureFieldAccessorsInitialized(
50 com.google.ortools.pdlp.AdaptiveLinesearchParams.class, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder.class);
53 private int bitField0_;
55 private double stepSizeReductionExponent_ = 0.3D;
69 return ((bitField0_ & 0x00000001) != 0);
84 return stepSizeReductionExponent_;
88 private double stepSizeGrowthExponent_ = 0.6D;
101 return ((bitField0_ & 0x00000002) != 0);
115 return stepSizeGrowthExponent_;
118 private byte memoizedIsInitialized = -1;
125 memoizedIsInitialized = 1;
130 public void writeTo(com.google.protobuf.CodedOutputStream output)
131 throws java.io.IOException {
132 if (((bitField0_ & 0x00000001) != 0)) {
133 output.writeDouble(1, stepSizeReductionExponent_);
135 if (((bitField0_ & 0x00000002) != 0)) {
136 output.writeDouble(2, stepSizeGrowthExponent_);
138 getUnknownFields().writeTo(output);
143 int size = memoizedSize;
144 if (size != -1)
return size;
147 if (((bitField0_ & 0x00000001) != 0)) {
148 size += com.google.protobuf.CodedOutputStream
149 .computeDoubleSize(1, stepSizeReductionExponent_);
151 if (((bitField0_ & 0x00000002) != 0)) {
152 size += com.google.protobuf.CodedOutputStream
153 .computeDoubleSize(2, stepSizeGrowthExponent_);
155 size += getUnknownFields().getSerializedSize();
161 public boolean equals(
final java.lang.Object obj) {
165 if (!(obj instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams)) {
166 return super.equals(obj);
173 != java.lang.Double.doubleToLongBits(
179 != java.lang.Double.doubleToLongBits(
182 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
188 if (memoizedHashCode != 0) {
189 return memoizedHashCode;
195 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
200 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
203 hash = (29 * hash) + getUnknownFields().hashCode();
204 memoizedHashCode = hash;
209 java.nio.ByteBuffer data)
210 throws com.google.protobuf.InvalidProtocolBufferException {
211 return PARSER.parseFrom(data);
214 java.nio.ByteBuffer data,
215 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
216 throws com.google.protobuf.InvalidProtocolBufferException {
217 return PARSER.parseFrom(data, extensionRegistry);
220 com.google.protobuf.ByteString data)
221 throws com.google.protobuf.InvalidProtocolBufferException {
222 return PARSER.parseFrom(data);
225 com.google.protobuf.ByteString data,
226 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227 throws com.google.protobuf.InvalidProtocolBufferException {
228 return PARSER.parseFrom(data, extensionRegistry);
231 throws com.google.protobuf.InvalidProtocolBufferException {
232 return PARSER.parseFrom(data);
236 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws com.google.protobuf.InvalidProtocolBufferException {
238 return PARSER.parseFrom(data, extensionRegistry);
241 throws java.io.IOException {
242 return com.google.protobuf.GeneratedMessage
243 .parseWithIOException(PARSER, input);
246 java.io.InputStream input,
247 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
248 throws java.io.IOException {
249 return com.google.protobuf.GeneratedMessage
250 .parseWithIOException(PARSER, input, extensionRegistry);
254 throws java.io.IOException {
255 return com.google.protobuf.GeneratedMessage
256 .parseDelimitedWithIOException(PARSER, input);
260 java.io.InputStream input,
261 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
262 throws java.io.IOException {
263 return com.google.protobuf.GeneratedMessage
264 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
267 com.google.protobuf.CodedInputStream input)
268 throws java.io.IOException {
269 return com.google.protobuf.GeneratedMessage
270 .parseWithIOException(PARSER, input);
273 com.google.protobuf.CodedInputStream input,
274 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
275 throws java.io.IOException {
276 return com.google.protobuf.GeneratedMessage
277 .parseWithIOException(PARSER, input, extensionRegistry);
283 return DEFAULT_INSTANCE.toBuilder();
286 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
290 return this == DEFAULT_INSTANCE
296 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
309 public static final class Builder
extends
310 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
313 public static final com.google.protobuf.Descriptors.Descriptor
315 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
319 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
321 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_fieldAccessorTable
322 .ensureFieldAccessorsInitialized(
323 com.google.ortools.pdlp.AdaptiveLinesearchParams.class, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder.class);
332 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
340 stepSizeReductionExponent_ = 0.3D;
341 stepSizeGrowthExponent_ = 0.6D;
346 public com.google.protobuf.Descriptors.Descriptor
348 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
353 return com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance();
360 throw newUninitializedMessageException(result);
368 if (bitField0_ != 0) { buildPartial0(result); }
373 private void buildPartial0(com.google.ortools.pdlp.AdaptiveLinesearchParams result) {
374 int from_bitField0_ = bitField0_;
375 int to_bitField0_ = 0;
376 if (((from_bitField0_ & 0x00000001) != 0)) {
377 result.stepSizeReductionExponent_ = stepSizeReductionExponent_;
378 to_bitField0_ |= 0x00000001;
380 if (((from_bitField0_ & 0x00000002) != 0)) {
381 result.stepSizeGrowthExponent_ = stepSizeGrowthExponent_;
382 to_bitField0_ |= 0x00000002;
384 result.bitField0_ |= to_bitField0_;
388 public Builder
mergeFrom(com.google.protobuf.Message other) {
389 if (other instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams) {
390 return mergeFrom((com.google.ortools.pdlp.AdaptiveLinesearchParams)other);
392 super.mergeFrom(other);
397 public Builder
mergeFrom(com.google.ortools.pdlp.AdaptiveLinesearchParams other) {
398 if (other == com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance())
return this;
399 if (other.hasStepSizeReductionExponent()) {
402 if (other.hasStepSizeGrowthExponent()) {
405 this.mergeUnknownFields(other.getUnknownFields());
417 com.google.protobuf.CodedInputStream input,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws java.io.IOException {
420 if (extensionRegistry ==
null) {
421 throw new java.lang.NullPointerException();
424 boolean done =
false;
426 int tag = input.readTag();
432 stepSizeReductionExponent_ = input.readDouble();
433 bitField0_ |= 0x00000001;
437 stepSizeGrowthExponent_ = input.readDouble();
438 bitField0_ |= 0x00000002;
442 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
449 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
450 throw e.unwrapIOException();
456 private int bitField0_;
458 private double stepSizeReductionExponent_ = 0.3D;
472 return ((bitField0_ & 0x00000001) != 0);
487 return stepSizeReductionExponent_;
503 stepSizeReductionExponent_ = value;
504 bitField0_ |= 0x00000001;
520 bitField0_ = (bitField0_ & ~0x00000001);
521 stepSizeReductionExponent_ = 0.3D;
526 private double stepSizeGrowthExponent_ = 0.6D;
539 return ((bitField0_ & 0x00000002) != 0);
553 return stepSizeGrowthExponent_;
568 stepSizeGrowthExponent_ = value;
569 bitField0_ |= 0x00000002;
584 bitField0_ = (bitField0_ & ~0x00000002);
585 stepSizeGrowthExponent_ = 0.6D;
596 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.AdaptiveLinesearchParams();
600 return DEFAULT_INSTANCE;
607 com.google.protobuf.CodedInputStream input,
608 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
609 throws com.google.protobuf.InvalidProtocolBufferException {
612 builder.mergeFrom(input, extensionRegistry);
613 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
614 throw e.setUnfinishedMessage(builder.buildPartial());
615 }
catch (com.google.protobuf.UninitializedMessageException e) {
616 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
617 }
catch (java.io.IOException e) {
618 throw new com.google.protobuf.InvalidProtocolBufferException(e)
619 .setUnfinishedMessage(builder.buildPartial());
621 return builder.buildPartial();
625 public static com.google.protobuf.Parser<AdaptiveLinesearchParams>
parser() {
636 return DEFAULT_INSTANCE;