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