5package com.google.ortools.pdlp;
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
35 stepSizeReductionExponent_ = 0.3D;
36 stepSizeGrowthExponent_ = 0.6D;
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.pdlp.AdaptiveLinesearchParams.class, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder.class);
52 private int bitField0_;
54 private double stepSizeReductionExponent_ = 0.3D;
68 return ((bitField0_ & 0x00000001) != 0);
83 return stepSizeReductionExponent_;
87 private double stepSizeGrowthExponent_ = 0.6D;
100 return ((bitField0_ & 0x00000002) != 0);
114 return stepSizeGrowthExponent_;
117 private byte memoizedIsInitialized = -1;
124 memoizedIsInitialized = 1;
129 public void writeTo(com.google.protobuf.CodedOutputStream output)
130 throws java.io.IOException {
131 if (((bitField0_ & 0x00000001) != 0)) {
132 output.writeDouble(1, stepSizeReductionExponent_);
134 if (((bitField0_ & 0x00000002) != 0)) {
135 output.writeDouble(2, stepSizeGrowthExponent_);
137 getUnknownFields().writeTo(output);
142 int size = memoizedSize;
143 if (size != -1)
return size;
146 if (((bitField0_ & 0x00000001) != 0)) {
147 size += com.google.protobuf.CodedOutputStream
148 .computeDoubleSize(1, stepSizeReductionExponent_);
150 if (((bitField0_ & 0x00000002) != 0)) {
151 size += com.google.protobuf.CodedOutputStream
152 .computeDoubleSize(2, stepSizeGrowthExponent_);
154 size += getUnknownFields().getSerializedSize();
160 public boolean equals(
final java.lang.Object obj) {
164 if (!(obj instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams)) {
165 return super.equals(obj);
172 != java.lang.Double.doubleToLongBits(
178 != java.lang.Double.doubleToLongBits(
181 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
187 if (memoizedHashCode != 0) {
188 return memoizedHashCode;
194 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
199 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
202 hash = (29 * hash) + getUnknownFields().hashCode();
203 memoizedHashCode = hash;
208 java.nio.ByteBuffer data)
209 throws com.google.protobuf.InvalidProtocolBufferException {
210 return PARSER.parseFrom(data);
213 java.nio.ByteBuffer data,
214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
215 throws com.google.protobuf.InvalidProtocolBufferException {
216 return PARSER.parseFrom(data, extensionRegistry);
219 com.google.protobuf.ByteString data)
220 throws com.google.protobuf.InvalidProtocolBufferException {
221 return PARSER.parseFrom(data);
224 com.google.protobuf.ByteString data,
225 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
226 throws com.google.protobuf.InvalidProtocolBufferException {
227 return PARSER.parseFrom(data, extensionRegistry);
230 throws com.google.protobuf.InvalidProtocolBufferException {
231 return PARSER.parseFrom(data);
235 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
236 throws com.google.protobuf.InvalidProtocolBufferException {
237 return PARSER.parseFrom(data, extensionRegistry);
240 throws java.io.IOException {
241 return com.google.protobuf.GeneratedMessage
242 .parseWithIOException(PARSER, input);
245 java.io.InputStream input,
246 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
247 throws java.io.IOException {
248 return com.google.protobuf.GeneratedMessage
249 .parseWithIOException(PARSER, input, extensionRegistry);
253 throws java.io.IOException {
254 return com.google.protobuf.GeneratedMessage
255 .parseDelimitedWithIOException(PARSER, input);
259 java.io.InputStream input,
260 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
261 throws java.io.IOException {
262 return com.google.protobuf.GeneratedMessage
263 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
266 com.google.protobuf.CodedInputStream input)
267 throws java.io.IOException {
268 return com.google.protobuf.GeneratedMessage
269 .parseWithIOException(PARSER, input);
272 com.google.protobuf.CodedInputStream input,
273 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
274 throws java.io.IOException {
275 return com.google.protobuf.GeneratedMessage
276 .parseWithIOException(PARSER, input, extensionRegistry);
289 return this == DEFAULT_INSTANCE
295 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
309 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
312 public static final com.google.protobuf.Descriptors.Descriptor
314 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
318 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
320 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_fieldAccessorTable
321 .ensureFieldAccessorsInitialized(
322 com.google.ortools.pdlp.AdaptiveLinesearchParams.class, com.google.ortools.pdlp.AdaptiveLinesearchParams.Builder.class);
331 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
339 stepSizeReductionExponent_ = 0.3D;
340 stepSizeGrowthExponent_ = 0.6D;
345 public com.google.protobuf.Descriptors.Descriptor
347 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
352 return com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance();
359 throw newUninitializedMessageException(result);
367 if (bitField0_ != 0) { buildPartial0(result); }
372 private void buildPartial0(com.google.ortools.pdlp.AdaptiveLinesearchParams result) {
373 int from_bitField0_ = bitField0_;
374 int to_bitField0_ = 0;
375 if (((from_bitField0_ & 0x00000001) != 0)) {
376 result.stepSizeReductionExponent_ = stepSizeReductionExponent_;
377 to_bitField0_ |= 0x00000001;
379 if (((from_bitField0_ & 0x00000002) != 0)) {
380 result.stepSizeGrowthExponent_ = stepSizeGrowthExponent_;
381 to_bitField0_ |= 0x00000002;
383 result.bitField0_ |= to_bitField0_;
388 if (other instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams) {
389 return mergeFrom((com.google.ortools.pdlp.AdaptiveLinesearchParams)other);
391 super.mergeFrom(other);
397 if (other == com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance())
return this;
398 if (other.hasStepSizeReductionExponent()) {
401 if (other.hasStepSizeGrowthExponent()) {
404 this.mergeUnknownFields(other.getUnknownFields());
416 com.google.protobuf.CodedInputStream input,
417 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
418 throws java.io.IOException {
419 if (extensionRegistry ==
null) {
420 throw new java.lang.NullPointerException();
423 boolean done =
false;
425 int tag = input.readTag();
431 stepSizeReductionExponent_ = input.readDouble();
432 bitField0_ |= 0x00000001;
436 stepSizeGrowthExponent_ = input.readDouble();
437 bitField0_ |= 0x00000002;
441 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
448 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
449 throw e.unwrapIOException();
455 private int bitField0_;
457 private double stepSizeReductionExponent_ = 0.3D;
471 return ((bitField0_ & 0x00000001) != 0);
486 return stepSizeReductionExponent_;
502 stepSizeReductionExponent_ = value;
503 bitField0_ |= 0x00000001;
519 bitField0_ = (bitField0_ & ~0x00000001);
520 stepSizeReductionExponent_ = 0.3D;
525 private double stepSizeGrowthExponent_ = 0.6D;
538 return ((bitField0_ & 0x00000002) != 0);
552 return stepSizeGrowthExponent_;
567 stepSizeGrowthExponent_ = value;
568 bitField0_ |= 0x00000002;
583 bitField0_ = (bitField0_ & ~0x00000002);
584 stepSizeGrowthExponent_ = 0.6D;
595 DEFAULT_INSTANCE =
new com.google.ortools.pdlp.AdaptiveLinesearchParams();
599 return DEFAULT_INSTANCE;
606 com.google.protobuf.CodedInputStream input,
607 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
608 throws com.google.protobuf.InvalidProtocolBufferException {
611 builder.mergeFrom(input, extensionRegistry);
612 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
613 throw e.setUnfinishedMessage(builder.buildPartial());
614 }
catch (com.google.protobuf.UninitializedMessageException e) {
615 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
616 }
catch (java.io.IOException e) {
617 throw new com.google.protobuf.InvalidProtocolBufferException(e)
618 .setUnfinishedMessage(builder.buildPartial());
620 return builder.buildPartial();
635 return DEFAULT_INSTANCE;