6package com.google.ortools.graph;
11@com.google.protobuf.Generated
12public final class FlowNodeProto
extends
13 com.google.protobuf.GeneratedMessage implements
16private static final long serialVersionUID = 0L;
18 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
19 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 FlowNodeProto.class.getName());
27 private FlowNodeProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
30 private FlowNodeProto() {
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
39 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
41 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
42 .ensureFieldAccessorsInitialized(
43 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
46 private int bitField0_;
48 private long id_ = 0L;
61 return ((bitField0_ & 0x00000001) != 0);
79 private long supply_ = 0L;
91 return ((bitField0_ & 0x00000002) != 0);
107 private byte memoizedIsInitialized = -1;
114 memoizedIsInitialized = 1;
119 public void writeTo(com.google.protobuf.CodedOutputStream output)
120 throws java.io.IOException {
121 if (((bitField0_ & 0x00000001) != 0)) {
122 output.writeInt64(1, id_);
124 if (((bitField0_ & 0x00000002) != 0)) {
125 output.writeInt64(2, supply_);
127 getUnknownFields().writeTo(output);
132 int size = memoizedSize;
133 if (size != -1)
return size;
136 if (((bitField0_ & 0x00000001) != 0)) {
137 size += com.google.protobuf.CodedOutputStream
138 .computeInt64Size(1, id_);
140 if (((bitField0_ & 0x00000002) != 0)) {
141 size += com.google.protobuf.CodedOutputStream
142 .computeInt64Size(2, supply_);
144 size += getUnknownFields().getSerializedSize();
150 public boolean equals(
final java.lang.Object obj) {
154 if (!(obj instanceof com.google.ortools.graph.FlowNodeProto)) {
155 return super.equals(obj);
162 != other.
getId())
return false;
169 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
175 if (memoizedHashCode != 0) {
176 return memoizedHashCode;
182 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
187 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
190 hash = (29 * hash) + getUnknownFields().hashCode();
191 memoizedHashCode = hash;
196 java.nio.ByteBuffer data)
197 throws com.google.protobuf.InvalidProtocolBufferException {
198 return PARSER.parseFrom(data);
201 java.nio.ByteBuffer data,
202 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
203 throws com.google.protobuf.InvalidProtocolBufferException {
204 return PARSER.parseFrom(data, extensionRegistry);
207 com.google.protobuf.ByteString data)
208 throws com.google.protobuf.InvalidProtocolBufferException {
209 return PARSER.parseFrom(data);
212 com.google.protobuf.ByteString data,
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws com.google.protobuf.InvalidProtocolBufferException {
215 return PARSER.parseFrom(data, extensionRegistry);
218 throws com.google.protobuf.InvalidProtocolBufferException {
219 return PARSER.parseFrom(data);
223 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
224 throws com.google.protobuf.InvalidProtocolBufferException {
225 return PARSER.parseFrom(data, extensionRegistry);
228 throws java.io.IOException {
229 return com.google.protobuf.GeneratedMessage
230 .parseWithIOException(PARSER, input);
233 java.io.InputStream input,
234 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
235 throws java.io.IOException {
236 return com.google.protobuf.GeneratedMessage
237 .parseWithIOException(PARSER, input, extensionRegistry);
241 throws java.io.IOException {
242 return com.google.protobuf.GeneratedMessage
243 .parseDelimitedWithIOException(PARSER, input);
247 java.io.InputStream input,
248 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
249 throws java.io.IOException {
250 return com.google.protobuf.GeneratedMessage
251 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
254 com.google.protobuf.CodedInputStream input)
255 throws java.io.IOException {
256 return com.google.protobuf.GeneratedMessage
257 .parseWithIOException(PARSER, input);
260 com.google.protobuf.CodedInputStream input,
261 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
262 throws java.io.IOException {
263 return com.google.protobuf.GeneratedMessage
264 .parseWithIOException(PARSER, input, extensionRegistry);
270 return DEFAULT_INSTANCE.toBuilder();
273 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
277 return this == DEFAULT_INSTANCE
283 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
290 public static final class Builder
extends
291 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
294 public static final com.google.protobuf.Descriptors.Descriptor
296 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
300 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
302 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
303 .ensureFieldAccessorsInitialized(
304 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
313 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
327 public com.google.protobuf.Descriptors.Descriptor
329 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
334 return com.google.ortools.graph.FlowNodeProto.getDefaultInstance();
341 throw newUninitializedMessageException(result);
349 if (bitField0_ != 0) { buildPartial0(result); }
354 private void buildPartial0(com.google.ortools.graph.FlowNodeProto result) {
355 int from_bitField0_ = bitField0_;
356 int to_bitField0_ = 0;
357 if (((from_bitField0_ & 0x00000001) != 0)) {
359 to_bitField0_ |= 0x00000001;
361 if (((from_bitField0_ & 0x00000002) != 0)) {
362 result.supply_ = supply_;
363 to_bitField0_ |= 0x00000002;
365 result.bitField0_ |= to_bitField0_;
369 public Builder
mergeFrom(com.google.protobuf.Message other) {
370 if (other instanceof com.google.ortools.graph.FlowNodeProto) {
371 return mergeFrom((com.google.ortools.graph.FlowNodeProto)other);
373 super.mergeFrom(other);
378 public Builder
mergeFrom(com.google.ortools.graph.FlowNodeProto other) {
379 if (other == com.google.ortools.graph.FlowNodeProto.getDefaultInstance())
return this;
381 setId(other.getId());
383 if (other.hasSupply()) {
386 this.mergeUnknownFields(other.getUnknownFields());
398 com.google.protobuf.CodedInputStream input,
399 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
400 throws java.io.IOException {
401 if (extensionRegistry ==
null) {
402 throw new java.lang.NullPointerException();
405 boolean done =
false;
407 int tag = input.readTag();
413 id_ = input.readInt64();
414 bitField0_ |= 0x00000001;
418 supply_ = input.readInt64();
419 bitField0_ |= 0x00000002;
423 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
430 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
431 throw e.unwrapIOException();
437 private int bitField0_;
452 return ((bitField0_ & 0x00000001) != 0);
482 bitField0_ |= 0x00000001;
497 bitField0_ = (bitField0_ & ~0x00000001);
503 private long supply_ ;
515 return ((bitField0_ & 0x00000002) != 0);
543 bitField0_ |= 0x00000002;
557 bitField0_ = (bitField0_ & ~0x00000002);
569 DEFAULT_INSTANCE =
new com.google.ortools.graph.FlowNodeProto();
573 return DEFAULT_INSTANCE;
576 private static final com.google.protobuf.Parser<
FlowNodeProto>
577 PARSER =
new com.google.protobuf.AbstractParser<
FlowNodeProto>() {
580 com.google.protobuf.CodedInputStream input,
581 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
582 throws com.google.protobuf.InvalidProtocolBufferException {
585 builder.mergeFrom(input, extensionRegistry);
586 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
587 throw e.setUnfinishedMessage(builder.buildPartial());
588 }
catch (com.google.protobuf.UninitializedMessageException e) {
589 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
590 }
catch (java.io.IOException e) {
591 throw new com.google.protobuf.InvalidProtocolBufferException(e)
592 .setUnfinishedMessage(builder.buildPartial());
594 return builder.buildPartial();
598 public static com.google.protobuf.Parser<FlowNodeProto>
parser() {
609 return DEFAULT_INSTANCE;