5package com.google.ortools.bop;
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 methods_ = java.util.Collections.emptyList();
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopSolverOptimizerSet_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopSolverOptimizerSet_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.bop.BopSolverOptimizerSet.class, com.google.ortools.bop.BopSolverOptimizerSet.Builder.class);
52 @SuppressWarnings(
"serial")
65 public java.util.List<? extends com.google.ortools.bop.BopOptimizerMethodOrBuilder>
74 return methods_.size();
81 return methods_.get(index);
89 return methods_.get(index);
92 private byte memoizedIsInitialized = -1;
99 memoizedIsInitialized = 1;
104 public void writeTo(com.google.protobuf.CodedOutputStream output)
105 throws java.io.IOException {
106 for (
int i = 0; i < methods_.size(); i++) {
107 output.writeMessage(1, methods_.get(i));
109 getUnknownFields().writeTo(output);
114 int size = memoizedSize;
115 if (size != -1)
return size;
118 for (
int i = 0; i < methods_.size(); i++) {
119 size += com.google.protobuf.CodedOutputStream
120 .computeMessageSize(1, methods_.get(i));
122 size += getUnknownFields().getSerializedSize();
128 public boolean equals(
final java.lang.Object obj) {
132 if (!(obj instanceof com.google.ortools.bop.BopSolverOptimizerSet)) {
133 return super.equals(obj);
139 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
145 if (memoizedHashCode != 0) {
146 return memoizedHashCode;
154 hash = (29 * hash) + getUnknownFields().hashCode();
155 memoizedHashCode = hash;
160 java.nio.ByteBuffer data)
161 throws com.google.protobuf.InvalidProtocolBufferException {
162 return PARSER.parseFrom(data);
165 java.nio.ByteBuffer data,
166 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
167 throws com.google.protobuf.InvalidProtocolBufferException {
168 return PARSER.parseFrom(data, extensionRegistry);
171 com.google.protobuf.ByteString data)
172 throws com.google.protobuf.InvalidProtocolBufferException {
173 return PARSER.parseFrom(data);
176 com.google.protobuf.ByteString data,
177 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
178 throws com.google.protobuf.InvalidProtocolBufferException {
179 return PARSER.parseFrom(data, extensionRegistry);
182 throws com.google.protobuf.InvalidProtocolBufferException {
183 return PARSER.parseFrom(data);
187 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
188 throws com.google.protobuf.InvalidProtocolBufferException {
189 return PARSER.parseFrom(data, extensionRegistry);
192 throws java.io.IOException {
193 return com.google.protobuf.GeneratedMessage
194 .parseWithIOException(PARSER, input);
197 java.io.InputStream input,
198 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
199 throws java.io.IOException {
200 return com.google.protobuf.GeneratedMessage
201 .parseWithIOException(PARSER, input, extensionRegistry);
205 throws java.io.IOException {
206 return com.google.protobuf.GeneratedMessage
207 .parseDelimitedWithIOException(PARSER, input);
211 java.io.InputStream input,
212 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
213 throws java.io.IOException {
214 return com.google.protobuf.GeneratedMessage
215 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
218 com.google.protobuf.CodedInputStream input)
219 throws java.io.IOException {
220 return com.google.protobuf.GeneratedMessage
221 .parseWithIOException(PARSER, input);
224 com.google.protobuf.CodedInputStream input,
225 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
226 throws java.io.IOException {
227 return com.google.protobuf.GeneratedMessage
228 .parseWithIOException(PARSER, input, extensionRegistry);
241 return this == DEFAULT_INSTANCE
247 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
261 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
264 public static final com.google.protobuf.Descriptors.Descriptor
266 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopSolverOptimizerSet_descriptor;
270 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
272 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopSolverOptimizerSet_fieldAccessorTable
273 .ensureFieldAccessorsInitialized(
274 com.google.ortools.bop.BopSolverOptimizerSet.class, com.google.ortools.bop.BopSolverOptimizerSet.Builder.class);
283 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
291 if (methodsBuilder_ ==
null) {
292 methods_ = java.util.Collections.emptyList();
295 methodsBuilder_.clear();
297 bitField0_ = (bitField0_ & ~0x00000001);
302 public com.google.protobuf.Descriptors.Descriptor
304 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopSolverOptimizerSet_descriptor;
309 return com.google.ortools.bop.BopSolverOptimizerSet.getDefaultInstance();
316 throw newUninitializedMessageException(result);
324 buildPartialRepeatedFields(result);
325 if (bitField0_ != 0) { buildPartial0(result); }
330 private void buildPartialRepeatedFields(com.google.ortools.bop.BopSolverOptimizerSet result) {
331 if (methodsBuilder_ ==
null) {
332 if (((bitField0_ & 0x00000001) != 0)) {
333 methods_ = java.util.Collections.unmodifiableList(methods_);
334 bitField0_ = (bitField0_ & ~0x00000001);
336 result.methods_ = methods_;
338 result.methods_ = methodsBuilder_.build();
342 private void buildPartial0(com.google.ortools.bop.BopSolverOptimizerSet result) {
343 int from_bitField0_ = bitField0_;
348 if (other instanceof com.google.ortools.bop.BopSolverOptimizerSet) {
349 return mergeFrom((com.google.ortools.bop.BopSolverOptimizerSet)other);
351 super.mergeFrom(other);
357 if (other == com.google.ortools.bop.BopSolverOptimizerSet.getDefaultInstance())
return this;
358 if (methodsBuilder_ ==
null) {
359 if (!other.methods_.isEmpty()) {
360 if (methods_.isEmpty()) {
361 methods_ = other.methods_;
362 bitField0_ = (bitField0_ & ~0x00000001);
364 ensureMethodsIsMutable();
365 methods_.addAll(other.methods_);
370 if (!other.methods_.isEmpty()) {
371 if (methodsBuilder_.isEmpty()) {
372 methodsBuilder_.dispose();
373 methodsBuilder_ =
null;
374 methods_ = other.methods_;
375 bitField0_ = (bitField0_ & ~0x00000001);
377 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
378 getMethodsFieldBuilder() :
null;
380 methodsBuilder_.addAllMessages(other.methods_);
384 this.mergeUnknownFields(other.getUnknownFields());
396 com.google.protobuf.CodedInputStream input,
397 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
398 throws java.io.IOException {
399 if (extensionRegistry ==
null) {
400 throw new java.lang.NullPointerException();
403 boolean done =
false;
405 int tag = input.readTag();
413 com.google.ortools.bop.BopOptimizerMethod.parser(),
415 if (methodsBuilder_ ==
null) {
416 ensureMethodsIsMutable();
419 methodsBuilder_.addMessage(m);
424 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
431 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
432 throw e.unwrapIOException();
438 private int bitField0_;
440 private java.util.List<com.google.ortools.bop.BopOptimizerMethod> methods_ =
441 java.util.Collections.emptyList();
442 private void ensureMethodsIsMutable() {
443 if (!((bitField0_ & 0x00000001) != 0)) {
444 methods_ =
new java.util.ArrayList<com.google.ortools.bop.BopOptimizerMethod>(methods_);
445 bitField0_ |= 0x00000001;
449 private com.google.protobuf.RepeatedFieldBuilder<
450 com.google.ortools.bop.BopOptimizerMethod, com.google.ortools.bop.BopOptimizerMethod.Builder, com.google.ortools.bop.BopOptimizerMethodOrBuilder> methodsBuilder_;
455 public java.util.List<com.google.ortools.bop.BopOptimizerMethod>
getMethodsList() {
456 if (methodsBuilder_ ==
null) {
457 return java.util.Collections.unmodifiableList(methods_);
459 return methodsBuilder_.getMessageList();
466 if (methodsBuilder_ ==
null) {
467 return methods_.size();
469 return methodsBuilder_.getCount();
476 if (methodsBuilder_ ==
null) {
477 return methods_.get(index);
479 return methodsBuilder_.getMessage(index);
486 int index, com.google.ortools.bop.BopOptimizerMethod value) {
487 if (methodsBuilder_ ==
null) {
489 throw new NullPointerException();
491 ensureMethodsIsMutable();
492 methods_.set(index, value);
495 methodsBuilder_.setMessage(index, value);
503 int index, com.google.ortools.bop.BopOptimizerMethod.Builder builderForValue) {
504 if (methodsBuilder_ ==
null) {
505 ensureMethodsIsMutable();
506 methods_.set(index, builderForValue.build());
509 methodsBuilder_.setMessage(index, builderForValue.build());
517 if (methodsBuilder_ ==
null) {
519 throw new NullPointerException();
521 ensureMethodsIsMutable();
525 methodsBuilder_.addMessage(value);
533 int index, com.google.ortools.bop.BopOptimizerMethod value) {
534 if (methodsBuilder_ ==
null) {
536 throw new NullPointerException();
538 ensureMethodsIsMutable();
539 methods_.add(index, value);
542 methodsBuilder_.addMessage(index, value);
550 com.google.ortools.bop.BopOptimizerMethod.Builder builderForValue) {
551 if (methodsBuilder_ ==
null) {
552 ensureMethodsIsMutable();
553 methods_.add(builderForValue.build());
556 methodsBuilder_.addMessage(builderForValue.build());
564 int index, com.google.ortools.bop.BopOptimizerMethod.Builder builderForValue) {
565 if (methodsBuilder_ ==
null) {
566 ensureMethodsIsMutable();
567 methods_.add(index, builderForValue.build());
570 methodsBuilder_.addMessage(index, builderForValue.build());
578 java.lang.Iterable<? extends com.google.ortools.bop.BopOptimizerMethod> values) {
579 if (methodsBuilder_ ==
null) {
580 ensureMethodsIsMutable();
581 com.google.protobuf.AbstractMessageLite.Builder.addAll(
585 methodsBuilder_.addAllMessages(values);
593 if (methodsBuilder_ ==
null) {
594 methods_ = java.util.Collections.emptyList();
595 bitField0_ = (bitField0_ & ~0x00000001);
598 methodsBuilder_.clear();
606 if (methodsBuilder_ ==
null) {
607 ensureMethodsIsMutable();
608 methods_.remove(index);
611 methodsBuilder_.remove(index);
620 return getMethodsFieldBuilder().getBuilder(index);
627 if (methodsBuilder_ ==
null) {
628 return methods_.get(index); }
else {
629 return methodsBuilder_.getMessageOrBuilder(index);
635 public java.util.List<? extends com.google.ortools.bop.BopOptimizerMethodOrBuilder>
637 if (methodsBuilder_ !=
null) {
638 return methodsBuilder_.getMessageOrBuilderList();
640 return java.util.Collections.unmodifiableList(methods_);
647 return getMethodsFieldBuilder().addBuilder(
648 com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance());
655 return getMethodsFieldBuilder().addBuilder(
656 index, com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance());
661 public java.util.List<com.google.ortools.bop.BopOptimizerMethod.Builder>
663 return getMethodsFieldBuilder().getBuilderList();
665 private com.google.protobuf.RepeatedFieldBuilder<
666 com.google.ortools.bop.BopOptimizerMethod, com.google.ortools.bop.BopOptimizerMethod.Builder, com.google.ortools.bop.BopOptimizerMethodOrBuilder>
667 getMethodsFieldBuilder() {
668 if (methodsBuilder_ ==
null) {
669 methodsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
670 com.google.ortools.bop.BopOptimizerMethod, com.google.ortools.bop.BopOptimizerMethod.Builder, com.google.ortools.bop.BopOptimizerMethodOrBuilder>(
672 ((bitField0_ & 0x00000001) != 0),
673 getParentForChildren(),
677 return methodsBuilder_;
686 DEFAULT_INSTANCE =
new com.google.ortools.bop.BopSolverOptimizerSet();
690 return DEFAULT_INSTANCE;
697 com.google.protobuf.CodedInputStream input,
698 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
699 throws com.google.protobuf.InvalidProtocolBufferException {
702 builder.mergeFrom(input, extensionRegistry);
703 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
704 throw e.setUnfinishedMessage(builder.buildPartial());
705 }
catch (com.google.protobuf.UninitializedMessageException e) {
706 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
707 }
catch (java.io.IOException e) {
708 throw new com.google.protobuf.InvalidProtocolBufferException(e)
709 .setUnfinishedMessage(builder.buildPartial());
711 return builder.buildPartial();
726 return DEFAULT_INSTANCE;