public Builder mergeFrom(alluxio.grpc.BlockLocation other) { if (other == alluxio.grpc.BlockLocation.getDefaultInstance()) return this; if (other.hasWorkerId()) { setWorkerId(other.getWorkerId()); } if (other.hasWorkerAddress()) { mergeWorkerAddress(other.getWorkerAddress()); } if (other.hasTierAlias()) { bitField0_ |= 0x00000004; tierAlias_ = other.tierAlias_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * Converts wire type to proto type. * * @param blockLocation the wire type to convert * @return the converted proto type */ public static alluxio.grpc.BlockLocation toProto(BlockLocation blockLocation) { return alluxio.grpc.BlockLocation.newBuilder().setWorkerId(blockLocation.getWorkerId()) .setWorkerAddress(toProto(blockLocation.getWorkerAddress())) .setTierAlias(blockLocation.getTierAlias()).build(); }