Google OR-Tools v9.12
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// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solvers.proto
4// Protobuf Java Version: 4.29.3
5
6package com.google.ortools.pdlp;
7
17public final class AdaptiveLinesearchParams extends
18 com.google.protobuf.GeneratedMessage implements
19 // @@protoc_insertion_point(message_implements:operations_research.pdlp.AdaptiveLinesearchParams)
21private static final long serialVersionUID = 0L;
22 static {
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
25 /* major= */ 4,
26 /* minor= */ 29,
27 /* patch= */ 3,
28 /* suffix= */ "",
29 AdaptiveLinesearchParams.class.getName());
30 }
31 // Use AdaptiveLinesearchParams.newBuilder() to construct.
32 private AdaptiveLinesearchParams(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 super(builder);
34 }
35 private AdaptiveLinesearchParams() {
36 stepSizeReductionExponent_ = 0.3D;
37 stepSizeGrowthExponent_ = 0.6D;
38 }
39
40 public static final com.google.protobuf.Descriptors.Descriptor
42 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
43 }
44
45 @java.lang.Override
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);
51 }
52
53 private int bitField0_;
54 public static final int STEP_SIZE_REDUCTION_EXPONENT_FIELD_NUMBER = 1;
55 private double stepSizeReductionExponent_ = 0.3D;
67 @java.lang.Override
69 return ((bitField0_ & 0x00000001) != 0);
70 }
71
82 @java.lang.Override
84 return stepSizeReductionExponent_;
85 }
86
87 public static final int STEP_SIZE_GROWTH_EXPONENT_FIELD_NUMBER = 2;
88 private double stepSizeGrowthExponent_ = 0.6D;
99 @java.lang.Override
100 public boolean hasStepSizeGrowthExponent() {
101 return ((bitField0_ & 0x00000002) != 0);
102 }
103
113 @java.lang.Override
115 return stepSizeGrowthExponent_;
116 }
117
118 private byte memoizedIsInitialized = -1;
119 @java.lang.Override
120 public final boolean isInitialized() {
121 byte isInitialized = memoizedIsInitialized;
122 if (isInitialized == 1) return true;
123 if (isInitialized == 0) return false;
124
125 memoizedIsInitialized = 1;
126 return true;
127 }
128
129 @java.lang.Override
130 public void writeTo(com.google.protobuf.CodedOutputStream output)
131 throws java.io.IOException {
132 if (((bitField0_ & 0x00000001) != 0)) {
133 output.writeDouble(1, stepSizeReductionExponent_);
134 }
135 if (((bitField0_ & 0x00000002) != 0)) {
136 output.writeDouble(2, stepSizeGrowthExponent_);
137 }
138 getUnknownFields().writeTo(output);
139 }
140
141 @java.lang.Override
142 public int getSerializedSize() {
143 int size = memoizedSize;
144 if (size != -1) return size;
145
146 size = 0;
147 if (((bitField0_ & 0x00000001) != 0)) {
148 size += com.google.protobuf.CodedOutputStream
149 .computeDoubleSize(1, stepSizeReductionExponent_);
150 }
151 if (((bitField0_ & 0x00000002) != 0)) {
152 size += com.google.protobuf.CodedOutputStream
153 .computeDoubleSize(2, stepSizeGrowthExponent_);
154 }
155 size += getUnknownFields().getSerializedSize();
156 memoizedSize = size;
157 return size;
158 }
159
160 @java.lang.Override
161 public boolean equals(final java.lang.Object obj) {
162 if (obj == this) {
163 return true;
164 }
165 if (!(obj instanceof com.google.ortools.pdlp.AdaptiveLinesearchParams)) {
166 return super.equals(obj);
167 }
168 com.google.ortools.pdlp.AdaptiveLinesearchParams other = (com.google.ortools.pdlp.AdaptiveLinesearchParams) obj;
169
170 if (hasStepSizeReductionExponent() != other.hasStepSizeReductionExponent()) return false;
172 if (java.lang.Double.doubleToLongBits(getStepSizeReductionExponent())
173 != java.lang.Double.doubleToLongBits(
174 other.getStepSizeReductionExponent())) return false;
175 }
176 if (hasStepSizeGrowthExponent() != other.hasStepSizeGrowthExponent()) return false;
178 if (java.lang.Double.doubleToLongBits(getStepSizeGrowthExponent())
179 != java.lang.Double.doubleToLongBits(
180 other.getStepSizeGrowthExponent())) return false;
181 }
182 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
183 return true;
184 }
185
186 @java.lang.Override
187 public int hashCode() {
188 if (memoizedHashCode != 0) {
189 return memoizedHashCode;
190 }
191 int hash = 41;
192 hash = (19 * hash) + getDescriptor().hashCode();
195 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
196 java.lang.Double.doubleToLongBits(getStepSizeReductionExponent()));
197 }
199 hash = (37 * hash) + STEP_SIZE_GROWTH_EXPONENT_FIELD_NUMBER;
200 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
201 java.lang.Double.doubleToLongBits(getStepSizeGrowthExponent()));
202 }
203 hash = (29 * hash) + getUnknownFields().hashCode();
204 memoizedHashCode = hash;
205 return hash;
206 }
207
209 java.nio.ByteBuffer data)
210 throws com.google.protobuf.InvalidProtocolBufferException {
211 return PARSER.parseFrom(data);
212 }
214 java.nio.ByteBuffer data,
215 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
216 throws com.google.protobuf.InvalidProtocolBufferException {
217 return PARSER.parseFrom(data, extensionRegistry);
218 }
220 com.google.protobuf.ByteString data)
221 throws com.google.protobuf.InvalidProtocolBufferException {
222 return PARSER.parseFrom(data);
223 }
225 com.google.protobuf.ByteString data,
226 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227 throws com.google.protobuf.InvalidProtocolBufferException {
228 return PARSER.parseFrom(data, extensionRegistry);
229 }
231 throws com.google.protobuf.InvalidProtocolBufferException {
232 return PARSER.parseFrom(data);
233 }
235 byte[] data,
236 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws com.google.protobuf.InvalidProtocolBufferException {
238 return PARSER.parseFrom(data, extensionRegistry);
239 }
240 public static com.google.ortools.pdlp.AdaptiveLinesearchParams parseFrom(java.io.InputStream input)
241 throws java.io.IOException {
242 return com.google.protobuf.GeneratedMessage
243 .parseWithIOException(PARSER, input);
244 }
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);
251 }
252
254 throws java.io.IOException {
255 return com.google.protobuf.GeneratedMessage
256 .parseDelimitedWithIOException(PARSER, input);
257 }
258
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);
265 }
267 com.google.protobuf.CodedInputStream input)
268 throws java.io.IOException {
269 return com.google.protobuf.GeneratedMessage
270 .parseWithIOException(PARSER, input);
271 }
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);
278 }
279
280 @java.lang.Override
281 public Builder newBuilderForType() { return newBuilder(); }
282 public static Builder newBuilder() {
283 return DEFAULT_INSTANCE.toBuilder();
284 }
285 public static Builder newBuilder(com.google.ortools.pdlp.AdaptiveLinesearchParams prototype) {
286 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
287 }
288 @java.lang.Override
290 return this == DEFAULT_INSTANCE
291 ? new Builder() : new Builder().mergeFrom(this);
292 }
293
294 @java.lang.Override
296 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
297 Builder builder = new Builder(parent);
298 return builder;
299 }
300
309 public static final class Builder extends
310 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
311 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.AdaptiveLinesearchParams)
313 public static final com.google.protobuf.Descriptors.Descriptor
315 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
316 }
317
318 @java.lang.Override
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);
324 }
325
326 // Construct using com.google.ortools.pdlp.AdaptiveLinesearchParams.newBuilder()
327 private Builder() {
328
329 }
330
331 private Builder(
332 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
333 super(parent);
334
335 }
336 @java.lang.Override
337 public Builder clear() {
338 super.clear();
339 bitField0_ = 0;
340 stepSizeReductionExponent_ = 0.3D;
341 stepSizeGrowthExponent_ = 0.6D;
342 return this;
343 }
344
345 @java.lang.Override
346 public com.google.protobuf.Descriptors.Descriptor
348 return com.google.ortools.pdlp.Solvers.internal_static_operations_research_pdlp_AdaptiveLinesearchParams_descriptor;
349 }
350
351 @java.lang.Override
353 return com.google.ortools.pdlp.AdaptiveLinesearchParams.getDefaultInstance();
354 }
355
356 @java.lang.Override
359 if (!result.isInitialized()) {
360 throw newUninitializedMessageException(result);
361 }
362 return result;
363 }
364
365 @java.lang.Override
367 com.google.ortools.pdlp.AdaptiveLinesearchParams result = new com.google.ortools.pdlp.AdaptiveLinesearchParams(this);
368 if (bitField0_ != 0) { buildPartial0(result); }
369 onBuilt();
370 return result;
371 }
372
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;
379 }
380 if (((from_bitField0_ & 0x00000002) != 0)) {
381 result.stepSizeGrowthExponent_ = stepSizeGrowthExponent_;
382 to_bitField0_ |= 0x00000002;
383 }
384 result.bitField0_ |= to_bitField0_;
385 }
386
387 @java.lang.Override
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);
391 } else {
392 super.mergeFrom(other);
393 return this;
394 }
395 }
396
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()) {
400 setStepSizeReductionExponent(other.getStepSizeReductionExponent());
401 }
402 if (other.hasStepSizeGrowthExponent()) {
403 setStepSizeGrowthExponent(other.getStepSizeGrowthExponent());
404 }
405 this.mergeUnknownFields(other.getUnknownFields());
406 onChanged();
407 return this;
408 }
409
410 @java.lang.Override
411 public final boolean isInitialized() {
412 return true;
413 }
414
415 @java.lang.Override
416 public Builder mergeFrom(
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();
422 }
423 try {
424 boolean done = false;
425 while (!done) {
426 int tag = input.readTag();
427 switch (tag) {
428 case 0:
429 done = true;
430 break;
431 case 9: {
432 stepSizeReductionExponent_ = input.readDouble();
433 bitField0_ |= 0x00000001;
434 break;
435 } // case 9
436 case 17: {
437 stepSizeGrowthExponent_ = input.readDouble();
438 bitField0_ |= 0x00000002;
439 break;
440 } // case 17
441 default: {
442 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
443 done = true; // was an endgroup tag
444 }
445 break;
446 } // default:
447 } // switch (tag)
448 } // while (!done)
449 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
450 throw e.unwrapIOException();
451 } finally {
452 onChanged();
453 } // finally
454 return this;
455 }
456 private int bitField0_;
457
458 private double stepSizeReductionExponent_ = 0.3D;
470 @java.lang.Override
472 return ((bitField0_ & 0x00000001) != 0);
473 }
474
485 @java.lang.Override
487 return stepSizeReductionExponent_;
488 }
489
501 public Builder setStepSizeReductionExponent(double value) {
502
503 stepSizeReductionExponent_ = value;
504 bitField0_ |= 0x00000001;
505 onChanged();
506 return this;
507 }
508
520 bitField0_ = (bitField0_ & ~0x00000001);
521 stepSizeReductionExponent_ = 0.3D;
522 onChanged();
523 return this;
524 }
525
526 private double stepSizeGrowthExponent_ = 0.6D;
537 @java.lang.Override
538 public boolean hasStepSizeGrowthExponent() {
539 return ((bitField0_ & 0x00000002) != 0);
540 }
541
551 @java.lang.Override
553 return stepSizeGrowthExponent_;
554 }
555
566 public Builder setStepSizeGrowthExponent(double value) {
567
568 stepSizeGrowthExponent_ = value;
569 bitField0_ |= 0x00000002;
570 onChanged();
571 return this;
572 }
573
584 bitField0_ = (bitField0_ & ~0x00000002);
585 stepSizeGrowthExponent_ = 0.6D;
586 onChanged();
587 return this;
588 }
589
590 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.AdaptiveLinesearchParams)
591 }
592
593 // @@protoc_insertion_point(class_scope:operations_research.pdlp.AdaptiveLinesearchParams)
594 private static final com.google.ortools.pdlp.AdaptiveLinesearchParams DEFAULT_INSTANCE;
595 static {
596 DEFAULT_INSTANCE = new com.google.ortools.pdlp.AdaptiveLinesearchParams();
597 }
598
600 return DEFAULT_INSTANCE;
601 }
602
603 private static final com.google.protobuf.Parser<AdaptiveLinesearchParams>
604 PARSER = new com.google.protobuf.AbstractParser<AdaptiveLinesearchParams>() {
605 @java.lang.Override
606 public AdaptiveLinesearchParams parsePartialFrom(
607 com.google.protobuf.CodedInputStream input,
608 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
609 throws com.google.protobuf.InvalidProtocolBufferException {
610 Builder builder = newBuilder();
611 try {
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());
620 }
621 return builder.buildPartial();
622 }
623 };
624
625 public static com.google.protobuf.Parser<AdaptiveLinesearchParams> parser() {
626 return PARSER;
627 }
628
629 @java.lang.Override
630 public com.google.protobuf.Parser<AdaptiveLinesearchParams> getParserForType() {
631 return PARSER;
632 }
633
634 @java.lang.Override
638
639}
640
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)