6package com.google.ortools.sat;
15public final class BoolArgumentProto
extends
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 BoolArgumentProto.class.getName());
30 private BoolArgumentProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private BoolArgumentProto() {
34 literals_ = emptyIntList();
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_BoolArgumentProto_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_BoolArgumentProto_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.sat.BoolArgumentProto.class, com.google.ortools.sat.BoolArgumentProto.Builder.class);
51 @SuppressWarnings(
"serial")
52 private com.google.protobuf.Internal.IntList literals_ =
59 public java.
util.List<java.lang.Integer>
68 return literals_.size();
76 return literals_.getInt(index);
78 private int literalsMemoizedSerializedSize = -1;
80 private byte memoizedIsInitialized = -1;
87 memoizedIsInitialized = 1;
92 public void writeTo(com.google.protobuf.CodedOutputStream output)
93 throws java.io.IOException {
96 output.writeUInt32NoTag(10);
97 output.writeUInt32NoTag(literalsMemoizedSerializedSize);
99 for (
int i = 0; i < literals_.size(); i++) {
100 output.writeInt32NoTag(literals_.getInt(i));
102 getUnknownFields().writeTo(output);
107 int size = memoizedSize;
108 if (size != -1)
return size;
113 for (
int i = 0; i < literals_.size(); i++) {
114 dataSize += com.google.protobuf.CodedOutputStream
115 .computeInt32SizeNoTag(literals_.getInt(i));
120 size += com.google.protobuf.CodedOutputStream
121 .computeInt32SizeNoTag(dataSize);
123 literalsMemoizedSerializedSize = dataSize;
125 size += getUnknownFields().getSerializedSize();
131 public boolean equals(
final java.lang.Object obj) {
135 if (!(obj instanceof com.google.ortools.sat.BoolArgumentProto)) {
136 return super.equals(obj);
142 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
148 if (memoizedHashCode != 0) {
149 return memoizedHashCode;
157 hash = (29 * hash) + getUnknownFields().hashCode();
158 memoizedHashCode = hash;
163 java.nio.ByteBuffer data)
164 throws com.google.protobuf.InvalidProtocolBufferException {
165 return PARSER.parseFrom(data);
168 java.nio.ByteBuffer data,
169 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
170 throws com.google.protobuf.InvalidProtocolBufferException {
171 return PARSER.parseFrom(data, extensionRegistry);
174 com.google.protobuf.ByteString data)
175 throws com.google.protobuf.InvalidProtocolBufferException {
176 return PARSER.parseFrom(data);
179 com.google.protobuf.ByteString data,
180 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
181 throws com.google.protobuf.InvalidProtocolBufferException {
182 return PARSER.parseFrom(data, extensionRegistry);
185 throws com.google.protobuf.InvalidProtocolBufferException {
186 return PARSER.parseFrom(data);
190 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
191 throws com.google.protobuf.InvalidProtocolBufferException {
192 return PARSER.parseFrom(data, extensionRegistry);
195 throws java.io.IOException {
196 return com.google.protobuf.GeneratedMessage
197 .parseWithIOException(PARSER, input);
200 java.io.InputStream input,
201 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
202 throws java.io.IOException {
203 return com.google.protobuf.GeneratedMessage
204 .parseWithIOException(PARSER, input, extensionRegistry);
208 throws java.io.IOException {
209 return com.google.protobuf.GeneratedMessage
210 .parseDelimitedWithIOException(PARSER, input);
214 java.io.InputStream input,
215 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
216 throws java.io.IOException {
217 return com.google.protobuf.GeneratedMessage
218 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
221 com.google.protobuf.CodedInputStream input)
222 throws java.io.IOException {
223 return com.google.protobuf.GeneratedMessage
224 .parseWithIOException(PARSER, input);
227 com.google.protobuf.CodedInputStream input,
228 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
229 throws java.io.IOException {
230 return com.google.protobuf.GeneratedMessage
231 .parseWithIOException(PARSER, input, extensionRegistry);
237 return DEFAULT_INSTANCE.toBuilder();
240 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
244 return this == DEFAULT_INSTANCE
250 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
261 public static final class Builder
extends
262 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
265 public static final com.google.protobuf.Descriptors.Descriptor
267 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_BoolArgumentProto_descriptor;
271 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
273 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_BoolArgumentProto_fieldAccessorTable
274 .ensureFieldAccessorsInitialized(
275 com.google.ortools.sat.BoolArgumentProto.class, com.google.ortools.sat.BoolArgumentProto.Builder.class);
284 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
292 literals_ = emptyIntList();
297 public com.google.protobuf.Descriptors.Descriptor
299 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_BoolArgumentProto_descriptor;
304 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
311 throw newUninitializedMessageException(result);
319 if (bitField0_ != 0) { buildPartial0(result); }
324 private void buildPartial0(com.google.ortools.sat.BoolArgumentProto result) {
325 int from_bitField0_ = bitField0_;
326 if (((from_bitField0_ & 0x00000001) != 0)) {
327 literals_.makeImmutable();
328 result.literals_ = literals_;
333 public Builder
mergeFrom(com.google.protobuf.Message other) {
334 if (other instanceof com.google.ortools.sat.BoolArgumentProto) {
335 return mergeFrom((com.google.ortools.sat.BoolArgumentProto)other);
337 super.mergeFrom(other);
342 public Builder
mergeFrom(com.google.ortools.sat.BoolArgumentProto other) {
343 if (other == com.google.ortools.sat.BoolArgumentProto.getDefaultInstance())
return this;
344 if (!other.literals_.isEmpty()) {
345 if (literals_.isEmpty()) {
346 literals_ = other.literals_;
347 literals_.makeImmutable();
348 bitField0_ |= 0x00000001;
350 ensureLiteralsIsMutable();
351 literals_.addAll(other.literals_);
355 this.mergeUnknownFields(other.getUnknownFields());
367 com.google.protobuf.CodedInputStream input,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws java.io.IOException {
370 if (extensionRegistry ==
null) {
371 throw new java.lang.NullPointerException();
374 boolean done =
false;
376 int tag = input.readTag();
382 int v = input.readInt32();
383 ensureLiteralsIsMutable();
388 int length = input.readRawVarint32();
389 int limit = input.pushLimit(length);
390 ensureLiteralsIsMutable();
391 while (input.getBytesUntilLimit() > 0) {
392 literals_.addInt(input.readInt32());
394 input.popLimit(limit);
398 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
405 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
406 throw e.unwrapIOException();
412 private int bitField0_;
414 private com.google.protobuf.Internal.IntList literals_ = emptyIntList();
415 private void ensureLiteralsIsMutable() {
416 if (!literals_.isModifiable()) {
417 literals_ = makeMutableCopy(literals_);
419 bitField0_ |= 0x00000001;
425 public java.util.List<java.lang.Integer>
427 literals_.makeImmutable();
435 return literals_.size();
443 return literals_.getInt(index);
452 int index,
int value) {
454 ensureLiteralsIsMutable();
455 literals_.setInt(index, value);
456 bitField0_ |= 0x00000001;
467 ensureLiteralsIsMutable();
468 literals_.addInt(value);
469 bitField0_ |= 0x00000001;
479 java.lang.Iterable<? extends java.lang.Integer> values) {
480 ensureLiteralsIsMutable();
481 com.google.protobuf.AbstractMessageLite.Builder.addAll(
483 bitField0_ |= 0x00000001;
492 literals_ = emptyIntList();
493 bitField0_ = (bitField0_ & ~0x00000001);
504 DEFAULT_INSTANCE =
new com.google.ortools.sat.BoolArgumentProto();
508 return DEFAULT_INSTANCE;
515 com.google.protobuf.CodedInputStream input,
516 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
517 throws com.google.protobuf.InvalidProtocolBufferException {
520 builder.mergeFrom(input, extensionRegistry);
521 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
522 throw e.setUnfinishedMessage(builder.buildPartial());
523 }
catch (com.google.protobuf.UninitializedMessageException e) {
524 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
525 }
catch (java.io.IOException e) {
526 throw new com.google.protobuf.InvalidProtocolBufferException(e)
527 .setUnfinishedMessage(builder.buildPartial());
529 return builder.buildPartial();
533 public static com.google.protobuf.Parser<BoolArgumentProto>
parser() {
544 return DEFAULT_INSTANCE;