Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
AdaptiveLinesearchParams.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/pdlp/solvers.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.pdlp;
6
16public final class AdaptiveLinesearchParams extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.pdlp.AdaptiveLinesearchParams)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 26,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 AdaptiveLinesearchParams.class.getName());
29 }
30 // Use AdaptiveLinesearchParams.newBuilder() to construct.
31 private AdaptiveLinesearchParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private AdaptiveLinesearchParams() {
35 stepSizeReductionExponent_ = 0.3D;
36 stepSizeGrowthExponent_ = 0.6D;
37 }
38
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
42 }
43
44 @java.lang.Override
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);
50 }
51
52 private int bitField0_;
53 public static final int STEP_SIZE_REDUCTION_EXPONENT_FIELD_NUMBER = 1;
54 private double stepSizeReductionExponent_ = 0.3D;
66 @java.lang.Override
68 return ((bitField0_ & 0x00000001) != 0);
69 }
81 @java.lang.Override
83 return stepSizeReductionExponent_;
84 }
85
86 public static final int STEP_SIZE_GROWTH_EXPONENT_FIELD_NUMBER = 2;
87 private double stepSizeGrowthExponent_ = 0.6D;
98 @java.lang.Override
99 public boolean hasStepSizeGrowthExponent() {
100 return ((bitField0_ & 0x00000002) != 0);
101 }
112 @java.lang.Override
114 return stepSizeGrowthExponent_;
115 }
116
117 private byte memoizedIsInitialized = -1;
118 @java.lang.Override
119 public final boolean isInitialized() {
120 byte isInitialized = memoizedIsInitialized;
121 if (isInitialized == 1) return true;
122 if (isInitialized == 0) return false;
123
124 memoizedIsInitialized = 1;
125 return true;
126 }
127
128 @java.lang.Override
129 public void writeTo(com.google.protobuf.CodedOutputStream output)
130 throws java.io.IOException {
131 if (((bitField0_ & 0x00000001) != 0)) {
132 output.writeDouble(1, stepSizeReductionExponent_);
133 }
134 if (((bitField0_ & 0x00000002) != 0)) {
135 output.writeDouble(2, stepSizeGrowthExponent_);
136 }
137 getUnknownFields().writeTo(output);
138 }
139
140 @java.lang.Override
141 public int getSerializedSize() {
142 int size = memoizedSize;
143 if (size != -1) return size;
144
145 size = 0;
146 if (((bitField0_ & 0x00000001) != 0)) {
147 size += com.google.protobuf.CodedOutputStream
148 .computeDoubleSize(1, stepSizeReductionExponent_);
149 }
150 if (((bitField0_ & 0x00000002) != 0)) {
151 size += com.google.protobuf.CodedOutputStream
152 .computeDoubleSize(2, stepSizeGrowthExponent_);
153 }
154 size += getUnknownFields().getSerializedSize();
155 memoizedSize = size;
156 return size;
157 }
158
159 @java.lang.Override
160 public boolean equals(final java.lang.Object obj) {
161 if (obj == this) {
162 return true;
163 }
164 if (!(obj instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams)) {
165 return super.equals(obj);
166 }
167 com.google.ortools.pdlp.AdaptiveLinesearchParams other = (com.google.ortools.pdlp.AdaptiveLinesearchParams) obj;
168
169 if (hasStepSizeReductionExponent() != other.hasStepSizeReductionExponent()) return false;
171 if (java.lang.Double.doubleToLongBits(getStepSizeReductionExponent())
172 != java.lang.Double.doubleToLongBits(
173 other.getStepSizeReductionExponent())) return false;
174 }
175 if (hasStepSizeGrowthExponent() != other.hasStepSizeGrowthExponent()) return false;
177 if (java.lang.Double.doubleToLongBits(getStepSizeGrowthExponent())
178 != java.lang.Double.doubleToLongBits(
179 other.getStepSizeGrowthExponent())) return false;
180 }
181 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
182 return true;
183 }
184
185 @java.lang.Override
186 public int hashCode() {
187 if (memoizedHashCode != 0) {
188 return memoizedHashCode;
189 }
190 int hash = 41;
191 hash = (19 * hash) + getDescriptor().hashCode();
194 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
195 java.lang.Double.doubleToLongBits(getStepSizeReductionExponent()));
196 }
198 hash = (37 * hash) + STEP_SIZE_GROWTH_EXPONENT_FIELD_NUMBER;
199 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
200 java.lang.Double.doubleToLongBits(getStepSizeGrowthExponent()));
201 }
202 hash = (29 * hash) + getUnknownFields().hashCode();
203 memoizedHashCode = hash;
204 return hash;
205 }
206
208 java.nio.ByteBuffer data)
209 throws com.google.protobuf.InvalidProtocolBufferException {
210 return PARSER.parseFrom(data);
211 }
213 java.nio.ByteBuffer data,
214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
215 throws com.google.protobuf.InvalidProtocolBufferException {
216 return PARSER.parseFrom(data, extensionRegistry);
217 }
219 com.google.protobuf.ByteString data)
220 throws com.google.protobuf.InvalidProtocolBufferException {
221 return PARSER.parseFrom(data);
222 }
224 com.google.protobuf.ByteString data,
225 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
226 throws com.google.protobuf.InvalidProtocolBufferException {
227 return PARSER.parseFrom(data, extensionRegistry);
228 }
230 throws com.google.protobuf.InvalidProtocolBufferException {
231 return PARSER.parseFrom(data);
232 }
234 byte[] data,
235 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
236 throws com.google.protobuf.InvalidProtocolBufferException {
237 return PARSER.parseFrom(data, extensionRegistry);
238 }
239 public static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(java.io.InputStream input)
240 throws java.io.IOException {
241 return com.google.protobuf.GeneratedMessage
242 .parseWithIOException(PARSER, input);
243 }
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);
250 }
251
253 throws java.io.IOException {
254 return com.google.protobuf.GeneratedMessage
255 .parseDelimitedWithIOException(PARSER, input);
256 }
257
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);
264 }
266 com.google.protobuf.CodedInputStream input)
267 throws java.io.IOException {
268 return com.google.protobuf.GeneratedMessage
269 .parseWithIOException(PARSER, input);
270 }
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);
277 }
278
279 @java.lang.Override
280 public Builder newBuilderForType() { return newBuilder(); }
281 public static Builder newBuilder() {
282 return DEFAULT_INSTANCE.toBuilder();
283 }
284 public static Builder newBuilder(com.google.ortools.pdlp.AdaptiveLinesearchParams prototype) {
285 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
286 }
287 @java.lang.Override
289 return this == DEFAULT_INSTANCE
290 ? new Builder() : new Builder().mergeFrom(this);
291 }
292
293 @java.lang.Override
295 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
296 Builder builder = new Builder(parent);
297 return builder;
298 }
308 public static final class Builder extends
309 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
310 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.AdaptiveLinesearchParams)
311 com.google.ortools.pdlp.AdaptiveLinesearchParamsOrBuilder {
312 public static final com.google.protobuf.Descriptors.Descriptor
314 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
315 }
316
317 @java.lang.Override
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);
323 }
324
325 // Construct using com.google.ortools.pdlp.AdaptiveLinesearchParams.newBuilder()
326 private Builder() {
327
328 }
329
330 private Builder(
331 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
332 super(parent);
333
334 }
335 @java.lang.Override
336 public Builder clear() {
337 super.clear();
338 bitField0_ = 0;
339 stepSizeReductionExponent_ = 0.3D;
340 stepSizeGrowthExponent_ = 0.6D;
341 return this;
342 }
343
344 @java.lang.Override
345 public com.google.protobuf.Descriptors.Descriptor
347 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
348 }
349
350 @java.lang.Override
352 return com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance();
353 }
354
355 @java.lang.Override
358 if (!result.isInitialized()) {
359 throw newUninitializedMessageException(result);
360 }
361 return result;
362 }
363
364 @java.lang.Override
366 com.google.ortools.pdlp.AdaptiveLinesearchParams result = new com.google.ortools.pdlp.AdaptiveLinesearchParams(this);
367 if (bitField0_ != 0) { buildPartial0(result); }
368 onBuilt();
369 return result;
370 }
371
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;
378 }
379 if (((from_bitField0_ & 0x00000002) != 0)) {
380 result.stepSizeGrowthExponent_ = stepSizeGrowthExponent_;
381 to_bitField0_ |= 0x00000002;
382 }
383 result.bitField0_ |= to_bitField0_;
384 }
385
386 @java.lang.Override
387 public Builder mergeFrom(com.google.protobuf.Message other) {
388 if (other instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams) {
389 return mergeFrom((com.google.ortools.pdlp.AdaptiveLinesearchParams)other);
390 } else {
391 super.mergeFrom(other);
392 return this;
393 }
394 }
395
396 public Builder mergeFrom(com.google.ortools.pdlp.AdaptiveLinesearchParams other) {
397 if (other == com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance()) return this;
398 if (other.hasStepSizeReductionExponent()) {
399 setStepSizeReductionExponent(other.getStepSizeReductionExponent());
400 }
401 if (other.hasStepSizeGrowthExponent()) {
402 setStepSizeGrowthExponent(other.getStepSizeGrowthExponent());
403 }
404 this.mergeUnknownFields(other.getUnknownFields());
405 onChanged();
406 return this;
407 }
408
409 @java.lang.Override
410 public final boolean isInitialized() {
411 return true;
412 }
413
414 @java.lang.Override
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();
421 }
422 try {
423 boolean done = false;
424 while (!done) {
425 int tag = input.readTag();
426 switch (tag) {
427 case 0:
428 done = true;
429 break;
430 case 9: {
431 stepSizeReductionExponent_ = input.readDouble();
432 bitField0_ |= 0x00000001;
433 break;
434 } // case 9
435 case 17: {
436 stepSizeGrowthExponent_ = input.readDouble();
437 bitField0_ |= 0x00000002;
438 break;
439 } // case 17
440 default: {
441 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
442 done = true; // was an endgroup tag
443 }
444 break;
445 } // default:
446 } // switch (tag)
447 } // while (!done)
448 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
449 throw e.unwrapIOException();
450 } finally {
451 onChanged();
452 } // finally
453 return this;
454 }
455 private int bitField0_;
456
457 private double stepSizeReductionExponent_ = 0.3D;
469 @java.lang.Override
471 return ((bitField0_ & 0x00000001) != 0);
472 }
484 @java.lang.Override
486 return stepSizeReductionExponent_;
487 }
501
502 stepSizeReductionExponent_ = value;
503 bitField0_ |= 0x00000001;
504 onChanged();
505 return this;
506 }
519 bitField0_ = (bitField0_ & ~0x00000001);
520 stepSizeReductionExponent_ = 0.3D;
521 onChanged();
522 return this;
523 }
524
525 private double stepSizeGrowthExponent_ = 0.6D;
536 @java.lang.Override
537 public boolean hasStepSizeGrowthExponent() {
538 return ((bitField0_ & 0x00000002) != 0);
539 }
550 @java.lang.Override
552 return stepSizeGrowthExponent_;
553 }
565 public Builder setStepSizeGrowthExponent(double value) {
566
567 stepSizeGrowthExponent_ = value;
568 bitField0_ |= 0x00000002;
569 onChanged();
570 return this;
571 }
583 bitField0_ = (bitField0_ & ~0x00000002);
584 stepSizeGrowthExponent_ = 0.6D;
585 onChanged();
586 return this;
587 }
588
589 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.AdaptiveLinesearchParams)
590 }
591
592 // @@protoc_insertion_point(class_scope:operations_research.pdlp.AdaptiveLinesearchParams)
593 private static final com.google.ortools.pdlp.AdaptiveLinesearchParams DEFAULT_INSTANCE;
594 static {
595 DEFAULT_INSTANCE = new com.google.ortools.pdlp.AdaptiveLinesearchParams();
596 }
597
599 return DEFAULT_INSTANCE;
600 }
601
602 private static final com.google.protobuf.Parser<AdaptiveLinesearchParams>
603 PARSER = new com.google.protobuf.AbstractParser<AdaptiveLinesearchParams>() {
604 @java.lang.Override
605 public AdaptiveLinesearchParams parsePartialFrom(
606 com.google.protobuf.CodedInputStream input,
607 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
608 throws com.google.protobuf.InvalidProtocolBufferException {
609 Builder builder = newBuilder();
610 try {
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());
619 }
620 return builder.buildPartial();
621 }
622 };
623
624 public static com.google.protobuf.Parser<AdaptiveLinesearchParams> parser() {
625 return PARSER;
626 }
627
628 @java.lang.Override
629 public com.google.protobuf.Parser<AdaptiveLinesearchParams> getParserForType() {
630 return PARSER;
631 }
632
633 @java.lang.Override
637
638}
639
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.pdlp.AdaptiveLinesearchParams getDefaultInstanceForType()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.pdlp.AdaptiveLinesearchParams build()
com.google.ortools.pdlp.AdaptiveLinesearchParams buildPartial()
Builder mergeFrom(com.google.ortools.pdlp.AdaptiveLinesearchParams other)
static com.google.ortools.pdlp.AdaptiveLinesearchParams getDefaultInstance()
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< AdaptiveLinesearchParams > getParserForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.pdlp.AdaptiveLinesearchParams getDefaultInstanceForType()
static Builder newBuilder(com.google.ortools.pdlp.AdaptiveLinesearchParams prototype)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(java.io.InputStream input)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< AdaptiveLinesearchParams > parser()
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(byte[] data)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)