All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.srotya.minuteman.rpc.RouteResponse Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cluster.proto

package com.srotya.minuteman.rpc;

/**
 * Protobuf type {@code rpcs.RouteResponse}
 */
public  final class RouteResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:rpcs.RouteResponse)
    RouteResponseOrBuilder {
  // Use RouteResponse.newBuilder() to construct.
  private RouteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private RouteResponse() {
    responseCode_ = 0;
    responseString_ = "";
    replicaids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    leaderid_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
  }
  private RouteResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    int mutable_bitField0_ = 0;
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!input.skipField(tag)) {
              done = true;
            }
            break;
          }
          case 8: {

            responseCode_ = input.readInt32();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            responseString_ = s;
            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              replicaids_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            replicaids_.add(s);
            break;
          }
          case 34: {
            java.lang.String s = input.readStringRequireUtf8();

            leaderid_ = s;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
        replicaids_ = replicaids_.getUnmodifiableView();
      }
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.srotya.minuteman.rpc.Cluster.internal_static_rpcs_RouteResponse_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.srotya.minuteman.rpc.Cluster.internal_static_rpcs_RouteResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.srotya.minuteman.rpc.RouteResponse.class, com.srotya.minuteman.rpc.RouteResponse.Builder.class);
  }

  private int bitField0_;
  public static final int RESPONSECODE_FIELD_NUMBER = 1;
  private int responseCode_;
  /**
   * optional int32 responseCode = 1;
   */
  public int getResponseCode() {
    return responseCode_;
  }

  public static final int RESPONSESTRING_FIELD_NUMBER = 2;
  private volatile java.lang.Object responseString_;
  /**
   * optional string responseString = 2;
   */
  public java.lang.String getResponseString() {
    java.lang.Object ref = responseString_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      responseString_ = s;
      return s;
    }
  }
  /**
   * optional string responseString = 2;
   */
  public com.google.protobuf.ByteString
      getResponseStringBytes() {
    java.lang.Object ref = responseString_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      responseString_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int REPLICAIDS_FIELD_NUMBER = 3;
  private com.google.protobuf.LazyStringList replicaids_;
  /**
   * repeated string replicaids = 3;
   */
  public com.google.protobuf.ProtocolStringList
      getReplicaidsList() {
    return replicaids_;
  }
  /**
   * repeated string replicaids = 3;
   */
  public int getReplicaidsCount() {
    return replicaids_.size();
  }
  /**
   * repeated string replicaids = 3;
   */
  public java.lang.String getReplicaids(int index) {
    return replicaids_.get(index);
  }
  /**
   * repeated string replicaids = 3;
   */
  public com.google.protobuf.ByteString
      getReplicaidsBytes(int index) {
    return replicaids_.getByteString(index);
  }

  public static final int LEADERID_FIELD_NUMBER = 4;
  private volatile java.lang.Object leaderid_;
  /**
   * optional string leaderid = 4;
   */
  public java.lang.String getLeaderid() {
    java.lang.Object ref = leaderid_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      leaderid_ = s;
      return s;
    }
  }
  /**
   * optional string leaderid = 4;
   */
  public com.google.protobuf.ByteString
      getLeaderidBytes() {
    java.lang.Object ref = leaderid_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      leaderid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (responseCode_ != 0) {
      output.writeInt32(1, responseCode_);
    }
    if (!getResponseStringBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, responseString_);
    }
    for (int i = 0; i < replicaids_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, replicaids_.getRaw(i));
    }
    if (!getLeaderidBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, leaderid_);
    }
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (responseCode_ != 0) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(1, responseCode_);
    }
    if (!getResponseStringBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, responseString_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < replicaids_.size(); i++) {
        dataSize += computeStringSizeNoTag(replicaids_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getReplicaidsList().size();
    }
    if (!getLeaderidBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, leaderid_);
    }
    memoizedSize = size;
    return size;
  }

  private static final long serialVersionUID = 0L;
  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.srotya.minuteman.rpc.RouteResponse)) {
      return super.equals(obj);
    }
    com.srotya.minuteman.rpc.RouteResponse other = (com.srotya.minuteman.rpc.RouteResponse) obj;

    boolean result = true;
    result = result && (getResponseCode()
        == other.getResponseCode());
    result = result && getResponseString()
        .equals(other.getResponseString());
    result = result && getReplicaidsList()
        .equals(other.getReplicaidsList());
    result = result && getLeaderid()
        .equals(other.getLeaderid());
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptorForType().hashCode();
    hash = (37 * hash) + RESPONSECODE_FIELD_NUMBER;
    hash = (53 * hash) + getResponseCode();
    hash = (37 * hash) + RESPONSESTRING_FIELD_NUMBER;
    hash = (53 * hash) + getResponseString().hashCode();
    if (getReplicaidsCount() > 0) {
      hash = (37 * hash) + REPLICAIDS_FIELD_NUMBER;
      hash = (53 * hash) + getReplicaidsList().hashCode();
    }
    hash = (37 * hash) + LEADERID_FIELD_NUMBER;
    hash = (53 * hash) + getLeaderid().hashCode();
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.srotya.minuteman.rpc.RouteResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.srotya.minuteman.rpc.RouteResponse prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code rpcs.RouteResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:rpcs.RouteResponse)
      com.srotya.minuteman.rpc.RouteResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.srotya.minuteman.rpc.Cluster.internal_static_rpcs_RouteResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.srotya.minuteman.rpc.Cluster.internal_static_rpcs_RouteResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.srotya.minuteman.rpc.RouteResponse.class, com.srotya.minuteman.rpc.RouteResponse.Builder.class);
    }

    // Construct using com.srotya.minuteman.rpc.RouteResponse.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      responseCode_ = 0;

      responseString_ = "";

      replicaids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      leaderid_ = "";

      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.srotya.minuteman.rpc.Cluster.internal_static_rpcs_RouteResponse_descriptor;
    }

    public com.srotya.minuteman.rpc.RouteResponse getDefaultInstanceForType() {
      return com.srotya.minuteman.rpc.RouteResponse.getDefaultInstance();
    }

    public com.srotya.minuteman.rpc.RouteResponse build() {
      com.srotya.minuteman.rpc.RouteResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.srotya.minuteman.rpc.RouteResponse buildPartial() {
      com.srotya.minuteman.rpc.RouteResponse result = new com.srotya.minuteman.rpc.RouteResponse(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.responseCode_ = responseCode_;
      result.responseString_ = responseString_;
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        replicaids_ = replicaids_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.replicaids_ = replicaids_;
      result.leaderid_ = leaderid_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.srotya.minuteman.rpc.RouteResponse) {
        return mergeFrom((com.srotya.minuteman.rpc.RouteResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.srotya.minuteman.rpc.RouteResponse other) {
      if (other == com.srotya.minuteman.rpc.RouteResponse.getDefaultInstance()) return this;
      if (other.getResponseCode() != 0) {
        setResponseCode(other.getResponseCode());
      }
      if (!other.getResponseString().isEmpty()) {
        responseString_ = other.responseString_;
        onChanged();
      }
      if (!other.replicaids_.isEmpty()) {
        if (replicaids_.isEmpty()) {
          replicaids_ = other.replicaids_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureReplicaidsIsMutable();
          replicaids_.addAll(other.replicaids_);
        }
        onChanged();
      }
      if (!other.getLeaderid().isEmpty()) {
        leaderid_ = other.leaderid_;
        onChanged();
      }
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.srotya.minuteman.rpc.RouteResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.srotya.minuteman.rpc.RouteResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private int responseCode_ ;
    /**
     * optional int32 responseCode = 1;
     */
    public int getResponseCode() {
      return responseCode_;
    }
    /**
     * optional int32 responseCode = 1;
     */
    public Builder setResponseCode(int value) {
      
      responseCode_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 responseCode = 1;
     */
    public Builder clearResponseCode() {
      
      responseCode_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object responseString_ = "";
    /**
     * optional string responseString = 2;
     */
    public java.lang.String getResponseString() {
      java.lang.Object ref = responseString_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        responseString_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string responseString = 2;
     */
    public com.google.protobuf.ByteString
        getResponseStringBytes() {
      java.lang.Object ref = responseString_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        responseString_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string responseString = 2;
     */
    public Builder setResponseString(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      responseString_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string responseString = 2;
     */
    public Builder clearResponseString() {
      
      responseString_ = getDefaultInstance().getResponseString();
      onChanged();
      return this;
    }
    /**
     * optional string responseString = 2;
     */
    public Builder setResponseStringBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      responseString_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList replicaids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureReplicaidsIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        replicaids_ = new com.google.protobuf.LazyStringArrayList(replicaids_);
        bitField0_ |= 0x00000004;
       }
    }
    /**
     * repeated string replicaids = 3;
     */
    public com.google.protobuf.ProtocolStringList
        getReplicaidsList() {
      return replicaids_.getUnmodifiableView();
    }
    /**
     * repeated string replicaids = 3;
     */
    public int getReplicaidsCount() {
      return replicaids_.size();
    }
    /**
     * repeated string replicaids = 3;
     */
    public java.lang.String getReplicaids(int index) {
      return replicaids_.get(index);
    }
    /**
     * repeated string replicaids = 3;
     */
    public com.google.protobuf.ByteString
        getReplicaidsBytes(int index) {
      return replicaids_.getByteString(index);
    }
    /**
     * repeated string replicaids = 3;
     */
    public Builder setReplicaids(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureReplicaidsIsMutable();
      replicaids_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated string replicaids = 3;
     */
    public Builder addReplicaids(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureReplicaidsIsMutable();
      replicaids_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated string replicaids = 3;
     */
    public Builder addAllReplicaids(
        java.lang.Iterable values) {
      ensureReplicaidsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, replicaids_);
      onChanged();
      return this;
    }
    /**
     * repeated string replicaids = 3;
     */
    public Builder clearReplicaids() {
      replicaids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * repeated string replicaids = 3;
     */
    public Builder addReplicaidsBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureReplicaidsIsMutable();
      replicaids_.add(value);
      onChanged();
      return this;
    }

    private java.lang.Object leaderid_ = "";
    /**
     * optional string leaderid = 4;
     */
    public java.lang.String getLeaderid() {
      java.lang.Object ref = leaderid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        leaderid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string leaderid = 4;
     */
    public com.google.protobuf.ByteString
        getLeaderidBytes() {
      java.lang.Object ref = leaderid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        leaderid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string leaderid = 4;
     */
    public Builder setLeaderid(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      leaderid_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string leaderid = 4;
     */
    public Builder clearLeaderid() {
      
      leaderid_ = getDefaultInstance().getLeaderid();
      onChanged();
      return this;
    }
    /**
     * optional string leaderid = 4;
     */
    public Builder setLeaderidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      leaderid_ = value;
      onChanged();
      return this;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }

    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return this;
    }


    // @@protoc_insertion_point(builder_scope:rpcs.RouteResponse)
  }

  // @@protoc_insertion_point(class_scope:rpcs.RouteResponse)
  private static final com.srotya.minuteman.rpc.RouteResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.srotya.minuteman.rpc.RouteResponse();
  }

  public static com.srotya.minuteman.rpc.RouteResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    public RouteResponse parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
        return new RouteResponse(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  public com.srotya.minuteman.rpc.RouteResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy