6package com.google.ortools.constraintsolver;
 
   20@com.google.protobuf.Generated
 
   21public final class RandomWalkRuinStrategy 
extends 
   22    com.google.protobuf.GeneratedMessage implements
 
   25private static final long serialVersionUID = 0L;
 
   27    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
 
   28      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
 
   33      RandomWalkRuinStrategy.class.getName());
 
   36  private RandomWalkRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
 
   39  private RandomWalkRuinStrategy() {
 
   42  public static final com.google.protobuf.Descriptors.Descriptor
 
   44    return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_descriptor;
 
 
   48  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
 
   50    return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_fieldAccessorTable
 
   51        .ensureFieldAccessorsInitialized(
 
   52            com.google.ortools.constraintsolver.RandomWalkRuinStrategy.class, com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.class);
 
 
   55  private int bitField0_;
 
   57  private int numRemovedVisits_ = 0;
 
   72    return ((bitField0_ & 0x00000001) != 0);
 
 
   88    return numRemovedVisits_;
 
 
   91  private byte memoizedIsInitialized = -1;
 
   98    memoizedIsInitialized = 1;
 
 
  103  public void writeTo(com.google.protobuf.CodedOutputStream output)
 
  104                      throws java.io.IOException {
 
  105    if (((bitField0_ & 0x00000001) != 0)) {
 
  106      output.writeUInt32(7, numRemovedVisits_);
 
  108    getUnknownFields().writeTo(output);
 
 
  113    int size = memoizedSize;
 
  114    if (size != -1) 
return size;
 
  117    if (((bitField0_ & 0x00000001) != 0)) {
 
  118      size += com.google.protobuf.CodedOutputStream
 
  119        .computeUInt32Size(7, numRemovedVisits_);
 
  121    size += getUnknownFields().getSerializedSize();
 
 
  127  public boolean equals(
final java.lang.Object obj) {
 
  131    if (!(obj instanceof com.google.ortools.constraintsolver.RandomWalkRuinStrategy)) {
 
  132      return super.equals(obj);
 
  141    if (!getUnknownFields().
equals(other.getUnknownFields())) 
return false;
 
 
  147    if (memoizedHashCode != 0) {
 
  148      return memoizedHashCode;
 
  156    hash = (29 * hash) + getUnknownFields().hashCode();
 
  157    memoizedHashCode = hash;
 
 
  162      java.nio.ByteBuffer data)
 
  163      throws com.google.protobuf.InvalidProtocolBufferException {
 
  164    return PARSER.parseFrom(data);
 
 
  167      java.nio.ByteBuffer data,
 
  168      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  169      throws com.google.protobuf.InvalidProtocolBufferException {
 
  170    return PARSER.parseFrom(data, extensionRegistry);
 
 
  173      com.google.protobuf.ByteString data)
 
  174      throws com.google.protobuf.InvalidProtocolBufferException {
 
  175    return PARSER.parseFrom(data);
 
 
  178      com.google.protobuf.ByteString data,
 
  179      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  180      throws com.google.protobuf.InvalidProtocolBufferException {
 
  181    return PARSER.parseFrom(data, extensionRegistry);
 
 
  184      throws com.google.protobuf.InvalidProtocolBufferException {
 
  185    return PARSER.parseFrom(data);
 
 
  189      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  190      throws com.google.protobuf.InvalidProtocolBufferException {
 
  191    return PARSER.parseFrom(data, extensionRegistry);
 
 
  194      throws java.io.IOException {
 
  195    return com.google.protobuf.GeneratedMessage
 
  196        .parseWithIOException(PARSER, input);
 
 
  199      java.io.InputStream input,
 
  200      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  201      throws java.io.IOException {
 
  202    return com.google.protobuf.GeneratedMessage
 
  203        .parseWithIOException(PARSER, input, extensionRegistry);
 
 
  207      throws java.io.IOException {
 
  208    return com.google.protobuf.GeneratedMessage
 
  209        .parseDelimitedWithIOException(PARSER, input);
 
 
  213      java.io.InputStream input,
 
  214      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  215      throws java.io.IOException {
 
  216    return com.google.protobuf.GeneratedMessage
 
  217        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
 
 
  220      com.google.protobuf.CodedInputStream input)
 
  221      throws java.io.IOException {
 
  222    return com.google.protobuf.GeneratedMessage
 
  223        .parseWithIOException(PARSER, input);
 
 
  226      com.google.protobuf.CodedInputStream input,
 
  227      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  228      throws java.io.IOException {
 
  229    return com.google.protobuf.GeneratedMessage
 
  230        .parseWithIOException(PARSER, input, extensionRegistry);
 
 
  236    return DEFAULT_INSTANCE.toBuilder();
 
 
  238  public static Builder newBuilder(com.google.ortools.constraintsolver.RandomWalkRuinStrategy prototype) {
 
  239    return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
 
 
  243    return this == DEFAULT_INSTANCE
 
 
  249      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
 
 
  265  public static final class Builder 
extends 
  266      com.google.protobuf.GeneratedMessage.Builder<Builder> implements
 
  269    public static final com.google.protobuf.Descriptors.Descriptor
 
  271      return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_descriptor;
 
 
  275    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
 
  277      return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_fieldAccessorTable
 
  278          .ensureFieldAccessorsInitialized(
 
  279              com.google.ortools.constraintsolver.RandomWalkRuinStrategy.class, com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.class);
 
 
  288        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
 
  296      numRemovedVisits_ = 0;
 
 
  301    public com.google.protobuf.Descriptors.Descriptor
 
  303      return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_descriptor;
 
 
  308      return com.google.ortools.constraintsolver.RandomWalkRuinStrategy.getDefaultInstance();
 
 
  315        throw newUninitializedMessageException(result);
 
 
  323      if (bitField0_ != 0) { buildPartial0(result); }
 
 
  328    private void buildPartial0(com.google.ortools.constraintsolver.RandomWalkRuinStrategy result) {
 
  329      int from_bitField0_ = bitField0_;
 
  330      int to_bitField0_ = 0;
 
  331      if (((from_bitField0_ & 0x00000001) != 0)) {
 
  332        result.numRemovedVisits_ = numRemovedVisits_;
 
  333        to_bitField0_ |= 0x00000001;
 
  335      result.bitField0_ |= to_bitField0_;
 
  339    public Builder 
mergeFrom(com.google.protobuf.Message other) {
 
  340      if (other instanceof com.google.ortools.constraintsolver.RandomWalkRuinStrategy) {
 
  341        return mergeFrom((com.google.ortools.constraintsolver.RandomWalkRuinStrategy)other);
 
  343        super.mergeFrom(other);
 
 
  348    public Builder 
mergeFrom(com.google.ortools.constraintsolver.RandomWalkRuinStrategy other) {
 
  349      if (other == com.google.ortools.constraintsolver.RandomWalkRuinStrategy.getDefaultInstance()) 
return this;
 
  350      if (other.hasNumRemovedVisits()) {
 
  353      this.mergeUnknownFields(other.getUnknownFields());
 
 
  365        com.google.protobuf.CodedInputStream input,
 
  366        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  367        throws java.io.IOException {
 
  368      if (extensionRegistry == 
null) {
 
  369        throw new java.lang.NullPointerException();
 
  372        boolean done = 
false;
 
  374          int tag = input.readTag();
 
  380              numRemovedVisits_ = input.readUInt32();
 
  381              bitField0_ |= 0x00000001;
 
  385              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
 
  392      } 
catch (com.google.protobuf.InvalidProtocolBufferException e) {
 
  393        throw e.unwrapIOException();
 
 
  399    private int bitField0_;
 
  401    private int numRemovedVisits_ ;
 
  416      return ((bitField0_ & 0x00000001) != 0);
 
 
  432      return numRemovedVisits_;
 
 
  449      numRemovedVisits_ = value;
 
  450      bitField0_ |= 0x00000001;
 
 
  467      bitField0_ = (bitField0_ & ~0x00000001);
 
  468      numRemovedVisits_ = 0;
 
 
 
  479    DEFAULT_INSTANCE = 
new com.google.ortools.constraintsolver.RandomWalkRuinStrategy();
 
  483    return DEFAULT_INSTANCE;
 
 
  490        com.google.protobuf.CodedInputStream input,
 
  491        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
 
  492        throws com.google.protobuf.InvalidProtocolBufferException {
 
  495        builder.mergeFrom(input, extensionRegistry);
 
  496      } 
catch (com.google.protobuf.InvalidProtocolBufferException e) {
 
  497        throw e.setUnfinishedMessage(builder.buildPartial());
 
  498      } 
catch (com.google.protobuf.UninitializedMessageException e) {
 
  499        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
 
  500      } 
catch (java.io.IOException e) {
 
  501        throw new com.google.protobuf.InvalidProtocolBufferException(e)
 
  502            .setUnfinishedMessage(builder.buildPartial());
 
  504      return builder.buildPartial();
 
  508  public static com.google.protobuf.Parser<RandomWalkRuinStrategy> 
parser() {
 
 
  519    return DEFAULT_INSTANCE;