@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPeerId()) { hash = (37 * hash) + PEER_ID_FIELD_NUMBER; hash = (53 * hash) + getPeerId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest other = (org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest) obj; boolean result = true; result = result && (hasPeerId() == other.hasPeerId()); if (hasPeerId()) { result = result && getPeerId() .equals(other.getPeerId()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPeerId()) { hash = (37 * hash) + PEER_ID_FIELD_NUMBER; hash = (53 * hash) + getPeerId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest other = (org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.EnableReplicationPeerRequest) obj; boolean result = true; result = result && (hasPeerId() == other.hasPeerId()); if (hasPeerId()) { result = result && getPeerId() .equals(other.getPeerId()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * <code>required string peer_id = 1;</code> */ public Builder clearPeerId() { bitField0_ = (bitField0_ & ~0x00000001); peerId_ = getDefaultInstance().getPeerId(); onChanged(); return this; } /**
/** * <code>required string peer_id = 1;</code> */ public Builder clearPeerId() { bitField0_ = (bitField0_ & ~0x00000001); peerId_ = getDefaultInstance().getPeerId(); onChanged(); return this; } /**
@Override public EnableReplicationPeerResponse enableReplicationPeer(RpcController controller, EnableReplicationPeerRequest request) throws ServiceException { try { long procId = master.enableReplicationPeer(request.getPeerId()); return EnableReplicationPeerResponse.newBuilder().setProcId(procId).build(); } catch (ReplicationException | IOException e) { throw new ServiceException(e); } }