6package com.google.ortools.pdlp;
17@com.google.protobuf.Generated
18public final class AdaptiveLinesearchParams
extends
19 com.google.protobuf.GeneratedMessage implements
22private static final long serialVersionUID = 0L;
24 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
25 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
30 AdaptiveLinesearchParams.class.getName());
33 private AdaptiveLinesearchParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
36 private AdaptiveLinesearchParams() {
37 stepSizeReductionExponent_ = 0.3D;
38 stepSizeGrowthExponent_ = 0.6D;
41 public static final com.google.protobuf.Descriptors.Descriptor
43 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
47 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
49 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_fieldAccessorTable
50 .ensureFieldAccessorsInitialized(
51 com.google.ortools.pdlp.AdaptiveLinesearchParams.class, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder.class);
54 private int bitField0_;
56 private double stepSizeReductionExponent_ = 0.3D;
70 return ((bitField0_ & 0x00000001) != 0);
85 return stepSizeReductionExponent_;
89 private double stepSizeGrowthExponent_ = 0.6D;
102 return ((bitField0_ & 0x00000002) != 0);
116 return stepSizeGrowthExponent_;
119 private byte memoizedIsInitialized = -1;
126 memoizedIsInitialized = 1;
131 public void writeTo(com.google.protobuf.CodedOutputStream output)
132 throws java.io.IOException {
133 if (((bitField0_ & 0x00000001) != 0)) {
134 output.writeDouble(1, stepSizeReductionExponent_);
136 if (((bitField0_ & 0x00000002) != 0)) {
137 output.writeDouble(2, stepSizeGrowthExponent_);
139 getUnknownFields().writeTo(output);
144 int size = memoizedSize;
145 if (size != -1)
return size;
148 if (((bitField0_ & 0x00000001) != 0)) {
149 size += com.google.protobuf.CodedOutputStream
150 .computeDoubleSize(1, stepSizeReductionExponent_);
152 if (((bitField0_ & 0x00000002) != 0)) {
153 size += com.google.protobuf.CodedOutputStream
154 .computeDoubleSize(2, stepSizeGrowthExponent_);
156 size += getUnknownFields().getSerializedSize();
162 public boolean equals(
final java.lang.Object obj) {
166 if (!(obj instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams)) {
167 return super.equals(obj);
174 != java.lang.Double.doubleToLongBits(
180 != java.lang.Double.doubleToLongBits(
183 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
189 if (memoizedHashCode != 0) {
190 return memoizedHashCode;
196 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
201 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
204 hash = (29 * hash) + getUnknownFields().hashCode();
205 memoizedHashCode = hash;
210 java.nio.ByteBuffer data)
211 throws com.google.protobuf.InvalidProtocolBufferException {
212 return PARSER.parseFrom(data);
215 java.nio.ByteBuffer data,
216 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
217 throws com.google.protobuf.InvalidProtocolBufferException {
218 return PARSER.parseFrom(data, extensionRegistry);
221 com.google.protobuf.ByteString data)
222 throws com.google.protobuf.InvalidProtocolBufferException {
223 return PARSER.parseFrom(data);
226 com.google.protobuf.ByteString data,
227 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
228 throws com.google.protobuf.InvalidProtocolBufferException {
229 return PARSER.parseFrom(data, extensionRegistry);
232 throws com.google.protobuf.InvalidProtocolBufferException {
233 return PARSER.parseFrom(data);
237 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
238 throws com.google.protobuf.InvalidProtocolBufferException {
239 return PARSER.parseFrom(data, extensionRegistry);
242 throws java.io.IOException {
243 return com.google.protobuf.GeneratedMessage
244 .parseWithIOException(PARSER, input);
247 java.io.InputStream input,
248 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
249 throws java.io.IOException {
250 return com.google.protobuf.GeneratedMessage
251 .parseWithIOException(PARSER, input, extensionRegistry);
255 throws java.io.IOException {
256 return com.google.protobuf.GeneratedMessage
257 .parseDelimitedWithIOException(PARSER, input);
261 java.io.InputStream input,
262 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
263 throws java.io.IOException {
264 return com.google.protobuf.GeneratedMessage
265 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
268 com.google.protobuf.CodedInputStream input)
269 throws java.io.IOException {
270 return com.google.protobuf.GeneratedMessage
271 .parseWithIOException(PARSER, input);
274 com.google.protobuf.CodedInputStream input,
275 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
276 throws java.io.IOException {
277 return com.google.protobuf.GeneratedMessage
278 .parseWithIOException(PARSER, input, extensionRegistry);
284 return DEFAULT_INSTANCE.toBuilder();
287 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
291 return this == DEFAULT_INSTANCE
297 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
310 public static final class Builder
extends
311 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
314 public static final com.google.protobuf.Descriptors.Descriptor
316 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
320 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
322 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_fieldAccessorTable
323 .ensureFieldAccessorsInitialized(
324 com.google.ortools.pdlp.AdaptiveLinesearchParams.class, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder.class);
333 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
341 stepSizeReductionExponent_ = 0.3D;
342 stepSizeGrowthExponent_ = 0.6D;
347 public com.google.protobuf.Descriptors.Descriptor
349 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
354 return com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance();
361 throw newUninitializedMessageException(result);
369 if (bitField0_ != 0) { buildPartial0(result); }
374 private void buildPartial0(com.google.ortools.pdlp.AdaptiveLinesearchParams result) {
375 int from_bitField0_ = bitField0_;
376 int to_bitField0_ = 0;
377 if (((from_bitField0_ & 0x00000001) != 0)) {
378 result.stepSizeReductionExponent_ = stepSizeReductionExponent_;
379 to_bitField0_ |= 0x00000001;
381 if (((from_bitField0_ & 0x00000002) != 0)) {
382 result.stepSizeGrowthExponent_ = stepSizeGrowthExponent_;
383 to_bitField0_ |= 0x00000002;
385 result.bitField0_ |= to_bitField0_;
389 public Builder
mergeFrom(com.google.protobuf.Message other) {
390 if (other instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams) {
391 return mergeFrom((com.google.ortools.pdlp.AdaptiveLinesearchParams)other);
393 super.mergeFrom(other);
398 public Builder
mergeFrom(com.google.ortools.pdlp.AdaptiveLinesearchParams other) {
399 if (other == com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance())
return this;
400 if (other.hasStepSizeReductionExponent()) {
403 if (other.hasStepSizeGrowthExponent()) {
406 this.mergeUnknownFields(other.getUnknownFields());
418 com.google.protobuf.CodedInputStream input,
419 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
420 throws java.io.IOException {
421 if (extensionRegistry ==
null) {
422 throw new java.lang.NullPointerException();
425 boolean done =
false;
427 int tag = input.readTag();
433 stepSizeReductionExponent_ = input.readDouble();
434 bitField0_ |= 0x00000001;
438 stepSizeGrowthExponent_ = input.readDouble();
439 bitField0_ |= 0x00000002;
443 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
450 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
451 throw e.unwrapIOException();
457 private int bitField0_;
459 private double stepSizeReductionExponent_ = 0.3D;
473 return ((bitField0_ & 0x00000001) != 0);
488 return stepSizeReductionExponent_;
504 stepSizeReductionExponent_ = value;
505 bitField0_ |= 0x00000001;
521 bitField0_ = (bitField0_ & ~0x00000001);
522 stepSizeReductionExponent_ = 0.3D;
527 private double stepSizeGrowthExponent_ = 0.6D;
540 return ((bitField0_ & 0x00000002) != 0);
554 return stepSizeGrowthExponent_;
569 stepSizeGrowthExponent_ = value;
570 bitField0_ |= 0x00000002;
585 bitField0_ = (bitField0_ & ~0x00000002);
586 stepSizeGrowthExponent_ = 0.6D;
597 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.AdaptiveLinesearchParams();
601 return DEFAULT_INSTANCE;
608 com.google.protobuf.CodedInputStream input,
609 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
610 throws com.google.protobuf.InvalidProtocolBufferException {
613 builder.mergeFrom(input, extensionRegistry);
614 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
615 throw e.setUnfinishedMessage(builder.buildPartial());
616 }
catch (com.google.protobuf.UninitializedMessageException e) {
617 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
618 }
catch (java.io.IOException e) {
619 throw new com.google.protobuf.InvalidProtocolBufferException(e)
620 .setUnfinishedMessage(builder.buildPartial());
622 return builder.buildPartial();
626 public static com.google.protobuf.Parser<AdaptiveLinesearchParams>
parser() {
637 return DEFAULT_INSTANCE;