5package com.google.ortools.graph;
11 com.google.protobuf.GeneratedMessage implements
14private static final long serialVersionUID = 0L;
16 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
17 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
25 private FlowNodeProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
31 public static final com.google.protobuf.Descriptors.Descriptor
33 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
37 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
39 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
40 .ensureFieldAccessorsInitialized(
41 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
44 private int bitField0_;
46 private long id_ = 0L;
59 return ((bitField0_ & 0x00000001) != 0);
77 private long supply_ = 0L;
89 return ((bitField0_ & 0x00000002) != 0);
105 private byte memoizedIsInitialized = -1;
112 memoizedIsInitialized = 1;
117 public void writeTo(com.google.protobuf.CodedOutputStream output)
118 throws java.io.IOException {
119 if (((bitField0_ & 0x00000001) != 0)) {
120 output.writeInt64(1, id_);
122 if (((bitField0_ & 0x00000002) != 0)) {
123 output.writeInt64(2, supply_);
125 getUnknownFields().writeTo(output);
130 int size = memoizedSize;
131 if (size != -1)
return size;
134 if (((bitField0_ & 0x00000001) != 0)) {
135 size += com.google.protobuf.CodedOutputStream
136 .computeInt64Size(1, id_);
138 if (((bitField0_ & 0x00000002) != 0)) {
139 size += com.google.protobuf.CodedOutputStream
140 .computeInt64Size(2, supply_);
142 size += getUnknownFields().getSerializedSize();
148 public boolean equals(
final java.lang.Object obj) {
152 if (!(obj instanceof com.google.ortools.graph.FlowNodeProto)) {
153 return super.equals(obj);
160 != other.
getId())
return false;
167 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
173 if (memoizedHashCode != 0) {
174 return memoizedHashCode;
180 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
185 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
188 hash = (29 * hash) + getUnknownFields().hashCode();
189 memoizedHashCode = hash;
194 java.nio.ByteBuffer data)
195 throws com.google.protobuf.InvalidProtocolBufferException {
196 return PARSER.parseFrom(data);
199 java.nio.ByteBuffer data,
200 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
201 throws com.google.protobuf.InvalidProtocolBufferException {
202 return PARSER.parseFrom(data, extensionRegistry);
205 com.google.protobuf.ByteString data)
206 throws com.google.protobuf.InvalidProtocolBufferException {
207 return PARSER.parseFrom(data);
210 com.google.protobuf.ByteString data,
211 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
212 throws com.google.protobuf.InvalidProtocolBufferException {
213 return PARSER.parseFrom(data, extensionRegistry);
216 throws com.google.protobuf.InvalidProtocolBufferException {
217 return PARSER.parseFrom(data);
221 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
222 throws com.google.protobuf.InvalidProtocolBufferException {
223 return PARSER.parseFrom(data, extensionRegistry);
226 throws java.io.IOException {
227 return com.google.protobuf.GeneratedMessage
228 .parseWithIOException(PARSER, input);
231 java.io.InputStream input,
232 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
233 throws java.io.IOException {
234 return com.google.protobuf.GeneratedMessage
235 .parseWithIOException(PARSER, input, extensionRegistry);
239 throws java.io.IOException {
240 return com.google.protobuf.GeneratedMessage
241 .parseDelimitedWithIOException(PARSER, input);
245 java.io.InputStream input,
246 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
247 throws java.io.IOException {
248 return com.google.protobuf.GeneratedMessage
249 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
252 com.google.protobuf.CodedInputStream input)
253 throws java.io.IOException {
254 return com.google.protobuf.GeneratedMessage
255 .parseWithIOException(PARSER, input);
258 com.google.protobuf.CodedInputStream input,
259 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
260 throws java.io.IOException {
261 return com.google.protobuf.GeneratedMessage
262 .parseWithIOException(PARSER, input, extensionRegistry);
275 return this == DEFAULT_INSTANCE
281 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
289 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
292 public static final com.google.protobuf.Descriptors.Descriptor
294 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
298 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
300 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
301 .ensureFieldAccessorsInitialized(
302 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
311 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
325 public com.google.protobuf.Descriptors.Descriptor
327 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
332 return com.google.ortools.graph.FlowNodeProto.getDefaultInstance();
339 throw newUninitializedMessageException(result);
347 if (bitField0_ != 0) { buildPartial0(result); }
352 private void buildPartial0(com.google.ortools.graph.FlowNodeProto result) {
353 int from_bitField0_ = bitField0_;
354 int to_bitField0_ = 0;
355 if (((from_bitField0_ & 0x00000001) != 0)) {
357 to_bitField0_ |= 0x00000001;
359 if (((from_bitField0_ & 0x00000002) != 0)) {
360 result.supply_ = supply_;
361 to_bitField0_ |= 0x00000002;
363 result.bitField0_ |= to_bitField0_;
368 if (other instanceof com.google.ortools.graph.FlowNodeProto) {
369 return mergeFrom((com.google.ortools.graph.FlowNodeProto)other);
371 super.mergeFrom(other);
377 if (other == com.google.ortools.graph.FlowNodeProto.getDefaultInstance())
return this;
379 setId(other.getId());
381 if (other.hasSupply()) {
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();
411 id_ = input.readInt64();
412 bitField0_ |= 0x00000001;
416 supply_ = input.readInt64();
417 bitField0_ |= 0x00000002;
421 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
428 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
429 throw e.unwrapIOException();
435 private int bitField0_;
450 return ((bitField0_ & 0x00000001) != 0);
480 bitField0_ |= 0x00000001;
495 bitField0_ = (bitField0_ & ~0x00000001);
501 private long supply_ ;
513 return ((bitField0_ & 0x00000002) != 0);
541 bitField0_ |= 0x00000002;
555 bitField0_ = (bitField0_ & ~0x00000002);
567 DEFAULT_INSTANCE =
new com.google.ortools.graph.FlowNodeProto();
571 return DEFAULT_INSTANCE;
574 private static final com.google.protobuf.Parser<
FlowNodeProto>
575 PARSER =
new com.google.protobuf.AbstractParser<
FlowNodeProto>() {
578 com.google.protobuf.CodedInputStream input,
579 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
580 throws com.google.protobuf.InvalidProtocolBufferException {
583 builder.mergeFrom(input, extensionRegistry);
584 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
585 throw e.setUnfinishedMessage(builder.buildPartial());
586 }
catch (com.google.protobuf.UninitializedMessageException e) {
587 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
588 }
catch (java.io.IOException e) {
589 throw new com.google.protobuf.InvalidProtocolBufferException(e)
590 .setUnfinishedMessage(builder.buildPartial());
592 return builder.buildPartial();
607 return DEFAULT_INSTANCE;